chore: use get_single_value in place of get_value

This commit is contained in:
Rucha Mahabal 2022-07-19 17:51:03 +05:30
parent 8ce526115d
commit b30f66c029
2 changed files with 1 additions and 2 deletions

View File

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

View File

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