Skip to content

Commit 864a7fd

Browse files
fix(stock): ignore delivery note on delivery trip on_cancel trigger (backport #54120) (#54123)
Co-authored-by: Sudharsanan Ashok <135326972+Sudharsanan11@users.noreply.github.com> fix(stock): ignore delivery note on delivery trip on_cancel trigger (#54120)
1 parent 0bdb7e7 commit 864a7fd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

erpnext/stock/doctype/delivery_trip/delivery_trip.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ frappe.ui.form.on("Delivery Trip", {
4141
},
4242

4343
refresh: function (frm) {
44+
frm.ignore_doctypes_on_cancel_all = ["Delivery Note"];
45+
4446
if (frm.doc.docstatus == 1 && frm.doc.delivery_stops.length > 0) {
4547
frm.add_custom_button(__("Notify Customers via Email"), function () {
4648
frm.trigger("notify_customers");

0 commit comments

Comments
 (0)