Fixed format of the date request to Rate.amount_for. #1924

This commit is contained in:
Eric Davis
2009-01-21 14:34:19 -08:00
parent 4f18c28bba
commit 045f50e0dd
4 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -16,10 +16,10 @@ class FixedDeliverable < Deliverable
# Get all timelogs assigned
time_logs = self.issues.collect(&:time_entries).flatten
# Find each Member for their rate
time_logs.each do |time_log|
rate = Rate.amount_for(time_log.user, time_log.project, time_log.spent_on)
rate = Rate.amount_for(time_log.user, time_log.project, time_log.spent_on.to_s)
total += (rate * time_log.hours) unless rate.nil?
end
+2 -2
View File
@@ -9,10 +9,10 @@ class HourlyDeliverable < Deliverable
# Get all timelogs assigned
time_logs = self.issues.collect(&:time_entries).flatten
# Find each Member for their rate
time_logs.each do |time_log|
rate = Rate.amount_for(time_log.user, time_log.project, time_log.spent_on)
rate = Rate.amount_for(time_log.user, time_log.project, time_log.spent_on.to_s)
total += (rate * time_log.hours) unless rate.nil?
end