mirror of
https://github.com/frappe/erpnext.git
synced 2026-04-23 16:48:30 +00:00
Co-authored-by: Sudharsanan Ashok <135326972+Sudharsanan11@users.noreply.github.com> fix(stock): ignore delivery note on delivery trip on_cancel trigger (#54120)
This commit is contained in:
@@ -41,6 +41,8 @@ frappe.ui.form.on("Delivery Trip", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
refresh: function (frm) {
|
refresh: function (frm) {
|
||||||
|
frm.ignore_doctypes_on_cancel_all = ["Delivery Note"];
|
||||||
|
|
||||||
if (frm.doc.docstatus == 1 && frm.doc.delivery_stops.length > 0) {
|
if (frm.doc.docstatus == 1 && frm.doc.delivery_stops.length > 0) {
|
||||||
frm.add_custom_button(__("Notify Customers via Email"), function () {
|
frm.add_custom_button(__("Notify Customers via Email"), function () {
|
||||||
frm.trigger("notify_customers");
|
frm.trigger("notify_customers");
|
||||||
|
|||||||
Reference in New Issue
Block a user