[fix] [hot] total in time log batch

This commit is contained in:
Rushabh Mehta 2015-08-06 15:45:59 +05:30
parent 143f384986
commit d6bdad7adf

View File

@ -15,6 +15,8 @@ class TimeLogBatch(Document):
def validate(self):
self.set_status()
self.total_hours = 0.0
self.total_billing_amount = 0.0
for d in self.get("time_logs"):
tl = frappe.get_doc("Time Log", d.time_log)
self.update_time_log_values(d, tl)