Merge pull request #51598 from frappe/mergify/bp/version-15-hotfix/pr-51534

fix(accounts): correct sales order item deletion message for MR and PO linkage (backport #51534)
This commit is contained in:
ruthra kumar
2026-01-08 17:57:30 +05:30
committed by GitHub

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):