Browse Source

Merge pull request 'staging' (#121) from staging into master

Reviewed-on: ordo/adw-frontend#121
pull/2/head
ibnu 1 year ago
parent
commit
773c07249e
  1. 22
      src/views/Dashboard/DashboardProject.js

22
src/views/Dashboard/DashboardProject.js

@ -1244,15 +1244,17 @@ const DashboardProject = () => {
Est. at Completion Est. at Completion
</Col> </Col>
<Col span={5} style={{ fontSize: 11 }}> <Col span={5} style={{ fontSize: 11 }}>
{isReadySCurve ? ( {isReadyProjectDetail && isReadyGantt ? (
plannedCost !== null && bcwp !== null ? ( dataGantt.data.data.cost_to_complete ? (
plannedCost > bcwp ? ( renderFormatRupiah(
renderFormatRupiah(plannedCost, "Rp.") (parseInt(plannedCost) + dataGantt.data.data.cost_to_complete).toString(),
) : ( "Rp."
renderFormatRupiah(bcwp, "Rp.")
) )
) : ( ) : (
"-" renderFormatRupiah(
parseInt(plannedCost).toString(),
"Rp."
)
) )
) : ( ) : (
<SingleTextLoader width={100} height={10} /> <SingleTextLoader width={100} height={10} />
@ -1292,10 +1294,10 @@ const DashboardProject = () => {
Cost Deviation Cost Deviation
</Col> </Col>
<Col span={5} style={{ fontSize: 11 }}> <Col span={5} style={{ fontSize: 11 }}>
{isReadyProjectDetail && isReadyIntegrationInvoice ? ( {isReadyProjectDetail && isReadyGantt ? (
totalCost > plannedCost ? ( dataGantt.data.data.cost_to_complete ? (
renderFormatRupiah( renderFormatRupiah(
(totalCost - plannedCost).toString(), (dataGantt.data.data.cost_to_complete).toString(),
"Rp." "Rp."
) )
) : ( ) : (

Loading…
Cancel
Save