mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-09 08:11:19 +00:00
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):
|
def depreciate_asset(asset, date):
|
||||||
if not asset.calculate_depreciation:
|
if not asset.calculate_depreciation or asset.status == "Fully Depreciated":
|
||||||
return
|
return
|
||||||
|
|
||||||
asset.flags.ignore_validate_update_after_submit = True
|
asset.flags.ignore_validate_update_after_submit = True
|
||||||
|
|||||||
Reference in New Issue
Block a user