chore: add warehouse info in SRE msg

This commit is contained in:
s-aga-r
2023-04-23 15:45:58 +05:30
parent 0b5f03e88c
commit e517c06847

View File

@@ -556,8 +556,8 @@ class SalesOrder(SellingController):
# Stock is already reserved for the item, notify the user and skip the item. # Stock is already reserved for the item, notify the user and skip the item.
if unreserved_qty <= 0: if unreserved_qty <= 0:
frappe.msgprint( frappe.msgprint(
_("Row #{0}: Stock is already reserved for the Item {1}").format( _("Row #{0}: Stock is already reserved for the Item {1} in Warehouse {2}.").format(
item.idx, frappe.bold(item.item_code) item.idx, frappe.bold(item.item_code), frappe.bold(item.warehouse)
), ),
title=_("Stock Reservation"), title=_("Stock Reservation"),
) )
@@ -568,8 +568,8 @@ class SalesOrder(SellingController):
# No stock available to reserve, notify the user and skip the item. # No stock available to reserve, notify the user and skip the item.
if available_qty_to_reserve <= 0: if available_qty_to_reserve <= 0:
frappe.msgprint( frappe.msgprint(
_("Row #{0}: No available stock to reserve for the Item {1}").format( _("Row #{0}: No available stock to reserve for the Item {1} in Warehouse {2}.").format(
item.idx, frappe.bold(item.item_code) item.idx, frappe.bold(item.item_code), frappe.bold(item.warehouse)
), ),
title=_("Stock Reservation"), title=_("Stock Reservation"),
indicator="orange", indicator="orange",