From 29ddd26ba107f770c1ec78dc2ff600376ba97bbd Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 31 Jul 2023 18:22:44 +0530 Subject: [PATCH] fix: job card suggest holiday as start date (backport #35958) (#36423) fix: job card suggest holiday as start date (#35958) (cherry picked from commit ce36d1f668425539a4937dfca4cefa03dc96648d) Co-authored-by: Vimal --- 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 fabd254d8f6..0eb9906a2ab 100644 --- a/erpnext/manufacturing/doctype/workstation/workstation.py +++ b/erpnext/manufacturing/doctype/workstation/workstation.py @@ -114,7 +114,7 @@ class Workstation(Document): 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