fix: two primary buttons

(cherry picked from commit f68515210b)
This commit is contained in:
Rohit Waghchaure
2025-11-27 11:43:21 +05:30
committed by Mergify
parent cac9eed306
commit 1d2fccfc0b
2 changed files with 3 additions and 3 deletions

View File

@@ -209,7 +209,7 @@ frappe.ui.form.on("Work Order", {
if (not_completed && not_completed.length) { if (not_completed && not_completed.length) {
frm.add_custom_button(__("Create Job Card"), () => { frm.add_custom_button(__("Create Job Card"), () => {
frm.trigger("make_job_card"); frm.trigger("make_job_card");
}).addClass("btn-primary"); });
} }
} }
} }
@@ -253,7 +253,7 @@ frappe.ui.form.on("Work Order", {
if (non_consumed_items && non_consumed_items.length) { if (non_consumed_items && non_consumed_items.length) {
frm.add_custom_button(__("Return Components"), function () { frm.add_custom_button(__("Return Components"), function () {
frm.trigger("create_stock_return_entry"); frm.trigger("create_stock_return_entry");
}).addClass("btn-primary"); });
} }
} }
}, },

View File

@@ -33,6 +33,6 @@ frappe.ui.form.on("Serial No", {
posting_time: frappe.datetime.now_time(), posting_time: frappe.datetime.now_time(),
}; };
frappe.set_route("query-report", "Serial No Ledger"); frappe.set_route("query-report", "Serial No Ledger");
}).addClass("btn-primary"); });
}, },
}); });