mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-01-09 07:33:06 -06:00
This fixes #559
This commit is contained in:
parent
b5a005dcc5
commit
dcc2b9c1cb
@ -77,11 +77,11 @@ class AccountFormRequest extends Request
|
||||
return [
|
||||
'id' => $idRule,
|
||||
'name' => $nameRule,
|
||||
'openingBalance' => 'numeric',
|
||||
'openingBalance' => 'numeric|required_with:openingBalanceDate',
|
||||
'openingBalanceDate' => 'date|required_with:openingBalance',
|
||||
'iban' => 'iban',
|
||||
'BIC' => 'bic',
|
||||
'virtualBalance' => 'numeric',
|
||||
'openingBalanceDate' => 'date',
|
||||
'currency_id' => 'exists:transaction_currencies,id',
|
||||
'accountNumber' => 'between:1,255|uniqueAccountNumberForUser',
|
||||
'accountRole' => 'in:' . $accountRoles,
|
||||
|
@ -40,7 +40,7 @@
|
||||
{% if what == 'asset' %}
|
||||
|
||||
{{ ExpandedForm.balance('openingBalance') }}
|
||||
{{ ExpandedForm.date('openingBalanceDate', phpdate('Y-m-d')) }}
|
||||
{{ ExpandedForm.date('openingBalanceDate') }}
|
||||
{{ ExpandedForm.select('accountRole', roles,null,{'helpText' : 'asset_account_role_help'|_}) }}
|
||||
{{ ExpandedForm.balance('virtualBalance') }}
|
||||
{% endif %}
|
||||
|
Loading…
Reference in New Issue
Block a user