fix promotion

This commit is contained in:
Bakry 2024-12-02 13:03:09 +03:00
parent fa1d98476f
commit b86064f0b5
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ class HrPayrollRaise(models.Model):
self.next_raise_date = ndate
if self.percentage_bonus==True:
self.new_salary= (self.current_salary*self.percentage_raises)/100+self.current_salary
self.new_salary= round((self.current_salary*self.percentage_raises)/100+self.current_salary,2)
if self.employee_appraisal:
self.percentage_raises = self.employee_appraisal.level_achieved_percentage*self.scale_id.Percentage_increase