chore: use get_single_value
in place of get_value
This commit is contained in:
parent
8ce526115d
commit
b30f66c029
@ -1176,7 +1176,6 @@ def validate_inclusive_tax(tax, doc):
|
||||
|
||||
@frappe.whitelist()
|
||||
def get_outstanding_reference_documents(args):
|
||||
|
||||
if isinstance(args, str):
|
||||
args = json.loads(args)
|
||||
|
||||
|
@ -284,7 +284,7 @@ def get_holiday_list_for_employee(employee, raise_exception=True):
|
||||
holiday_list, company = frappe.db.get_value("Employee", employee, ["holiday_list", "company"])
|
||||
else:
|
||||
holiday_list = ""
|
||||
company = frappe.db.get_value("Global Defaults", None, "default_company")
|
||||
company = frappe.db.get_single_value("Global Defaults", "default_company")
|
||||
|
||||
if not holiday_list:
|
||||
holiday_list = frappe.get_cached_value("Company", company, "default_holiday_list")
|
||||
|
Loading…
x
Reference in New Issue
Block a user