mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
Merge pull request #24226 from AfshanKhan/asset-report
fix: asset depreciation ledger
This commit is contained in:
@@ -47,6 +47,7 @@ def get_data(filters):
|
|||||||
|
|
||||||
for d in gl_entries:
|
for d in gl_entries:
|
||||||
asset_data = assets_details.get(d.against_voucher)
|
asset_data = assets_details.get(d.against_voucher)
|
||||||
|
if asset_data:
|
||||||
if not asset_data.get("accumulated_depreciation_amount"):
|
if not asset_data.get("accumulated_depreciation_amount"):
|
||||||
asset_data.accumulated_depreciation_amount = d.debit
|
asset_data.accumulated_depreciation_amount = d.debit
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user