Skip to content

Commit

Permalink
Only allow the modification of the individual base salary when select…
Browse files Browse the repository at this point in the history
…ing the grade if it is not defined
  • Loading branch information
lomamech committed Mar 5, 2024
1 parent a9808e8 commit b8851b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/src/modules/employees/registration/employees.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ function EmployeeController(Employees, Services, Grades, Functions, Titles, Cred
}

function onSelectGrade(element) {
vm.employee.individual_salary = element.basic_salary;
if (!vm.employee.individual_salary) {
vm.employee.individual_salary = element.basic_salary;
}
}

// Expose lenths from util
Expand Down

0 comments on commit b8851b0

Please sign in to comment.