fixed a typo which prevented time entries from correctly updating its costs on first try

git-svn-id: https://dev.finn.de/svn/cockpit/trunk@262 7926756e-e54e-46e6-9721-ed318f58905e
pull/6827/head
hjust 15 years ago
parent 2512f5b745
commit 93086d20a7
  1. 4
      lib/time_entry_patch.rb

@ -8,7 +8,7 @@ module TimeEntryPatch
base.send(:include, InstanceMethods)
# Same as typing in the class
# Same as typing in the class t.update_costs
base.class_eval do
unloadable
@ -35,7 +35,7 @@ module TimeEntryPatch
def calculated_costs(rate_attr = nil)
rate_attr ||= current_rate
hours * rate.rate
hours * rate_attr.rate
rescue
0.0
end

Loading…
Cancel
Save