Skip to content

Commit

Permalink
fix: Use right precision for asset value after full schedule (frappe#…
Browse files Browse the repository at this point in the history
  • Loading branch information
GangaManoj authored Apr 20, 2022
1 parent b656ffa commit 269e192
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 269e192

Please sign in to comment.