I have created a specific salary rule which the amount computation is based on a complex python expression
My python expression is similar to:
result = (-200 if contract.wage >= 12000
else -150 if ((contract.wage >= 9000) and (contract.wage <= 11999))
else -80 if ((contract.wage >= 6000) and (contract.wage <= 8999))
else -20 if ((contract.wage >= 3000) and (contract.wage <= 5999))
else -0)
How can I put this salary rule in a xml data file knowing that '>'
and '<'
didn't work?