Commit 92621366 authored by Riri Novita's avatar Riri Novita

Merge branch 'dev/riri' into 'ENV-DEV'

update RO CF

See merge request !2111
parents 9fd449fb 5590e9c0
......@@ -1154,7 +1154,7 @@ export default class CashFlow extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[9].value) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.PLBSFAMSubmitted ? fixNumber(Number(tableMeta.rowData[9].value), 1) : fixNumber(Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)), 1)) : (this.props.PLBSFAMSubmitted ? Number(tableMeta.rowData[9].value) : Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)))}
value={this.props.defaultCurrency.id == 1 ? (this.props.PLBSFAMSubmitted ? fixNumber(Number(tableMeta.rowData[9].value), 1) : fixNumber(Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)), 1)) : (this.props.PLBSFAMSubmitted ? (Number(tableMeta.rowData[9].value) == 0 ? "0.0" : Number(tableMeta.rowData[9].value)) : (Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)) == 0 ? "0.0" : Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9))))}
//sebelumnya: value={this.props.quarter != 'q1' || this.props.PLBSFAMSubmitted ? Number(tableMeta.rowData[9].value).toFixed(1) : Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)).toFixed(1)}
/>
</span>
......@@ -1167,7 +1167,8 @@ export default class CashFlow extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[9].value) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.PLBSFAMSubmitted ? fixNumber(Number(tableMeta.rowData[9].value), 1) : fixNumber(Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)), 1)) : (this.props.PLBSFAMSubmitted ? Number(tableMeta.rowData[9].value) : Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)))}
value={this.props.defaultCurrency.id == 1 ? (this.props.PLBSFAMSubmitted ? fixNumber(Number(tableMeta.rowData[9].value), 1) : fixNumber(Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)), 1)) : (this.props.PLBSFAMSubmitted ? (Number(tableMeta.rowData[9].value) == 0 ? "0.0" : Number(tableMeta.rowData[9].value)) : (Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)) == 0 ? "0.0" : Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9))))}
// value={Number(tableMeta.rowData[9].value) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.PLBSFAMSubmitted ? fixNumber(Number(tableMeta.rowData[9].value), 1) : fixNumber(Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)), 1)) : (this.props.PLBSFAMSubmitted ? Number(tableMeta.rowData[9].value) : Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)))}
//sebelumnya: value={this.props.quarter != 'q1' || this.props.PLBSFAMSubmitted ? Number(tableMeta.rowData[9].value).toFixed(1) : Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)).toFixed(1)}
/>
:
......@@ -1189,7 +1190,7 @@ export default class CashFlow extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[9].value) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.PLBSFAMSubmitted ? fixNumber(Number(tableMeta.rowData[9].value), 1) : fixNumber(Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)), 1)) : (this.props.PLBSFAMSubmitted ? Number(tableMeta.rowData[9].value) : Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)))}
value={this.props.defaultCurrency.id == 1 ? (this.props.PLBSFAMSubmitted ? fixNumber(Number(tableMeta.rowData[9].value), 1) : fixNumber(Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)), 1)) : (this.props.PLBSFAMSubmitted ? (Number(tableMeta.rowData[9].value) == 0 ? "0.0" : Number(tableMeta.rowData[9].value)) : (Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)) == 0 ? "0.0" : Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9))))}
// sebelumnya: value={this.props.quarter != 'q1' || this.props.PLBSFAMSubmitted ? Number(tableMeta.rowData[9].value).toFixed(1) : Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)).toFixed(1)}
/> :
<LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[24]}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow>
......@@ -1207,7 +1208,7 @@ export default class CashFlow extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(tableMeta.rowData[9].value) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.PLBSFAMSubmitted ? fixNumber(Number(tableMeta.rowData[9].value), 1) : fixNumber(Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)), 1)) : (this.props.PLBSFAMSubmitted ? Number(tableMeta.rowData[9].value) : Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)))}
value={this.props.defaultCurrency.id == 1 ? (this.props.PLBSFAMSubmitted ? fixNumber(Number(tableMeta.rowData[9].value), 1) : fixNumber(Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)), 1)) : (this.props.PLBSFAMSubmitted ? (Number(tableMeta.rowData[9].value) == 0 ? "0.0" : Number(tableMeta.rowData[9].value)) : (Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)) == 0 ? "0.0" : Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9))))}
// sebelumnya: value={this.props.quarter != 'q1' || this.props.PLBSFAMSubmitted ? Number(tableMeta.rowData[9].value).toFixed(1) : Number(handleValueFormula(tableMeta.rowData[9], tableMeta, 9)).toFixed(1)}
/>
</LightTooltip>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment