Add format helper for currency

This commit is contained in:
Patrick Gansterer 2018-09-16 12:05:39 +02:00
parent 5408c08b58
commit 6cc02cb563
7 changed files with 21 additions and 9 deletions

View file

@ -37,6 +37,6 @@
%td= h t.financial_transaction_type.name
%td= h t.note
- FinancialTransactionClass.sorted.each do |c|
%td.currency{:style => "color:#{t.amount < 0 ? 'red' : 'black'}; width:5em"}
%td.numeric{style: 'width:5em'}
- if t.financial_transaction_type.financial_transaction_class == c
= number_to_currency(t.amount)
= format_currency t.amount