mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
Update production_order.py
This commit is contained in:
@@ -318,7 +318,7 @@ class ProductionOrder(Document):
|
|||||||
|
|
||||||
from_time, to_time = self.get_start_end_time(timesheet, d.name)
|
from_time, to_time = self.get_start_end_time(timesheet, d.name)
|
||||||
|
|
||||||
if date_diff(from_time, original_start_time) > plan_days:
|
if date_diff(from_time, original_start_time) > cint(plan_days):
|
||||||
frappe.throw(_("Unable to find Time Slot in the next {0} days for Operation {1}").format(plan_days, d.operation))
|
frappe.throw(_("Unable to find Time Slot in the next {0} days for Operation {1}").format(plan_days, d.operation))
|
||||||
break
|
break
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user