mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-12 06:48:31 +00:00
[fix] [hot] total in time log batch
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user