Skip to content

Commit

Permalink
fix(Payroll Entry): consideration of Salary Slip Based on Timesheet a…
Browse files Browse the repository at this point in the history
…s a filter query when it is disabled (#1474)
  • Loading branch information
krantheman committed Feb 28, 2024
1 parent 952e328 commit 9b80004
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hrms/payroll/doctype/payroll_entry/payroll_entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ frappe.ui.form.on('Payroll Entry', {
'currency', 'department', 'branch', 'designation', 'salary_slip_based_on_timesheet','grade'];

fields.forEach(field => {
if (frm.doc[field]) {
if (frm.doc[field] || frm.doc[field] === 0) {
filters[field] = frm.doc[field];
}
});
Expand Down

0 comments on commit 9b80004

Please sign in to comment.