Hide IBAN of BankTransactions when empty

This commit is contained in:
Patrick Gansterer 2021-02-08 01:04:57 +01:00
parent 979439f967
commit 373d137f9f

View file

@ -7,7 +7,8 @@
%p %p
%b= heading_helper(BankTransaction, :amount) + ':' %b= heading_helper(BankTransaction, :amount) + ':'
= number_to_currency(@bank_transaction.amount) = number_to_currency(@bank_transaction.amount)
%p - if @bank_transaction.iban?
%p
%b= heading_helper(BankTransaction, :iban) + ':' %b= heading_helper(BankTransaction, :iban) + ':'
= @bank_transaction.iban = @bank_transaction.iban
- if user = @bank_transaction.user - if user = @bank_transaction.user