mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-16 08:05:00 +00:00
fix: incorrect single valeu fetch
refer https://github.com/frappe/frappe/pull/18787 [skip ci]
This commit is contained in:
@@ -101,7 +101,7 @@ def get_default_holiday_list():
|
||||
def check_if_within_operating_hours(workstation, operation, from_datetime, to_datetime):
|
||||
if from_datetime and to_datetime:
|
||||
if not cint(
|
||||
frappe.db.get_value("Manufacturing Settings", "None", "allow_production_on_holidays")
|
||||
frappe.db.get_value("Manufacturing Settings", None, "allow_production_on_holidays")
|
||||
):
|
||||
check_workstation_for_holiday(workstation, from_datetime, to_datetime)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user