Update production_order.py
This commit is contained in:
parent
68000c66fc
commit
e11f299b21
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user