[#4182] Show the total Labor and Overhead values on the Contract details page.

This commit is contained in:
Eric Davis committed 2010-07-07 11:10:51 -07:00
1 parent b22db284c5
commit f2e640b5f8
4 files changed
+62 -4

No files matched your search

+11
View File
@@ -5,4 +5,15 @@ module ContractsHelper
d.overhead_budgets.build if d.overhead_budgets.empty?
end
end
def format_budget_for_deliverable(deliverable, total)
# TODO LATER: calculate amount used
if total > 0
content_tag(:span, "0", :class => 'spent-amount') +
" " +
content_tag(:span, h(number_to_currency(total, :unit => '')), :class => 'total-amount')
else
'---'
end
end
end