mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-15 04:45:09 +00:00
Co-authored-by: Sudharsanan Ashok <135326972+Sudharsanan11@users.noreply.github.com> fix(manufacturing): update working hours validation (#53559)
This commit is contained in:
@@ -101,9 +101,6 @@ class Workstation(Document):
|
|||||||
self.total_working_hours += row.hours
|
self.total_working_hours += row.hours
|
||||||
|
|
||||||
def validate_working_hours(self, row):
|
def validate_working_hours(self, row):
|
||||||
if not (row.start_time and row.end_time):
|
|
||||||
frappe.throw(_("Row #{0}: Start Time and End Time are required").format(row.idx))
|
|
||||||
|
|
||||||
if get_time(row.start_time) >= get_time(row.end_time):
|
if get_time(row.start_time) >= get_time(row.end_time):
|
||||||
frappe.throw(_("Row #{0}: Start Time must be before End Time").format(row.idx))
|
frappe.throw(_("Row #{0}: Start Time must be before End Time").format(row.idx))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user