Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2886 Zobrazení

i have salary rule named BRUT his code is:(categories.POSTE + categories.PRIMP + categories.PRIMT) - ( categories.BASECNAS) for exemple is give me total = 49612,60

i want to use this amount for calculate a new rule named IRG his code: if ( 30.000 < the amount <= 120.000)  : 
result = (((salary-30.000)*30/100)+ 2500)

any idea how to make it please help me

Avatar
Zrušit
Nejlepší odpověď

Hi, 

You can access rules which already calculated previously using variable rules so you can do that as below:

But

if rules.BRUT > 300 and    rules.BRUT <=120:

     result = [Your Calculation]       

 else:

     result = [Your Calculation]           



                       

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
čvc 24
2585
1
čvn 24
5046
1
říj 23
10718
1
říj 23
98
1
srp 23
2193