Browse Source

financial

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

3
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 = () => {
<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>

Loading…
Cancel
Save