fix: asset with value zero doesn't show up in fixed asset register (#24091)

This commit is contained in:
Saqib 2020-12-10 12:30:15 +05:30 committed by GitHub
parent 6e58260d26
commit dc3e9f4216
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,7 +75,6 @@ def get_data(filters):
for asset in assets_record:
asset_value = asset.gross_purchase_amount - flt(asset.opening_accumulated_depreciation) \
- flt(depreciation_amount_map.get(asset.name))
if asset_value:
row = {
"asset_id": asset.asset_id,
"asset_name": asset.asset_name,