fix(manufacturing): update working hours validation (#53559)

This commit is contained in:
Sudharsanan Ashok
2026-03-17 20:47:46 +05:30
committed by GitHub
parent 3ff2871f24
commit 517310182e

View File

@@ -102,9 +102,6 @@ class Workstation(Document):
self.total_working_hours += row.hours
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):
frappe.throw(_("Row #{0}: Start Time must be before End Time").format(row.idx))