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:
Afshan 2021-02-02 11:04:25 +05:30 committed by Nabin Hait
parent 90ff48baa3
commit 83768b68c1

View File

@ -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"));
}
}
});