mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-25 07:54:46 +00:00
perf: Use cached accounts settings (#47947)
This commit is contained in:
@@ -20,10 +20,8 @@ def boot_session(bootinfo):
|
||||
bootinfo.sysdefaults.use_server_side_reactivity = frappe.db.get_single_value(
|
||||
"Selling Settings", "use_server_side_reactivity"
|
||||
)
|
||||
bootinfo.sysdefaults.allow_stale = cint(
|
||||
frappe.db.get_single_value("Accounts Settings", "allow_stale")
|
||||
)
|
||||
bootinfo.sysdefaults.over_billing_allowance = frappe.db.get_single_value(
|
||||
bootinfo.sysdefaults.allow_stale = cint(frappe.get_settings("Accounts Settings", "allow_stale"))
|
||||
bootinfo.sysdefaults.over_billing_allowance = frappe.get_settings(
|
||||
"Accounts Settings", "over_billing_allowance"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user