This commit is contained in:
James Cole 2017-02-11 18:35:16 +01:00
parent b5a005dcc5
commit dcc2b9c1cb
No known key found for this signature in database
GPG Key ID: C16961E655E74B5E
2 changed files with 3 additions and 3 deletions

View File

@ -77,11 +77,11 @@ class AccountFormRequest extends Request
return [ return [
'id' => $idRule, 'id' => $idRule,
'name' => $nameRule, 'name' => $nameRule,
'openingBalance' => 'numeric', 'openingBalance' => 'numeric|required_with:openingBalanceDate',
'openingBalanceDate' => 'date|required_with:openingBalance',
'iban' => 'iban', 'iban' => 'iban',
'BIC' => 'bic', 'BIC' => 'bic',
'virtualBalance' => 'numeric', 'virtualBalance' => 'numeric',
'openingBalanceDate' => 'date',
'currency_id' => 'exists:transaction_currencies,id', 'currency_id' => 'exists:transaction_currencies,id',
'accountNumber' => 'between:1,255|uniqueAccountNumberForUser', 'accountNumber' => 'between:1,255|uniqueAccountNumberForUser',
'accountRole' => 'in:' . $accountRoles, 'accountRole' => 'in:' . $accountRoles,

View File

@ -40,7 +40,7 @@
{% if what == 'asset' %} {% if what == 'asset' %}
{{ ExpandedForm.balance('openingBalance') }} {{ ExpandedForm.balance('openingBalance') }}
{{ ExpandedForm.date('openingBalanceDate', phpdate('Y-m-d')) }} {{ ExpandedForm.date('openingBalanceDate') }}
{{ ExpandedForm.select('accountRole', roles,null,{'helpText' : 'asset_account_role_help'|_}) }} {{ ExpandedForm.select('accountRole', roles,null,{'helpText' : 'asset_account_role_help'|_}) }}
{{ ExpandedForm.balance('virtualBalance') }} {{ ExpandedForm.balance('virtualBalance') }}
{% endif %} {% endif %}