mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-16 10:20:31 +00:00
refactor(treewide): formatting and ruff fixes, + manually enabled F401
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
@@ -13,9 +13,7 @@ def boot_session(bootinfo):
|
||||
update_page_info(bootinfo)
|
||||
|
||||
bootinfo.sysdefaults.territory = frappe.db.get_single_value("Selling Settings", "territory")
|
||||
bootinfo.sysdefaults.customer_group = frappe.db.get_single_value(
|
||||
"Selling Settings", "customer_group"
|
||||
)
|
||||
bootinfo.sysdefaults.customer_group = frappe.db.get_single_value("Selling Settings", "customer_group")
|
||||
bootinfo.sysdefaults.allow_stale = cint(
|
||||
frappe.db.get_single_value("Accounts Settings", "allow_stale")
|
||||
)
|
||||
@@ -28,9 +26,7 @@ def boot_session(bootinfo):
|
||||
)
|
||||
|
||||
bootinfo.sysdefaults.allow_sales_order_creation_for_expired_quotation = cint(
|
||||
frappe.db.get_single_value(
|
||||
"Selling Settings", "allow_sales_order_creation_for_expired_quotation"
|
||||
)
|
||||
frappe.db.get_single_value("Selling Settings", "allow_sales_order_creation_for_expired_quotation")
|
||||
)
|
||||
|
||||
# if no company, show a dialog box to create a new company
|
||||
@@ -54,9 +50,7 @@ def boot_session(bootinfo):
|
||||
update={"doctype": ":Company"},
|
||||
)
|
||||
|
||||
party_account_types = frappe.db.sql(
|
||||
""" select name, ifnull(account_type, '') from `tabParty Type`"""
|
||||
)
|
||||
party_account_types = frappe.db.sql(""" select name, ifnull(account_type, '') from `tabParty Type`""")
|
||||
bootinfo.party_account_types = frappe._dict(party_account_types)
|
||||
|
||||
bootinfo.sysdefaults.demo_company = frappe.db.get_single_value("Global Defaults", "demo_company")
|
||||
|
||||
Reference in New Issue
Block a user