mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-04 22:18:27 +00:00
fix: don't set primary action if workflow is set
This commit is contained in:
@@ -39,7 +39,7 @@ frappe.ui.form.on('Payroll Entry', {
|
||||
}
|
||||
).toggleClass('btn-primary', !(frm.doc.employees || []).length);
|
||||
}
|
||||
if ((frm.doc.employees || []).length) {
|
||||
if ((frm.doc.employees || []).length && !frappe.model.has_workflow(frm.doctype)) {
|
||||
frm.page.clear_primary_action();
|
||||
frm.page.set_primary_action(__('Create Salary Slips'), () => {
|
||||
frm.save('Submit').then(()=>{
|
||||
|
||||
Reference in New Issue
Block a user