fix: incorrect incoming rate computation for sr no

This commit is contained in:
Ankush Menat 2021-12-21 16:49:41 +05:30
parent 3438e1f0c4
commit b9642a1036

View File

@ -602,9 +602,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: