Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1544 Widoki

Hello everyone, I have created a payroll rule with the python code below, when calculating the payroll this sends me an erroneous code error.
Can you help me correct it? thank you in advance




Python expression 

result = contract.wage >= 1000001


Python code 
result = (6000000 if contract.wage>= 20000000
else 4250000 if ((contract.wage>=15000001) and (contract.wage<=20000000))
else 2750000 if ((contract.wage>=10000001) and (contract.wage<=15000000))
else 1500000 if ((contract.wage>= 5000001) and (contract.wage>=10000000))
else 500000 if ((contract.wage>= 3000001) and (contract.wage<=5000000))
else 200000 if ((contract.wage>=1000001) and (contract.wage>=3000000))
else 0)

Awatar
Odrzuć

are you facing below error ?

Wrong python condition defined for salary rule

Autor

this error :
wrong code python

Powiązane posty Odpowiedzi Widoki Czynność
0
lut 22
2337
1
mar 21
2693
0
sty 22
1737
2
maj 21
1930
0
lut 21
2626