Merge pull request #51534 from aerele/fix/support-56421

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

View File

@@ -3748,9 +3748,9 @@ def validate_child_on_delete(row, parent, ordered_item=None):
)
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):