mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-02-25 18:45:27 -06:00
Ask for CC number when asset is a CC. #784
This commit is contained in:
parent
0a8e6e9f07
commit
4aaacf8e2e
@ -194,7 +194,7 @@ class AccountController extends Controller
|
|||||||
|
|
||||||
return view(
|
return view(
|
||||||
'accounts.edit', compact(
|
'accounts.edit', compact(
|
||||||
'allCurrencies', 'currencySelectList', 'account', 'currency', 'subTitle', 'subTitleIcon', 'what', 'roles'
|
'allCurrencies', 'currencySelectList', 'account', 'currency', 'subTitle', 'subTitleIcon', 'what', 'roles', 'preFilled'
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -100,6 +100,7 @@ return [
|
|||||||
'code' => 'Code',
|
'code' => 'Code',
|
||||||
'iban' => 'IBAN',
|
'iban' => 'IBAN',
|
||||||
'accountNumber' => 'Account number',
|
'accountNumber' => 'Account number',
|
||||||
|
'creditCardNumber' => 'Credit card number',
|
||||||
'has_headers' => 'Headers',
|
'has_headers' => 'Headers',
|
||||||
'date_format' => 'Date format',
|
'date_format' => 'Date format',
|
||||||
'specifix' => 'Bank- or file specific fixes',
|
'specifix' => 'Bank- or file specific fixes',
|
||||||
|
@ -33,7 +33,11 @@
|
|||||||
<div class="box-body">
|
<div class="box-body">
|
||||||
{{ ExpandedForm.text('iban') }}
|
{{ ExpandedForm.text('iban') }}
|
||||||
{{ ExpandedForm.text('BIC', null, {maxlength: 11}) }}
|
{{ ExpandedForm.text('BIC', null, {maxlength: 11}) }}
|
||||||
{{ ExpandedForm.text('accountNumber') }}
|
{% if preFilled.accountRole == 'ccAsset' %}
|
||||||
|
{{ ExpandedForm.text('accountNumber', null , {label:trans('form.creditCardNumber')}) }}
|
||||||
|
{% else %}
|
||||||
|
{{ ExpandedForm.text('accountNumber') }}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
{% if account.accounttype.type == 'Default account' or account.accounttype.type == 'Asset account' %}
|
{% if account.accounttype.type == 'Default account' or account.accounttype.type == 'Asset account' %}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user