fix: incorrect incoming rate computation for sr no

(cherry picked from commit b9642a1036)
This commit is contained in:
Ankush Menat
2021-12-21 16:49:41 +05:30
committed by mergify-bot
parent c2d58ba796
commit a3a9920771

View File

@@ -599,9 +599,9 @@ class update_entries_after(object):
incoming_rate = self.wh_data.valuation_rate
stock_value_change = 0
if incoming_rate:
if actual_qty > 0:
stock_value_change = actual_qty * incoming_rate
elif actual_qty < 0:
else:
# In case of delivery/stock issue, get average purchase rate
# of serial nos of current entry
if not sle.is_cancelled: