跳至內容
選單
此問題已被標幟
1 回覆
2924 瀏覽次數

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

頭像
捨棄
最佳答案

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]           



                       

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
7月 24
2605
1
6月 24
5069
1
10月 23
10748
1
10月 23
98
1
8月 23
2193