Hello, I am getting an error while computing the sheet for payslip
Can somebody please help me out with what I am doing wrong.
User Error
Wrong python condition defined for:: -
Salary rule: Expenses Reimbursement (EX)
- Error: : "0"
while evaluating "result = inputs['EX'].amount > 0.0 if 'EX' in inputs else False\n"
Rule name - Expense Reimbursement
category - Allowance
code - EX
Python condition -
result = inputs['EX'].amount > 0.0 if 'EX' in inputs else False
python code for computation -
result = inputs['EX'].amount if 'EX' in inputs else 0