diff --git a/app/helpers/contracts_helper.rb b/app/helpers/contracts_helper.rb index 4e0d237..0975f3f 100644 --- a/app/helpers/contracts_helper.rb +++ b/app/helpers/contracts_helper.rb @@ -92,8 +92,9 @@ module ContractsHelper end end - def format_value_field_for_contracts(value) - number_with_precision(value, :precision => Contract::ViewPrecision, :delimiter => ',') + def format_value_field_for_contracts(value, options={}) + opt = {:unit => '', :precision => Contract::ViewPrecision, :delimiter => ','}.merge(options) + number_to_currency(value, opt) end def format_as_yes_or_no(value) diff --git a/app/views/contracts/show.html.erb b/app/views/contracts/show.html.erb index 6b6f71f..826b1dc 100644 --- a/app/views/contracts/show.html.erb +++ b/app/views/contracts/show.html.erb @@ -3,7 +3,7 @@ <% if resource.orphaned_time && resource.orphaned_time > 0 %>

- <%= l(:text_error_message_orphaned_time, :amount => format_value_field_for_contracts(resource.orphaned_time)) %> + <%= l(:text_error_message_orphaned_time, :amount => format_value_field_for_contracts(resource.orphaned_time, :unit => '$')) %> <%= link_to_issue_list_with_filter(l(:text_error_message_update_orphaned_time), :deliverable_id => '!*') %>