mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +00:00
chore: use get_single_value in place of get_value
This commit is contained in:
@@ -1176,7 +1176,6 @@ def validate_inclusive_tax(tax, doc):
|
|||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_outstanding_reference_documents(args):
|
def get_outstanding_reference_documents(args):
|
||||||
|
|
||||||
if isinstance(args, str):
|
if isinstance(args, str):
|
||||||
args = json.loads(args)
|
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"])
|
holiday_list, company = frappe.db.get_value("Employee", employee, ["holiday_list", "company"])
|
||||||
else:
|
else:
|
||||||
holiday_list = ""
|
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:
|
if not holiday_list:
|
||||||
holiday_list = frappe.get_cached_value("Company", company, "default_holiday_list")
|
holiday_list = frappe.get_cached_value("Company", company, "default_holiday_list")
|
||||||
|
|||||||
Reference in New Issue
Block a user