|
|
|
@ -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 = () => {
|
|
|
|
|
<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}}> |
|
|
|
|
{isReadySCurve ? |
|
|
|
|
estAtCompletion > plannedCost ? renderFormatRupiah(estAtCompletion, 'Rp.') : renderFormatRupiah(plannedCost, 'Rp.') |
|
|
|
|
plannedCost > bcwp ? renderFormatRupiah(plannedCost, 'Rp.') : renderFormatRupiah(bcwp, 'Rp.') |
|
|
|
|
: <SingleTextLoader width={100} height={10} /> |
|
|
|
|
} |
|
|
|
|
</Col> |
|
|
|
|