fix: job card suggest holiday as start date (backport #35958) (#36423)

fix: job card suggest holiday as start date (#35958)

(cherry picked from commit ce36d1f668)

Co-authored-by: Vimal <mailtovimal@gmail.com>
This commit is contained in:
mergify[bot]
2023-07-31 18:22:44 +05:30
committed by GitHub
parent 26a0b3b380
commit 29ddd26ba1

View File

@@ -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