[fixes] set default bank account in bank reconciliation statement report

This commit is contained in:
Saurabh 2016-05-18 16:29:47 +05:30
parent 35047ac283
commit c0c8af06da
2 changed files with 2 additions and 1 deletions

View File

@ -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 {

View File

@ -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):