Merge pull request #5320 from nabinhait/return_fix_1

[fix] In purchase return entry, consider outgoing rate for serialized items
This commit is contained in:
Nabin Hait 2016-05-06 16:09:55 +05:30
commit 845a980a79

View File

@ -215,6 +215,8 @@ class update_entries_after(object):
stock_value_change = 0
if incoming_rate:
stock_value_change = actual_qty * incoming_rate
elif flt(sle.outgoing_rate):
stock_value_change = actual_qty * flt(sle.outgoing_rate)
elif actual_qty < 0:
# In case of delivery/stock issue, get average purchase rate
# of serial nos of current entry