Skip to content

Commit

Permalink
fix: show non-depreciable assets in fixed asset register (#35858)
Browse files Browse the repository at this point in the history
fix: show non-depr assets in fixed asset register
(cherry picked from commit 42d0944)
  • Loading branch information
anandbaburajan authored and mergify[bot] committed Jun 23, 2023
1 parent f37484c commit d1eabf5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ def get_data(filters):
depreciation_amount_map = get_asset_depreciation_amount_map(filters, finance_book)

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

asset_value = get_asset_value_after_depreciation(
Expand Down

0 comments on commit d1eabf5

Please sign in to comment.