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