fix: show non-depreciable assets in fixed asset register (#35858)

fix: show non-depr assets in fixed asset register
This commit is contained in:
Anand Baburajan
2023-06-23 08:21:32 +05:30
committed by GitHub
parent 69780da099
commit 42d09448ee

View File

@@ -115,7 +115,11 @@ def get_data(filters):
depreciation_amount_map = get_asset_depreciation_amount_map(filters, finance_book) depreciation_amount_map = get_asset_depreciation_amount_map(filters, finance_book)
for asset in assets_record: for asset in assets_record:
if assets_linked_to_fb and asset.asset_id not in assets_linked_to_fb: if (
assets_linked_to_fb
and asset.calculate_depreciation
and asset.asset_id not in assets_linked_to_fb
):
continue continue
asset_value = get_asset_value_after_depreciation( asset_value = get_asset_value_after_depreciation(