mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 18:59:08 +00:00
Merge pull request #49541 from frappe/mergify/bp/version-15-hotfix/pr-49539
fix: precision issue for valuation rate calculation (backport #49539)
This commit is contained in:
@@ -883,10 +883,7 @@ class update_entries_after:
|
|||||||
self.wh_data.valuation_rate
|
self.wh_data.valuation_rate
|
||||||
)
|
)
|
||||||
|
|
||||||
if (
|
if flt(self.wh_data.qty_after_transaction, self.flt_precision) != 0:
|
||||||
sle.actual_qty < 0
|
|
||||||
and flt(self.wh_data.qty_after_transaction, self.flt_precision) != 0
|
|
||||||
):
|
|
||||||
self.wh_data.valuation_rate = flt(
|
self.wh_data.valuation_rate = flt(
|
||||||
self.wh_data.stock_value, self.currency_precision
|
self.wh_data.stock_value, self.currency_precision
|
||||||
) / flt(self.wh_data.qty_after_transaction, self.flt_precision)
|
) / flt(self.wh_data.qty_after_transaction, self.flt_precision)
|
||||||
|
|||||||
Reference in New Issue
Block a user