From c45f553bdaf04f1d5bc56b2812038fd1db1c9c5b Mon Sep 17 00:00:00 2001 From: Rucha Mahabal Date: Wed, 4 Sep 2024 09:54:12 +0530 Subject: [PATCH] fix(Payroll): multiline condition & formula eval failing on salary slip creation from payroll entry --- hrms/payroll/doctype/salary_slip/salary_slip.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hrms/payroll/doctype/salary_slip/salary_slip.py b/hrms/payroll/doctype/salary_slip/salary_slip.py index 5f2787fded..c623a708ce 100644 --- a/hrms/payroll/doctype/salary_slip/salary_slip.py +++ b/hrms/payroll/doctype/salary_slip/salary_slip.py @@ -329,7 +329,7 @@ def get_emp_and_working_day_details(self): struct = self.check_sal_struct() if struct: - self._salary_structure_doc = frappe.get_cached_doc("Salary Structure", struct) + self.set_salary_structure_doc() self.salary_slip_based_on_timesheet = ( self._salary_structure_doc.salary_slip_based_on_timesheet or 0 )