fix: emp disappear (#24525)
* fix: emp disappear * fix: renamed set_totals_call to set_totals Co-authored-by: Nabin Hait <nabinhait@gmail.com>
This commit is contained in:
parent
90ff48baa3
commit
83768b68c1
@ -342,3 +342,11 @@ let render_employee_attendance = function (frm, data) {
|
||||
})
|
||||
);
|
||||
};
|
||||
|
||||
frappe.ui.form.on('Payroll Employee Detail', {
|
||||
employee: function(frm) {
|
||||
if (!frm.doc.payroll_frequency) {
|
||||
frappe.throw(__("Please set a Payroll Frequency"));
|
||||
}
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user