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:
commit
845a980a79
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user