mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-01 19:29:10 +00:00
fix: better message for picked qty shortfall
This commit is contained in:
@@ -43,9 +43,9 @@ class PickList(Document):
|
|||||||
for item in self.locations:
|
for item in self.locations:
|
||||||
if self.scan_mode and item.picked_qty < item.stock_qty:
|
if self.scan_mode and item.picked_qty < item.stock_qty:
|
||||||
frappe.throw(
|
frappe.throw(
|
||||||
_("Row {0} is short by {1} {2}").format(
|
_(
|
||||||
item.idx, item.stock_qty - item.picked_qty, item.stock_uom
|
"Row {0} picked quantity is less than the required quantity, additional {1} {2} required."
|
||||||
),
|
).format(item.idx, item.stock_qty - item.picked_qty, item.stock_uom),
|
||||||
title=_("Pick List Incomplete"),
|
title=_("Pick List Incomplete"),
|
||||||
)
|
)
|
||||||
elif not self.scan_mode and item.picked_qty == 0:
|
elif not self.scan_mode and item.picked_qty == 0:
|
||||||
|
|||||||
Reference in New Issue
Block a user