better readable IBAN (#824)
display IBANs in groups of 4 digits with whitespaces in between
This commit is contained in:
parent
00f1dddd3d
commit
401c8f50a8
7 changed files with 11 additions and 6 deletions
|
|
@ -11,6 +11,6 @@
|
|||
- for account in @bank_accounts
|
||||
%tr
|
||||
%td= link_to account.name, finance_bank_account_transactions_path(account)
|
||||
%td= account.iban
|
||||
%td= format_iban account.iban
|
||||
%td= truncate account.description, length: 50
|
||||
%td.numeric{style: 'width:5em'}= format_currency account.balance
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
- if @bank_transaction.iban?
|
||||
%p
|
||||
%b= heading_helper(BankTransaction, :iban) + ':'
|
||||
= @bank_transaction.iban
|
||||
= format_iban @bank_transaction.iban
|
||||
- if user = @bank_transaction.user
|
||||
= t('.belongs_to_user')
|
||||
= user.display
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@
|
|||
%p
|
||||
- if supplier.iban.present?
|
||||
%b= heading_helper(Supplier, :iban) + ':'
|
||||
= supplier.iban
|
||||
= format_iban supplier.iban
|
||||
%br/
|
||||
%b= t('.invoices_text') + ':'
|
||||
= invoices_text.join(', ')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue