Skip to content

Commit

Permalink
fix: set asset value correctly after cancelling value adjustment
Browse files Browse the repository at this point in the history
(cherry picked from commit fee3846)
  • Loading branch information
khushi8112 authored and mergify[bot] committed Feb 5, 2025
1 parent 50d10d5 commit 7f7f403
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7f7f403

Please sign in to comment.