fix: fixed asset register showing opening entries

(cherry picked from commit c9d98eb4f0)
This commit is contained in:
ravibharathi656
2025-10-09 13:49:06 +05:30
committed by Mergify
parent c350e9dabd
commit 1ea6e1db12

View File

@@ -319,6 +319,7 @@ def get_asset_value_adjustment_map(filters, finance_book):
.select(asset.name.as_("asset"), Sum(gle.debit - gle.credit).as_("adjustment_amount"))
.where(gle.account == aca.fixed_asset_account)
.where(gle.is_cancelled == 0)
.where(gle.is_opening == "No")
.where(company.name == filters.company)
.where(asset.docstatus == 1)
)