chore: resolve conflict
This commit is contained in:
@@ -29,7 +29,6 @@ frappe.ui.form.on("Subscription", {
|
|||||||
},
|
},
|
||||||
|
|
||||||
refresh: function (frm) {
|
refresh: function (frm) {
|
||||||
<<<<<<< HEAD
|
|
||||||
if (!frm.is_new()) {
|
if (!frm.is_new()) {
|
||||||
if (frm.doc.status !== "Cancelled") {
|
if (frm.doc.status !== "Cancelled") {
|
||||||
frm.add_custom_button(__("Cancel Subscription"), () =>
|
frm.add_custom_button(__("Cancel Subscription"), () =>
|
||||||
@@ -38,39 +37,17 @@ frappe.ui.form.on("Subscription", {
|
|||||||
frm.add_custom_button(__("Fetch Subscription Updates"), () =>
|
frm.add_custom_button(__("Fetch Subscription Updates"), () =>
|
||||||
frm.events.get_subscription_updates(frm)
|
frm.events.get_subscription_updates(frm)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
frm.add_custom_button(
|
||||||
|
__("Force-Fetch Subscription Updates"),
|
||||||
|
() => frm.trigger("force_fetch_subscription_updates"),
|
||||||
|
__("Actions")
|
||||||
|
);
|
||||||
} else if (frm.doc.status === "Cancelled") {
|
} else if (frm.doc.status === "Cancelled") {
|
||||||
frm.add_custom_button(__("Restart Subscription"), () =>
|
frm.add_custom_button(__("Restart Subscription"), () =>
|
||||||
frm.events.renew_this_subscription(frm)
|
frm.events.renew_this_subscription(frm)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
=======
|
|
||||||
if (frm.is_new()) return;
|
|
||||||
|
|
||||||
if (frm.doc.status !== "Cancelled") {
|
|
||||||
frm.add_custom_button(
|
|
||||||
__("Fetch Subscription Updates"),
|
|
||||||
() => frm.trigger("get_subscription_updates"),
|
|
||||||
__("Actions")
|
|
||||||
);
|
|
||||||
|
|
||||||
frm.add_custom_button(
|
|
||||||
__("Force-Fetch Subscription Updates"),
|
|
||||||
() => frm.trigger("force_fetch_subscription_updates"),
|
|
||||||
__("Actions")
|
|
||||||
);
|
|
||||||
|
|
||||||
frm.add_custom_button(
|
|
||||||
__("Cancel Subscription"),
|
|
||||||
() => frm.trigger("cancel_this_subscription"),
|
|
||||||
__("Actions")
|
|
||||||
);
|
|
||||||
} else if (frm.doc.status === "Cancelled") {
|
|
||||||
frm.add_custom_button(
|
|
||||||
__("Restart Subscription"),
|
|
||||||
() => frm.trigger("renew_this_subscription"),
|
|
||||||
__("Actions")
|
|
||||||
);
|
|
||||||
>>>>>>> 1ef890db73 (fix: force fetch updates for subcription)
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user