mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-27 10:38:30 +00:00
fix(accounts): correct sales order item deletion message for MR and PO linkage
(cherry picked from commit 5a47503611)
This commit is contained in:
@@ -3714,9 +3714,9 @@ def validate_child_on_delete(row, parent):
|
|||||||
)
|
)
|
||||||
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):
|
||||||
|
|||||||
Reference in New Issue
Block a user