Ask for CC number when asset is a CC. #784

This commit is contained in:
James Cole
2017-08-30 07:14:35 +02:00
parent 0a8e6e9f07
commit 4aaacf8e2e
3 changed files with 7 additions and 2 deletions

View File

@@ -33,7 +33,11 @@
<div class="box-body">
{{ ExpandedForm.text('iban') }}
{{ 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' %}