From f00dbd2fc987a70762034e2e1c74feef0ea4ce35 Mon Sep 17 00:00:00 2001 From: Muhammad Sulaiman Yusuf Date: Wed, 19 Oct 2022 14:20:01 +0700 Subject: [PATCH] financial --- src/views/Dashboard/DashboardProject.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/views/Dashboard/DashboardProject.js b/src/views/Dashboard/DashboardProject.js index 7922ef8..2e43a7c 100644 --- a/src/views/Dashboard/DashboardProject.js +++ b/src/views/Dashboard/DashboardProject.js @@ -98,6 +98,7 @@ const DashboardProject = () => { useEffect(() => { let deviation = 0; if(plannedCost && totalCost){ + console.log("QQQ", [plannedCost, totalCost]); deviation = plannedCost - totalCost; } setRemToComplete(deviation) @@ -581,7 +582,7 @@ const DashboardProject = () => { Est. at Completion {isReadySCurve ? - estAtCompletion > plannedCost ? renderFormatRupiah(estAtCompletion, 'Rp.') : renderFormatRupiah(plannedCost, 'Rp.') + plannedCost > bcwp ? renderFormatRupiah(plannedCost, 'Rp.') : renderFormatRupiah(bcwp, 'Rp.') : }