fix: set asset value correctly after cancelling value adjustment

(cherry picked from commit fee3846144)
This commit is contained in:
Khushi Rawat
2025-02-05 15:06:55 +05:30
committed by Mergify
parent 50d10d5c8d
commit 7f7f403f5b

View File

@@ -1069,7 +1069,7 @@ def make_new_active_asset_depr_schedules_and_cancel_current_ones(
new_asset_depr_schedule_doc = frappe.copy_doc(current_asset_depr_schedule_doc)
if asset_doc.flags.decrease_in_asset_value_due_to_value_adjustment and not value_after_depreciation:
value_after_depreciation = row.value_after_depreciation + difference_amount
value_after_depreciation = row.value_after_depreciation - difference_amount
if asset_doc.flags.increase_in_asset_value_due_to_repair and row.depreciation_method in (
"Written Down Value",