I want to add python code for salary rule ( overtime ).But it failed.This is the one I added.
((contract.wage/30)*worked_days."total_overtime",number_of_days)*0.015
But there was a error.
Wrong python condition defined for::
- Employee: Pradeep Nissanka
- Contract: Pradeep Nissanka
- Payslip: Salary Slip - Pradeep Nissanka - January 2023
- Salary rule: Overtime (OT)
- Error: invalid syntax (, line 14)
What can i do to calculate Overtime in payroll?