Skip to Content
Menu
This question has been flagged
2 Replies
2894 Views


  • I create Salary rule ( basic salary, allowance, gross and annual increment) in payroll. The annual increment statement will be run only when the employee complete 1 year or 365 days in the company. 10% of his basic salary will be added to the gross.


    example(1): his basic salary 300 and he completed 1 year (300*3%)*1= 9 so the total 309 

  •  example (2): his basic salary 300 and he completed 2 year (300*3%)*2 = 18 so the total 318 So, please can anyone help me how to write python condition and computation in salary rule?


Avatar
Discard
Best Answer

salary + (((salary*ratio)/100) * years)

Avatar
Discard
Author Best Answer

@mostafa 


I already did basic and allowance salary rule. remaining is annual increment. The once the employee complete 255 days in the company 10% from his basic salary will be added. The calculation will be based on started date (contract) and today date. So what i should write in condition & calculation in salary rule of annual allowance 

Avatar
Discard