Browse Source

financial

pull/2/head
Muhammad Sulaiman Yusuf 2 years ago
parent
commit
719e4e0c92
  1. 11
      src/views/Dashboard/DashboardProject.js

11
src/views/Dashboard/DashboardProject.js

@ -98,10 +98,9 @@ const DashboardProject = () => {
useEffect(() => { useEffect(() => {
let deviation = 0; let deviation = 0;
if(plannedCost && totalCost){ if(plannedCost && totalCost){
console.log("QQQ", [plannedCost, totalCost]);
deviation = plannedCost - totalCost; deviation = plannedCost - totalCost;
} }
setRemToComplete(deviation) setRemToComplete(deviation.toString())
}, [plannedCost, totalCost]); }, [plannedCost, totalCost]);
@ -597,10 +596,10 @@ const DashboardProject = () => {
</Col> </Col>
<Col span={7} style={{fontSize: 11, fontWeight: 'bold'}}><i className="fa fa-calendar" style={{marginRight:8}}></i>Cost Deviation</Col> <Col span={7} style={{fontSize: 11, fontWeight: 'bold'}}><i className="fa fa-calendar" style={{marginRight:8}}></i>Cost Deviation</Col>
<Col span={5} style={{fontSize: 11}}> <Col span={5} style={{fontSize: 11}}>
{/* {isReadyProjectDetail && isReadyIntegrationInvoice ? */} {isReadyProjectDetail && isReadyIntegrationInvoice ?
{/* totalCost > plannedCost ? renderFormatRupiah(totalCost-plannedCost, 'Rp.') : 'Rp. 0' */} totalCost > plannedCost ? renderFormatRupiah( (totalCost-plannedCost).toString(), 'Rp.') : 'Rp. 0'
{/* : <SingleTextLoader width={100} height={10} /> */} : <SingleTextLoader width={100} height={10} />
{/* } */} }
</Col> </Col>
</Row> </Row>
<Row> <Row>

Loading…
Cancel
Save