Skip to content

Commit

Permalink
fix: skip Bank Entry for withheld salary slips
Browse files Browse the repository at this point in the history
Co-authored-by: Viny Selopal <viny0698@gmail.com>
(cherry picked from commit 76187bd)
  • Loading branch information
ruchamahabal authored and mergify[bot] committed Jul 23, 2024
1 parent 390fc29 commit ae7deb8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hrms/payroll/doctype/payroll_entry/payroll_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,7 @@ def get_salary_slip_details(self):
)
.where(
(SalarySlip.docstatus == 1)
& (SalarySlip.status != "Withheld")
& (SalarySlip.start_date >= self.start_date)
& (SalarySlip.end_date <= self.end_date)
& (SalarySlip.payroll_entry == self.name)
Expand Down

0 comments on commit ae7deb8

Please sign in to comment.