fix: Salary Structure object has no attribute set_totals (#25113)
This commit is contained in:
parent
56bd4d71a9
commit
53a1aaf33d
@ -216,7 +216,7 @@ frappe.ui.form.on('Salary Slip Timesheet', {
|
||||
});
|
||||
|
||||
var set_totals = function(frm) {
|
||||
if (frm.doc.docstatus === 0) {
|
||||
if (frm.doc.docstatus === 0 && frm.doc.doctype === "Salary Slip") {
|
||||
if (frm.doc.earnings || frm.doc.deductions) {
|
||||
frappe.call({
|
||||
method: "set_totals",
|
||||
|
Loading…
x
Reference in New Issue
Block a user