Skip to content

Commit dbe2a87

Browse files
mihir-kandoimergify[bot]
authored andcommitted
fix: sensible insufficient stock message in pick list
(cherry picked from commit 1352dc7)
1 parent f78317a commit dbe2a87

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

erpnext/stock/doctype/pick_list/pick_list.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1006,12 +1006,11 @@ def validate_picked_materials(item_code, required_qty, locations, picked_item_de
10061006
if remaining_qty > 0:
10071007
if picked_item_details:
10081008
frappe.msgprint(
1009-
_("{0} units of Item {1} is picked in another Pick List.").format(
1010-
remaining_qty, get_link_to_form("Item", item_code)
1011-
),
1009+
_(
1010+
"{0} units of Item {1} is not available in any of the warehouses. Other Pick Lists exist for this item."
1011+
).format(remaining_qty, get_link_to_form("Item", item_code)),
10121012
title=_("Already Picked"),
10131013
)
1014-
10151014
else:
10161015
frappe.msgprint(
10171016
_("{0} units of Item {1} is not available in any of the warehouses.").format(

0 commit comments

Comments
 (0)