[Fix] Update totals on salary component deletion

This commit is contained in:
Kanchan Chauhan 2017-02-27 17:21:41 +05:30
parent 72c7e73ce0
commit c02745c826

View File

@ -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){