[fixes] set default bank account in bank reconciliation statement report
This commit is contained in:
parent
35047ac283
commit
c0c8af06da
@ -8,6 +8,7 @@ frappe.query_reports["Bank Reconciliation Statement"] = {
|
||||
"label": __("Bank Account"),
|
||||
"fieldtype": "Link",
|
||||
"options": "Account",
|
||||
"default": locals[":Company"][frappe.defaults.get_user_default("Company")]["default_bank_account"],
|
||||
"reqd": 1,
|
||||
"get_query": function() {
|
||||
return {
|
||||
|
@ -30,7 +30,7 @@ def boot_session(bootinfo):
|
||||
tabCompany limit 1""") and 'Yes' or 'No'
|
||||
|
||||
bootinfo.docs += frappe.db.sql("""select name, default_currency, cost_center,
|
||||
default_terms, default_letter_head from `tabCompany`""",
|
||||
default_terms, default_letter_head, default_bank_account from `tabCompany`""",
|
||||
as_dict=1, update={"doctype":":Company"})
|
||||
|
||||
def load_country_and_currency(bootinfo):
|
||||
|
Loading…
x
Reference in New Issue
Block a user