mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 16:34:46 +00:00
Merge pull request #24192 from AfshanKhan/sal-slip-pop-up-error
fix: sal slip popup error
This commit is contained in:
@@ -214,14 +214,16 @@ frappe.ui.form.on('Salary Slip Timesheet', {
|
|||||||
});
|
});
|
||||||
|
|
||||||
var calculate_totals = function(frm) {
|
var calculate_totals = function(frm) {
|
||||||
if (frm.doc.earnings || frm.doc.deductions) {
|
if (frm.doc.docstatus === 0) {
|
||||||
frappe.call({
|
if (frm.doc.earnings || frm.doc.deductions) {
|
||||||
method: "set_totals",
|
frappe.call({
|
||||||
doc: frm.doc,
|
method: "set_totals",
|
||||||
callback: function() {
|
doc: frm.doc,
|
||||||
frm.refresh_fields();
|
callback: function() {
|
||||||
}
|
frm.refresh_fields();
|
||||||
});
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user