Update production_order.py

This commit is contained in:
Nabin Hait 2018-09-11 11:36:05 +05:30 committed by GitHub
parent 68000c66fc
commit e11f299b21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -318,7 +318,7 @@ class ProductionOrder(Document):
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))
break