mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-14 20:35:09 +00:00
[fix] In purchase return entry, consider outgoing rate for serialized items
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user