mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
[fix] [hot] total in time log batch
This commit is contained in:
@@ -15,6 +15,8 @@ class TimeLogBatch(Document):
|
|||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
self.set_status()
|
self.set_status()
|
||||||
|
self.total_hours = 0.0
|
||||||
|
self.total_billing_amount = 0.0
|
||||||
for d in self.get("time_logs"):
|
for d in self.get("time_logs"):
|
||||||
tl = frappe.get_doc("Time Log", d.time_log)
|
tl = frappe.get_doc("Time Log", d.time_log)
|
||||||
self.update_time_log_values(d, tl)
|
self.update_time_log_values(d, tl)
|
||||||
|
|||||||
Reference in New Issue
Block a user