mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-30 20:18:27 +00:00
(cherry picked from commit b0cf6195e9)
Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
@@ -441,8 +441,9 @@ class update_entries_after(object):
|
||||
# assert
|
||||
self.wh_data.valuation_rate = sle.valuation_rate
|
||||
self.wh_data.qty_after_transaction = sle.qty_after_transaction
|
||||
self.wh_data.stock_queue = [[self.wh_data.qty_after_transaction, self.wh_data.valuation_rate]]
|
||||
self.wh_data.stock_value = flt(self.wh_data.qty_after_transaction) * flt(self.wh_data.valuation_rate)
|
||||
if self.valuation_method != "Moving Average":
|
||||
self.wh_data.stock_queue = [[self.wh_data.qty_after_transaction, self.wh_data.valuation_rate]]
|
||||
else:
|
||||
if self.valuation_method == "Moving Average":
|
||||
self.get_moving_average_values(sle)
|
||||
|
||||
Reference in New Issue
Block a user