fix: incorrect GL entry on sale of fully depreciated asset

This commit is contained in:
Khushi Rawat
2024-11-26 01:39:42 +05:30
parent edccb746f0
commit cc5ada194e

View File

@@ -454,7 +454,7 @@ def restore_asset(asset_name):
def depreciate_asset(asset, date):
if not asset.calculate_depreciation:
if not asset.calculate_depreciation or asset.status == "Fully Depreciated":
return
asset.flags.ignore_validate_update_after_submit = True