fix: better message for picked qty shortfall

This commit is contained in:
Ankush Menat 2022-05-11 18:43:10 +05:30
parent d3121fd845
commit 372d2d870e

View File

@ -43,9 +43,9 @@ class PickList(Document):
for item in self.locations:
if self.scan_mode and item.picked_qty < item.stock_qty:
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"),
)
elif not self.scan_mode and item.picked_qty == 0: