Skip to content

Commit

Permalink
Merge pull request #45738 from frappe/mergify/bp/version-15-hotfix/pr…
Browse files Browse the repository at this point in the history
…-45735

fix: set asset value correctly after cancelling value adjustment (backport #45735)
  • Loading branch information
khushi8112 authored Feb 5, 2025
2 parents d86f783 + 7f7f403 commit f72d4b6
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 f72d4b6

Please sign in to comment.