Add format helper for currency
This commit is contained in:
parent
5408c08b58
commit
6cc02cb563
7 changed files with 21 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue