fix(promotional_scheme): toggle enable state between Buying and Selli… (#54110)

Co-authored-by: AhmedAbukhatwa <Ahmedabukhatwa1@gmail.com>
This commit is contained in:
Ahmed AbuKhatwa
2026-04-07 18:22:24 +02:00
committed by GitHub
parent edba5f3a06
commit 89560d4691

View File

@@ -21,10 +21,12 @@ frappe.ui.form.on("Promotional Scheme", {
selling: function (frm) {
frm.trigger("set_options_for_applicable_for");
frm.toggle_enable("buying", !frm.doc.selling);
},
buying: function (frm) {
frm.trigger("set_options_for_applicable_for");
frm.toggle_enable("selling", !frm.doc.buying);
},
set_options_for_applicable_for: function (frm) {