mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-11-08 02:38:09 +00:00
Improve account CRUD and tests.
This commit is contained in:
@@ -111,8 +111,7 @@ class AccountFormRequest extends Request
|
||||
'interest_period' => 'in:daily,monthly,yearly',
|
||||
];
|
||||
|
||||
// TODO verify if this will work.
|
||||
if ('liabilities' === $this->get('what')) {
|
||||
if ('liabilities' === $this->get('objectType')) {
|
||||
$rules['opening_balance'] = ['numeric', 'required'];
|
||||
$rules['opening_balance_date'] = 'date|required';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user