refactor(treewide): formatting and ruff fixes, + manually enabled F401
Signed-off-by: Akhil Narang <me@akhilnarang.dev>
This commit is contained in:
@@ -15,9 +15,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")
|
||||
)
|
||||
@@ -30,9 +28,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
|
||||
@@ -56,9 +52,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)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user