mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Expand tests, do code cleanup.
This commit is contained in:
@@ -84,10 +84,19 @@ class Transaction extends Model
|
||||
'bill_name_encrypted' => 'boolean',
|
||||
'reconciled' => 'boolean',
|
||||
];
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $fillable
|
||||
= ['account_id', 'transaction_journal_id', 'description', 'amount', 'identifier', 'transaction_currency_id', 'foreign_currency_id',
|
||||
'foreign_amount',];
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $hidden = ['encrypted'];
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $rules
|
||||
= [
|
||||
'account_id' => 'required|exists:accounts,id',
|
||||
|
||||
Reference in New Issue
Block a user