mirror of
https://github.com/frappe/erpnext.git
synced 2026-02-14 10:13:57 +00:00
fix: incorrect field valuation_rate
(cherry picked from commit 630d873214)
This commit is contained in:
committed by
Mergify
parent
11eab0c852
commit
93df11a0cf
@@ -1070,16 +1070,15 @@ class update_entries_after:
|
||||
|
||||
for d in sabb_data:
|
||||
incoming_rate = get_incoming_rate_for_serial_and_batch(self.item_code, d, sn_obj)
|
||||
|
||||
if flt(incoming_rate, self.currency_precision) == flt(
|
||||
d.valuation_rate, self.currency_precision
|
||||
) and not getattr(d, "stock_queue", None):
|
||||
continue
|
||||
|
||||
amount = incoming_rate * flt(d.qty)
|
||||
tot_amt += flt(amount)
|
||||
total_qty += flt(d.qty)
|
||||
|
||||
if flt(incoming_rate, self.currency_precision) == flt(
|
||||
d.incoming_rate, self.currency_precision
|
||||
) and not getattr(d, "stock_queue", None):
|
||||
continue
|
||||
|
||||
values_to_update = {
|
||||
"incoming_rate": incoming_rate,
|
||||
"stock_value_difference": amount,
|
||||
|
||||
Reference in New Issue
Block a user