mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-21 05:59:18 +00:00
[enhancement] Int, Currency, Float, Percent as not null and default to 0
This commit is contained in:
@@ -39,12 +39,12 @@ def load_country_and_currency(bootinfo):
|
||||
bootinfo.docs += [frappe.get_doc("Country", country)]
|
||||
|
||||
bootinfo.docs += frappe.db.sql("""select * from tabCurrency
|
||||
where ifnull(enabled,0)=1""", as_dict=1, update={"doctype":":Currency"})
|
||||
where enabled=1""", as_dict=1, update={"doctype":":Currency"})
|
||||
|
||||
def get_letter_heads():
|
||||
import frappe
|
||||
ret = frappe.db.sql("""select name, content from `tabLetter Head`
|
||||
where ifnull(disabled,0)=0""")
|
||||
where disabled=0""")
|
||||
return dict(ret)
|
||||
|
||||
def update_page_info(bootinfo):
|
||||
|
||||
Reference in New Issue
Block a user