fix bug kpi

This commit is contained in:
Warunee Tamkoo 2024-05-16 09:59:34 +07:00
parent 1fa38897cf
commit bb19640c98
5 changed files with 50 additions and 29 deletions

View file

@ -162,7 +162,7 @@ function getData(type: string) {
let weightAvg = weight / total;
let resultAvg = result / total;
if (store.dataProfile.posExecutiveName != null) {
if (store.dataEvaluation.posExecutiveName != null) {
store.competencyScoreVal =
weightAvg != 0
? (resultAvg / weightAvg) * store.excusiveCompetencyScore