mirror of
https://github.com/frappe/erpnext.git
synced 2025-12-03 18:35:36 +00:00
Merge pull request #50769 from rohitwaghchaure/fixed-two-primary-buttons
fix: two primary buttons
This commit is contained in:
@@ -205,7 +205,7 @@ frappe.ui.form.on("Work Order", {
|
||||
if (frm.doc.__onload?.show_create_job_card_button) {
|
||||
frm.add_custom_button(__("Create Job Card"), () => {
|
||||
frm.trigger("make_job_card");
|
||||
}).addClass("btn-primary");
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -277,7 +277,7 @@ frappe.ui.form.on("Work Order", {
|
||||
if (non_consumed_items && non_consumed_items.length) {
|
||||
frm.add_custom_button(__("Return Components"), function () {
|
||||
frm.trigger("create_stock_return_entry");
|
||||
}).addClass("btn-primary");
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -33,6 +33,6 @@ frappe.ui.form.on("Serial No", {
|
||||
posting_time: frappe.datetime.now_time(),
|
||||
};
|
||||
frappe.set_route("query-report", "Serial No Ledger");
|
||||
}).addClass("btn-primary");
|
||||
});
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user