From 068d289afcbbf4cac6a13806eb94cbe36d17c228 Mon Sep 17 00:00:00 2001 From: Muhammad Sulaiman Yusuf Date: Wed, 19 Oct 2022 14:00:34 +0700 Subject: [PATCH] financial --- src/views/Dashboard/DashboardProject.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/views/Dashboard/DashboardProject.js b/src/views/Dashboard/DashboardProject.js index f6d7f48..66af592 100644 --- a/src/views/Dashboard/DashboardProject.js +++ b/src/views/Dashboard/DashboardProject.js @@ -247,7 +247,6 @@ const DashboardProject = () => { total_cost = total_cost.toString().split('.')[0] setTotalCost(total_cost? total_cost.toString() : null) setOutstandingBalance(outstanding_balance ? outstanding_balance.toString() : null); - setRemToComplete(plannedCost - total_cost); } setIsReadyIntegrationInvoice(true); } @@ -588,8 +587,8 @@ const DashboardProject = () => { Cost Deviation - {isReadySCurve ? - costDeviation ? renderFormatRupiah("0", 'Rp.') : '-' + {isReadyProjectDetail && isReadyIntegrationInvoice ? + totalCost > plannedCost ? renderFormatRupiah(totalCost-plannedCost, 'Rp.') : 'Rp. 0' : } @@ -597,7 +596,7 @@ const DashboardProject = () => { Rem. to Complete - {isReadySCurve ? + {isReadyProjectDetail && isReadyIntegrationInvoice ? remToComplete ? renderFormatRupiah(plannedCost - totalCost, 'Rp.') : '-' : }