diff --git a/erpnext/hr/doctype/salary_slip/salary_slip.js b/erpnext/hr/doctype/salary_slip/salary_slip.js index afff67bdef..bf86aba7d5 100644 --- a/erpnext/hr/doctype/salary_slip/salary_slip.js +++ b/erpnext/hr/doctype/salary_slip/salary_slip.js @@ -62,6 +62,15 @@ frappe.ui.form.on("Salary Slip", { }) +frappe.ui.form.on('Salary Detail', { + earnings_remove: function(frm, dt, dn) { + calculate_all(frm.doc, dt, dn); + }, + deductions_remove: function(frm, dt, dn) { + calculate_all(frm.doc, dt, dn); + } +}) + // Get leave details //--------------------------------------------------------------------- cur_frm.cscript.start_date = function(doc, dt, dn){