diff --git a/erpnext/stock/doctype/pick_list/pick_list.py b/erpnext/stock/doctype/pick_list/pick_list.py index 70d2f23070c..29dafbb5cac 100644 --- a/erpnext/stock/doctype/pick_list/pick_list.py +++ b/erpnext/stock/doctype/pick_list/pick_list.py @@ -42,8 +42,14 @@ class PickList(Document): update_sales_orders = set() for item in self.locations: # if the user has not entered any picked qty, set it to stock_qty, before submit - if item.picked_qty == 0: - item.picked_qty = item.stock_qty + if item.picked_qty < item.stock_qty: + frappe.msgprint( + _("Row {0} is short by {1} {2}").format( + item.idx, item.stock_qty - item.picked_qty, item.stock_uom + ), + _("Warning: Pick List Incomplete"), + indicator="yellow", + ) if item.sales_order_item: # update the picked_qty in SO Item