diff --git a/src/views/Dashboard/DashboardProject.js b/src/views/Dashboard/DashboardProject.js index cabac62..f4bc56c 100644 --- a/src/views/Dashboard/DashboardProject.js +++ b/src/views/Dashboard/DashboardProject.js @@ -1244,15 +1244,14 @@ const DashboardProject = () => { Est. at Completion - {isReadySCurve ? ( - plannedCost !== null && bcwp !== null ? ( - plannedCost > bcwp ? ( - renderFormatRupiah(plannedCost, "Rp.") - ) : ( - renderFormatRupiah(bcwp, "Rp.") + {isReadyProjectDetail && isReadyGantt ? ( + plannedCost && dataGantt.data.data.cost_to_complete ? ( + renderFormatRupiah( + (parseInt(plannedCost) + dataGantt.data.data.cost_to_complete).toString(), + "Rp." ) ) : ( - "-" + "Rp. 0" ) ) : ( @@ -1292,10 +1291,10 @@ const DashboardProject = () => { Cost Deviation - {isReadyProjectDetail && isReadyIntegrationInvoice ? ( - totalCost > plannedCost ? ( + {isReadyProjectDetail && isReadyGantt ? ( + dataGantt.data.data.cost_to_complete ? ( renderFormatRupiah( - (totalCost - plannedCost).toString(), + (dataGantt.data.data.cost_to_complete).toString(), "Rp." ) ) : (