Fixed calculation of costs after removal of denormalized values

git-svn-id: https://dev.finn.de/svn/cockpit/trunk@392 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
hjust 15 years ago
parent f560044401
commit 7fcdbeb8cf
  1. 4
      lib/issue_patch.rb

@ -49,7 +49,7 @@ module IssuePatch
WHEN #{CostEntry.table_name}.overridden_costs IS NULL THEN
#{CostEntry.table_name}.costs
ELSE
#{CostEntry.table_name}.overridden_costs END")
#{CostEntry.table_name}.overridden_costs END").to_f
end
def labor_costs
@ -57,7 +57,7 @@ module IssuePatch
WHEN #{TimeEntry.table_name}.overridden_costs IS NULL THEN
#{TimeEntry.table_name}.costs
ELSE
#{TimeEntry.table_name}.overridden_costs END")
#{TimeEntry.table_name}.overridden_costs END").to_f
end
def overall_costs

Loading…
Cancel
Save