mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 14:39:19 +00:00
fix: submit salary is not showing after creating slary slip in payroll (#20225)
This commit is contained in:
committed by
Nabin Hait
parent
7b8bf4f4d4
commit
da82edf711
@@ -31,7 +31,11 @@ frappe.ui.form.on('Payroll Entry', {
|
|||||||
}
|
}
|
||||||
if ((frm.doc.employees || []).length) {
|
if ((frm.doc.employees || []).length) {
|
||||||
frm.page.set_primary_action(__('Create Salary Slips'), () => {
|
frm.page.set_primary_action(__('Create Salary Slips'), () => {
|
||||||
frm.save('Submit');
|
frm.save('Submit').then(()=>{
|
||||||
|
frm.page.clear_primary_action();
|
||||||
|
frm.refresh();
|
||||||
|
frm.events.refresh(frm);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user