mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 03:39:11 +00:00
fixes in auto create time logs
This commit is contained in:
@@ -298,7 +298,7 @@ def make_time_log(name, operation, from_time, to_time, qty=None, project=None,
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def auto_make_time_log(production_order_id):
|
def auto_make_time_log(production_order_id):
|
||||||
if frappe.db.get_value("Time Log", filters={"production_order": production_order_id}):
|
if frappe.db.get_value("Time Log", filters={"production_order": production_order_id, "docstatus":1}):
|
||||||
frappe.throw(_("Time logs already exists against this Production Order"))
|
frappe.throw(_("Time logs already exists against this Production Order"))
|
||||||
|
|
||||||
time_logs = []
|
time_logs = []
|
||||||
|
|||||||
Reference in New Issue
Block a user