mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 04:39:11 +00:00
fix: only consider non-opening balance for Balance sheet accounts
(cherry picked from commit a2b8334046)
This commit is contained in:
@@ -559,6 +559,9 @@ def process_individual_date(docname: str, date, report_type, parentfield):
|
|||||||
|
|
||||||
if parentfield == "z_opening_balances":
|
if parentfield == "z_opening_balances":
|
||||||
query = query.where(gle.is_opening.eq("Yes"))
|
query = query.where(gle.is_opening.eq("Yes"))
|
||||||
|
else:
|
||||||
|
# Keep balances aligned with legacy PCV logic (non-opening transactions only)
|
||||||
|
query = query.where(gle.is_opening.eq("No"))
|
||||||
|
|
||||||
query = query.groupby(gle.account)
|
query = query.groupby(gle.account)
|
||||||
for dim in dimensions:
|
for dim in dimensions:
|
||||||
|
|||||||
Reference in New Issue
Block a user