fix: incorrect GL entry on sale of fully depreciated asset
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user