mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-24 05:32:46 +01:00
fix: made changes specifically for value adjustment entry
This commit is contained in:
@@ -255,6 +255,12 @@ class AssetDepreciationSchedule(Document):
|
|||||||
value_after_depreciation,
|
value_after_depreciation,
|
||||||
):
|
):
|
||||||
asset_doc.validate_asset_finance_books(row)
|
asset_doc.validate_asset_finance_books(row)
|
||||||
|
if (
|
||||||
|
not value_after_depreciation
|
||||||
|
and not asset_doc.flags.decrease_in_asset_value_due_to_value_adjustment
|
||||||
|
):
|
||||||
|
value_after_depreciation = _get_value_after_depreciation_for_making_schedule(asset_doc, row)
|
||||||
|
row.value_after_depreciation = value_after_depreciation
|
||||||
|
|
||||||
if update_asset_finance_book_row:
|
if update_asset_finance_book_row:
|
||||||
row.db_update()
|
row.db_update()
|
||||||
|
|||||||
Reference in New Issue
Block a user