Merge pull request #24182 from scmmishra/fix-dont-set-primary
This commit is contained in:
commit
9fc44f1606
@ -46,7 +46,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(() => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user