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: 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: