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

This commit is contained in:
Pandiyan5273
2026-01-06 12:58:54 +05:30
parent afc5dda372
commit 5a47503611

View File

@@ -3748,9 +3748,9 @@ def validate_child_on_delete(row, parent, ordered_item=None):
) )
if flt(row.ordered_qty): if flt(row.ordered_qty):
frappe.throw( 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): if parent.doctype == "Purchase Order" and flt(row.received_qty):