[#4506] Format the executed contract as Yes or No.

This commit is contained in:
Eric Davis committed 2010-09-14 13:57:26 -07:00
1 parent 9b49959bcf
commit 893d83a03d
2 files changed
+9 -1

No files matched your search

+8
View File
@@ -86,6 +86,14 @@ module ContractsHelper
number_with_precision(value, :precision => Contract::ViewPrecision, :delimiter => ',')
end
def format_as_yes_or_no(value)
if value
l(:general_text_Yes)
else
l(:general_text_No)
end
end
def retainer_period_options(deliverable, method_options={})
selected = method_options[:selected]
if selected && selected.is_a?(Date)