Skip to content

Commit

Permalink
fix(SalarySlip): use the correct variable for the function in _get_da…
Browse files Browse the repository at this point in the history
…ys_outside_period (#2620)
  • Loading branch information
NethminaHiker360 authored Jan 13, 2025
1 parent 5655bca commit 81a6f28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hrms/payroll/doctype/salary_slip/salary_slip.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ def _get_days(start_date, end_date):
days = 0
end_date = getdate(end_date)
for day in range(no_of_days):
date = add_days(self.end_date, -day)
date = add_days(end_date, -day)
if cstr(date) not in holidays:
days += 1
return days
Expand Down

0 comments on commit 81a6f28

Please sign in to comment.