fix(Journal Entry): Opening Entry not fetching accounts (#19148)
This commit is contained in:
parent
451d1a1744
commit
824376a045
@ -827,10 +827,10 @@ def get_opening_accounts(company):
|
|||||||
accounts = frappe.db.sql_list("""select
|
accounts = frappe.db.sql_list("""select
|
||||||
name from tabAccount
|
name from tabAccount
|
||||||
where
|
where
|
||||||
is_group=0 and report_type='Balance Sheet' and company=%s and
|
is_group=0 and report_type='Balance Sheet' and company={0} and
|
||||||
name not in(select distinct account from tabWarehouse where
|
name not in (select distinct account from tabWarehouse where
|
||||||
account is not null and account != '')
|
account is not null and account != '')
|
||||||
order by name asc""", frappe.db.escape(company))
|
order by name asc""".format(frappe.db.escape(company)))
|
||||||
|
|
||||||
return [{"account": a, "balance": get_balance_on(a)} for a in accounts]
|
return [{"account": a, "balance": get_balance_on(a)} for a in accounts]
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user