First code for liabilities and some tests.

This commit is contained in:
James Cole
2018-08-03 16:35:55 +02:00
parent ae85876965
commit 2290fcde22
10 changed files with 282 additions and 54 deletions

View File

@@ -35,51 +35,19 @@ use Illuminate\Database\Eloquent\Relations\HasMany;
*/
class AccountType extends Model
{
/**
*
*/
public const DEFAULT = 'Default account';
/**
*
*/
public const CASH = 'Cash account';
/**
*
*/
public const ASSET = 'Asset account';
/**
*
*/
public const EXPENSE = 'Expense account';
/**
*
*/
public const REVENUE = 'Revenue account';
/**
*
*/
public const DEFAULT = 'Default account';
public const CASH = 'Cash account';
public const ASSET = 'Asset account';
public const EXPENSE = 'Expense account';
public const REVENUE = 'Revenue account';
public const INITIAL_BALANCE = 'Initial balance account';
/**
*
*/
public const BENEFICIARY = 'Beneficiary account';
/**
*
*/
public const IMPORT = 'Import account';
/**
*
*/
public const RECONCILIATION = 'Reconciliation account';
/**
*
*/
public const LOAN = 'Loan';
/**
* The attributes that should be casted to native types.
*
* @var array
*/
public const BENEFICIARY = 'Beneficiary account';
public const IMPORT = 'Import account';
public const RECONCILIATION = 'Reconciliation account';
public const LOAN = 'Loan';
public const DEBT = 'Debt';
public const MORTGAGE = 'Mortgage';
public const CREDITCARD = 'Credit card';
protected $casts
= [
'created_at' => 'datetime',