Skip to content

Commit

Permalink
fix: Use right precision for asset value after full schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
GangaManoj committed Apr 19, 2022
1 parent 8c291f7 commit e2c05e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erpnext/assets/doctype/asset/asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ def validate_expected_value_after_useful_life(self):

asset_value_after_full_schedule = flt(
flt(self.gross_purchase_amount) - flt(accumulated_depreciation_after_full_schedule),
self.precision("gross_purchase_amount"),
row.precision("expected_value_after_useful_life")
)

if (
Expand Down

0 comments on commit e2c05e6

Please sign in to comment.