mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
fix: prevent user from proceeding without all qty picked.
This commit is contained in:
@@ -43,13 +43,9 @@ class PickList(Document):
|
|||||||
for item in self.locations:
|
for item in self.locations:
|
||||||
# if the user has not entered any picked qty, set it to stock_qty, before submit
|
# if the user has not entered any picked qty, set it to stock_qty, before submit
|
||||||
if item.picked_qty < item.stock_qty:
|
if item.picked_qty < item.stock_qty:
|
||||||
frappe.msgprint(
|
frappe.throw(_("Row {0} is short by {1} {2}").format(
|
||||||
_("Row {0} is short by {1} {2}").format(
|
item.idx, item.stock_qty - item.picked_qty, item.stock_uom
|
||||||
item.idx, item.stock_qty - item.picked_qty, item.stock_uom
|
), title=_("Pick List Incomplete"))
|
||||||
),
|
|
||||||
_("Warning: Pick List Incomplete"),
|
|
||||||
indicator="yellow",
|
|
||||||
)
|
|
||||||
|
|
||||||
if item.sales_order_item:
|
if item.sales_order_item:
|
||||||
# update the picked_qty in SO Item
|
# update the picked_qty in SO Item
|
||||||
|
|||||||
Reference in New Issue
Block a user