[#4184] Convert overhead values.

This commit is contained in:
Eric Davis
2010-07-14 10:11:36 -07:00
parent acf6e5e9b4
commit 7865ee69ea
2 changed files with 21 additions and 0 deletions
@@ -36,6 +36,12 @@ module RedmineContracts
deliverable.contract = contract
deliverable.manager = project.users.first
if old_deliverable['overhead'].present?
deliverable.overhead_budgets << OverheadBudget.new(:deliverable => deliverable,
:budget => old_deliverable['overhead'],
:hours => 0)
end
case old_deliverable['type']
when 'FixedDeliverable'
deliverable.total = old_deliverable['fixed_cost']