From 40246554882cfab37dc5d16afb372c1828c3300a Mon Sep 17 00:00:00 2001 From: Ashish Shah Date: Fri, 3 Feb 2023 15:41:54 +0530 Subject: [PATCH] fix: handle when deductions are absent in salary slip (#292) Co-authored-by: Rucha Mahabal --- hrms/payroll/doctype/payroll_entry/payroll_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hrms/payroll/doctype/payroll_entry/payroll_entry.py b/hrms/payroll/doctype/payroll_entry/payroll_entry.py index eb0e7e4dbc..deb9ba5a9a 100644 --- a/hrms/payroll/doctype/payroll_entry/payroll_entry.py +++ b/hrms/payroll/doctype/payroll_entry/payroll_entry.py @@ -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,