fix: Replace edit_dates with flags.increase_in_asset_life

This commit is contained in:
GangaManoj
2021-06-19 14:00:26 +05:30
parent ae8cb335b6
commit bd1796cbb6
4 changed files with 6 additions and 13 deletions

View File

@@ -835,7 +835,7 @@ def get_depreciation_amount(asset, depreciable_value, row):
if row.depreciation_method in ("Straight Line", "Manual"):
# if the Depreciation Schedule is being prepared for the first time
if not asset.edit_dates:
if not asset.flags.increase_in_asset_life:
depreciation_amount = (flt(row.value_after_depreciation) -
flt(row.expected_value_after_useful_life)) / depreciation_left