mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 03:09:09 +00:00
[enhancement] default terms in company, fixes #3231
This commit is contained in:
@@ -29,8 +29,9 @@ def boot_session(bootinfo):
|
||||
bootinfo.setup_complete = frappe.db.sql("""select name from
|
||||
tabCompany limit 1""") and 'Yes' or 'No'
|
||||
|
||||
bootinfo.docs += frappe.db.sql("""select name, default_currency, cost_center
|
||||
from `tabCompany`""", as_dict=1, update={"doctype":":Company"})
|
||||
bootinfo.docs += frappe.db.sql("""select name, default_currency, cost_center,
|
||||
default_terms, default_letter_head from `tabCompany`""",
|
||||
as_dict=1, update={"doctype":":Company"})
|
||||
|
||||
def load_country_and_currency(bootinfo):
|
||||
country = frappe.db.get_default("country")
|
||||
|
||||
Reference in New Issue
Block a user