mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-15 15:45:01 +00:00
fix: precision issue for valuation rate calculation
This commit is contained in:
@@ -887,10 +887,7 @@ class update_entries_after:
|
||||
self.wh_data.valuation_rate
|
||||
)
|
||||
|
||||
if (
|
||||
sle.actual_qty < 0
|
||||
and flt(self.wh_data.qty_after_transaction, self.flt_precision) != 0
|
||||
):
|
||||
if flt(self.wh_data.qty_after_transaction, self.flt_precision) != 0:
|
||||
self.wh_data.valuation_rate = flt(
|
||||
self.wh_data.stock_value, self.currency_precision
|
||||
) / flt(self.wh_data.qty_after_transaction, self.flt_precision)
|
||||
|
||||
Reference in New Issue
Block a user