mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-07 07:02:54 +00:00
[fix] Opening balance in trial balance and general ledger based on is_opening
This commit is contained in:
@@ -155,7 +155,7 @@ def get_accountwise_gle(filters, gl_entries, gle_map):
|
||||
for gle in gl_entries:
|
||||
amount = flt(gle.debit, 3) - flt(gle.credit, 3)
|
||||
if (filters.get("account") or filters.get("party") or filters.get("group_by_account")) \
|
||||
and gle.posting_date < from_date:
|
||||
and (gle.posting_date < from_date or cstr(gle.is_opening) == "Yes"):
|
||||
gle_map[gle.account].opening += amount
|
||||
if filters.get("account") or filters.get("party"):
|
||||
opening += amount
|
||||
|
||||
Reference in New Issue
Block a user