mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-01 23:53:21 +00:00
frappe/frappe#478 erpnext install works
This commit is contained in:
@@ -14,7 +14,7 @@ class TimeLogBatch(Document):
|
||||
def validate(self):
|
||||
self.set_status()
|
||||
self.total_hours = 0.0
|
||||
for d in self.doclist.get({"doctype":"Time Log Batch Detail"}):
|
||||
for d in self.get("time_log_batch_details"):
|
||||
tl = frappe.get_doc("Time Log", d.time_log)
|
||||
self.update_time_log_values(d, tl)
|
||||
self.validate_time_log_is_submitted(tl)
|
||||
@@ -53,7 +53,7 @@ class TimeLogBatch(Document):
|
||||
|
||||
def update_status(self, time_log_batch):
|
||||
self.set_status()
|
||||
for d in self.doclist.get({"doctype":"Time Log Batch Detail"}):
|
||||
for d in self.get("time_log_batch_details"):
|
||||
tl = frappe.get_doc("Time Log", d.time_log)
|
||||
tl.time_log_batch = time_log_batch
|
||||
tl.sales_invoice = self.sales_invoice
|
||||
|
||||
Reference in New Issue
Block a user