fix: sal slip popup error

This commit is contained in:
Afshan 2020-12-23 11:39:38 +05:30
parent 0a1390a7ca
commit adf9b49e14

View File

@ -214,6 +214,7 @@ frappe.ui.form.on('Salary Slip Timesheet', {
});
var calculate_totals = function(frm) {
if (frm.doc.docstatus === 0) {
if (frm.doc.earnings || frm.doc.deductions) {
frappe.call({
method: "set_totals",
@ -223,6 +224,7 @@ var calculate_totals = function(frm) {
}
});
}
}
};
frappe.ui.form.on('Salary Detail', {