From ff81bd5eb3c3181f032032d02a56748611c7af33 Mon Sep 17 00:00:00 2001 From: Vimal Date: Mon, 31 Jul 2023 13:21:31 +0100 Subject: [PATCH] fix: job card suggest holiday as start date (#35958) (cherry picked from commit ce36d1f668425539a4937dfca4cefa03dc96648d) --- erpnext/manufacturing/doctype/workstation/workstation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/manufacturing/doctype/workstation/workstation.py b/erpnext/manufacturing/doctype/workstation/workstation.py index fabd254d8f65..0eb9906a2ab4 100644 --- a/erpnext/manufacturing/doctype/workstation/workstation.py +++ b/erpnext/manufacturing/doctype/workstation/workstation.py @@ -114,7 +114,7 @@ def validate_workstation_holiday(self, schedule_date, skip_holiday_list_check=Fa if schedule_date in tuple(get_holidays(self.holiday_list)): schedule_date = add_days(schedule_date, 1) - self.validate_workstation_holiday(schedule_date, skip_holiday_list_check=True) + return self.validate_workstation_holiday(schedule_date, skip_holiday_list_check=True) return schedule_date