mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-25 14:11:45 +01:00
fix: sensible insufficient stock message in pick list
(cherry picked from commit 1352dc79bb)
This commit is contained in:
@@ -997,12 +997,11 @@ def validate_picked_materials(item_code, required_qty, locations, picked_item_de
|
|||||||
if remaining_qty > 0:
|
if remaining_qty > 0:
|
||||||
if picked_item_details:
|
if picked_item_details:
|
||||||
frappe.msgprint(
|
frappe.msgprint(
|
||||||
_("{0} units of Item {1} is picked in another Pick List.").format(
|
_(
|
||||||
remaining_qty, get_link_to_form("Item", item_code)
|
"{0} units of Item {1} is not available in any of the warehouses. Other Pick Lists exist for this item."
|
||||||
),
|
).format(remaining_qty, get_link_to_form("Item", item_code)),
|
||||||
title=_("Already Picked"),
|
title=_("Already Picked"),
|
||||||
)
|
)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
frappe.msgprint(
|
frappe.msgprint(
|
||||||
_("{0} units of Item {1} is not available in any of the warehouses.").format(
|
_("{0} units of Item {1} is not available in any of the warehouses.").format(
|
||||||
|
|||||||
Reference in New Issue
Block a user