mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-14 04:15:10 +00:00
fix: Opening balance in TB report (#36171)
fix: Opening balance in TB report (#36171)
(cherry picked from commit cfae52a40a)
Co-authored-by: Deepesh Garg <deepeshgarg6@gmail.com>
This commit is contained in:
@@ -221,7 +221,10 @@ def get_opening_balance(
|
|||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
if start_date:
|
if start_date:
|
||||||
opening_balance = opening_balance.where(closing_balance.posting_date >= start_date)
|
opening_balance = opening_balance.where(
|
||||||
|
(closing_balance.posting_date >= start_date)
|
||||||
|
& (closing_balance.posting_date < filters.from_date)
|
||||||
|
)
|
||||||
opening_balance = opening_balance.where(closing_balance.is_opening == "No")
|
opening_balance = opening_balance.where(closing_balance.is_opening == "No")
|
||||||
else:
|
else:
|
||||||
opening_balance = opening_balance.where(
|
opening_balance = opening_balance.where(
|
||||||
|
|||||||
Reference in New Issue
Block a user