|
|
|
@ -385,7 +385,7 @@ const DashboardProject = (props) => {
|
|
|
|
|
let selisihProgress = 0; |
|
|
|
|
let planningProgress = 0; |
|
|
|
|
let actualProgress = 0; |
|
|
|
|
let statusHealthBySchedule = "on-schedule"; |
|
|
|
|
let statusHealthBySchedule = "behind-schedule"; |
|
|
|
|
if ( |
|
|
|
|
result.data.data.length > 0 && |
|
|
|
|
result.data.data[0].data?.budget_control |
|
|
|
@ -438,7 +438,7 @@ const DashboardProject = (props) => {
|
|
|
|
|
selisihProgress = planningProgress - actualProgress; |
|
|
|
|
if (selisihProgress > 0 && selisihProgress <= 20) { |
|
|
|
|
statusHealthBySchedule = "warning"; |
|
|
|
|
} else if (selisihProgress > 5) { |
|
|
|
|
} else if (selisihProgress == 0 || selisihProgress < 0) { |
|
|
|
|
statusHealthBySchedule = "behind-schedule"; |
|
|
|
|
} |
|
|
|
|
setHealthBySchedule(statusHealthBySchedule); |
|
|
|
|