Browse Source

financial

pull/2/head
Muhammad Sulaiman Yusuf 2 years ago
parent
commit
af706270ec
  1. 6
      src/views/Dashboard/DashboardProject.js

6
src/views/Dashboard/DashboardProject.js

@ -175,7 +175,6 @@ const DashboardProject = () => {
} }
selisihProgress = planningProgress - actualProgress; selisihProgress = planningProgress - actualProgress;
console.log("QWE", [planningProgress, actualProgress]);
if (selisihProgress > 0 && selisihProgress <= 5) { if (selisihProgress > 0 && selisihProgress <= 5) {
statusHealthBySchedule = 'warning' statusHealthBySchedule = 'warning'
} }
@ -248,6 +247,7 @@ const DashboardProject = () => {
total_cost = total_cost.toString().split('.')[0] total_cost = total_cost.toString().split('.')[0]
setTotalCost(total_cost? total_cost.toString() : null) setTotalCost(total_cost? total_cost.toString() : null)
setOutstandingBalance(outstanding_balance ? outstanding_balance.toString() : null); setOutstandingBalance(outstanding_balance ? outstanding_balance.toString() : null);
setRemToComplete(plannedCost - total_cost);
} }
setIsReadyIntegrationInvoice(true); setIsReadyIntegrationInvoice(true);
} }
@ -573,7 +573,7 @@ const DashboardProject = () => {
<Col span={7} style={{fontSize: 11, fontWeight: 'bold'}}><i className="fa fa-calendar" style={{marginRight:8}}></i>Est. at Completion</Col> <Col span={7} style={{fontSize: 11, fontWeight: 'bold'}}><i className="fa fa-calendar" style={{marginRight:8}}></i>Est. at Completion</Col>
<Col span={5} style={{fontSize: 11}}> <Col span={5} style={{fontSize: 11}}>
{isReadySCurve ? {isReadySCurve ?
estAtCompletion ? renderFormatRupiah("168.000.000.000", 'Rp.') : '-' estAtCompletion > plannedCost ? renderFormatRupiah(estAtCompletion, 'Rp.') : renderFormatRupiah(plannedCost, 'Rp.')
: <SingleTextLoader width={100} height={10} /> : <SingleTextLoader width={100} height={10} />
} }
</Col> </Col>
@ -598,7 +598,7 @@ const DashboardProject = () => {
<Col span={7} style={{fontSize: 11, fontWeight: 'bold'}}><i className="fa fa-calendar" style={{marginRight:8}}></i>Rem. to Complete</Col> <Col span={7} style={{fontSize: 11, fontWeight: 'bold'}}><i className="fa fa-calendar" style={{marginRight:8}}></i>Rem. to Complete</Col>
<Col span={5} style={{fontSize: 11}}> <Col span={5} style={{fontSize: 11}}>
{isReadySCurve ? {isReadySCurve ?
remToComplete ? renderFormatRupiah("19050674292", 'Rp.') : '-' remToComplete ? renderFormatRupiah(plannedCost - totalCost, 'Rp.') : '-'
: <SingleTextLoader width={100} height={10} /> : <SingleTextLoader width={100} height={10} />
} }
</Col> </Col>

Loading…
Cancel
Save