mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
fix: fetch opening accumulated depreciation (#20096)
This commit is contained in:
committed by
Nabin Hait
parent
6adf617a72
commit
8ec1d8d5da
@@ -122,7 +122,7 @@ def get_data(filters):
|
|||||||
filters=conditions,
|
filters=conditions,
|
||||||
fields=["name", "asset_name", "department", "cost_center", "purchase_receipt",
|
fields=["name", "asset_name", "department", "cost_center", "purchase_receipt",
|
||||||
"asset_category", "purchase_date", "gross_purchase_amount", "location",
|
"asset_category", "purchase_date", "gross_purchase_amount", "location",
|
||||||
"available_for_use_date", "status", "purchase_invoice"])
|
"available_for_use_date", "status", "purchase_invoice", "opening_accumulated_depreciation"])
|
||||||
|
|
||||||
for asset in assets_record:
|
for asset in assets_record:
|
||||||
asset_value = asset.gross_purchase_amount - flt(asset.opening_accumulated_depreciation) \
|
asset_value = asset.gross_purchase_amount - flt(asset.opening_accumulated_depreciation) \
|
||||||
|
|||||||
Reference in New Issue
Block a user