diff --git a/erpnext/stock/get_item_details.py b/erpnext/stock/get_item_details.py index f44057b2a96..8fe18714e4e 100644 --- a/erpnext/stock/get_item_details.py +++ b/erpnext/stock/get_item_details.py @@ -213,7 +213,7 @@ def update_stock(ctx, out, doc=None): for batch_no, batch_qty in batches.items(): rate = get_batch_based_item_price( - {"price_list": doc.selling_price_list, "uom": out.uom, "batch_no": batch_no}, + {"price_list": doc.get("selling_price_list"), "uom": out.uom, "batch_no": batch_no}, out.item_code, ) if batch_qty >= qty: