Merge pull request #7876 from KanchanChauhan/salary-slip-fix

[Fix] Update totals on salary component deletion
This commit is contained in:
Nabin Hait 2017-02-27 17:26:39 +05:30 committed by GitHub
commit 3ddc26060a

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