Skip to content

Commit

Permalink
fix: handle when deductions are absent in salary slip (#292)
Browse files Browse the repository at this point in the history
Co-authored-by: Rucha Mahabal <[email protected]>
  • Loading branch information
ashish-greycube and ruchamahabal authored Feb 3, 2023
1 parent 33bf17f commit 4024655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hrms/payroll/doctype/payroll_entry/payroll_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ def make_accrual_jv_entry(self):
}
"""
for employee, employee_details in self.employee_based_payroll_payable_entries.items():
payable_amount = employee_details.get("earnings") - employee_details.get("deductions")
payable_amount = employee_details.get("earnings") - (employee_details.get("deductions") or 0)

accounting_entry, payable_amount = self.get_accounting_entries_and_payable_amount(
payroll_payable_account,
Expand Down

0 comments on commit 4024655

Please sign in to comment.