Skip to content

Commit

Permalink
fix: bank entry reference in payroll
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchamahabal committed Aug 5, 2024
1 parent fda4fa4 commit d09775f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions hrms/payroll/doctype/payroll_entry/payroll_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -918,12 +918,13 @@ def make_bank_entry(self, for_withheld_salaries=False):

salary_slip_total -= salary_detail.amount

bank_entry = None
if salary_slip_total > 0:
remark = "withheld salaries" if for_withheld_salaries else "salaries"
bank_entry = self.set_accounting_entries_for_bank_entry(salary_slip_total, remark)

if for_withheld_salaries:
link_bank_entry_in_salary_withholdings(salary_slips, bank_entry.name)
if for_withheld_salaries:
link_bank_entry_in_salary_withholdings(salary_slips, bank_entry.name)

return bank_entry

Expand Down

0 comments on commit d09775f

Please sign in to comment.