updated views and helpers to specify the currency unit when outputting currency values.

A label_currency localisation variable has been added to config/locales/en.yml
This commit is contained in:
root
2010-03-03 08:14:39 +00:00
parent a53ceb2804
commit 4b18f20eba
5 changed files with 22 additions and 21 deletions
+2 -2
View File
@@ -93,8 +93,8 @@ module DeliverablesHelper
end
def number_or_percent(number_field, percent_field)
return number_to_currency(number_field, :precision => 0) unless number_field.blank?
return number_to_currency(number_field, :unit => l(:label_currency), :precision => 0) unless number_field.blank?
return number_to_percentage(percent_field, :precision => 0) unless percent_field.blank?
return "$0"
return number_to_currency(0, :unit => l(:label_currency), :precision => 0)
end
end