fix: exclude opening entries

(cherry picked from commit 3773f56b0b)
This commit is contained in:
l0gesh29
2025-10-06 18:14:37 +05:30
committed by Mergify
parent 56d04761f8
commit ed1c270398

View File

@@ -268,6 +268,7 @@ def get_asset_depreciation_amount_map(filters, finance_book):
.where(gle.account == IfNull(aca.depreciation_expense_account, company.depreciation_expense_account)) .where(gle.account == IfNull(aca.depreciation_expense_account, company.depreciation_expense_account))
.where(gle.debit != 0) .where(gle.debit != 0)
.where(gle.is_cancelled == 0) .where(gle.is_cancelled == 0)
.where(gle.is_opening == "No")
.where(company.name == filters.company) .where(company.name == filters.company)
.where(asset.docstatus == 1) .where(asset.docstatus == 1)
) )