fix(accounts): correct sales order item deletion message for MR and PO linkage

(cherry picked from commit 5a47503611)
This commit is contained in:
Pandiyan5273
2026-01-06 12:58:54 +05:30
committed by Mergify
parent e9c14e88df
commit 4c53af0494

View File

@@ -3714,9 +3714,9 @@ def validate_child_on_delete(row, parent):
)
if flt(row.ordered_qty):
frappe.throw(
_("Row #{0}: Cannot delete item {1} which is assigned to customer's purchase order.").format(
row.idx, row.item_code
)
_(
"Row #{0}: Cannot delete item {1} which is already ordered against this Sales Order."
).format(row.idx, row.item_code)
)
if parent.doctype == "Purchase Order" and flt(row.received_qty):