mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-08 21:12:32 +00:00
Merge pull request #52827 from frappe/mergify/bp/version-16-hotfix/pr-52821
fix: sensible insufficient stock message in pick list (backport #52821)
This commit is contained in:
@@ -1006,12 +1006,11 @@ def validate_picked_materials(item_code, required_qty, locations, picked_item_de
|
||||
if remaining_qty > 0:
|
||||
if picked_item_details:
|
||||
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"),
|
||||
)
|
||||
|
||||
else:
|
||||
frappe.msgprint(
|
||||
_("{0} units of Item {1} is not available in any of the warehouses.").format(
|
||||
|
||||
Reference in New Issue
Block a user