fix(stock): ignore delivery note on delivery trip on_cancel trigger (#54120)

This commit is contained in:
Sudharsanan Ashok
2026-04-08 16:36:02 +05:30
committed by GitHub
parent f9e2696745
commit 086122f650

View File

@@ -41,6 +41,8 @@ frappe.ui.form.on("Delivery Trip", {
},
refresh: function (frm) {
frm.ignore_doctypes_on_cancel_all = ["Delivery Note"];
if (frm.doc.docstatus == 1 && frm.doc.delivery_stops.length > 0) {
frm.add_custom_button(__("Notify Customers via Email"), function () {
frm.trigger("notify_customers");