Add format helper for currency
This commit is contained in:
parent
5408c08b58
commit
6cc02cb563
7 changed files with 21 additions and 9 deletions
|
|
@ -17,7 +17,7 @@
|
|||
= format_date item[:date]
|
||||
%td= item[:type]
|
||||
%td= item[:description]
|
||||
%td.currency{:style => "color:#{item[:amount] < 0 ? 'red' : 'black'}; width:5em"}= number_to_currency(item[:amount])
|
||||
%td.numeric{style: 'width:5em'}= format_currency item[:amount]
|
||||
|
||||
%p
|
||||
= @financial_link.note
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue