Skip to content

Commit

Permalink
fix: test case correction
Browse files Browse the repository at this point in the history
(cherry picked from commit 2f7e623)
  • Loading branch information
khushi8112 authored and mergify[bot] committed Dec 23, 2024
1 parent 516a325 commit ddfead2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion erpnext/assets/doctype/asset/test_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -889,7 +889,7 @@ def test_pro_rata_depreciation_entry_for_wdv(self):
["2030-12-31", 28630.14, 28630.14],
["2031-12-31", 35684.93, 64315.07],
["2032-12-31", 17842.46, 82157.53],
["2033-06-06", 5342.46, 87499.99],
["2033-06-06", 5342.47, 87500.00],
]

schedules = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def _make_depr_schedule(
date_of_disposal,
original_schedule_date=schedule_date,
)

depreciation_amount = flt(depreciation_amount, asset_doc.precision("gross_purchase_amount"))
if depreciation_amount > 0:
self.add_depr_schedule_row(date_of_disposal, depreciation_amount, n)

Expand Down

0 comments on commit ddfead2

Please sign in to comment.