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 { ...@@ -1154,7 +1154,7 @@ export default class CashFlow extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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)} //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> </span>
...@@ -1167,7 +1167,8 @@ export default class CashFlow extends Component { ...@@ -1167,7 +1167,8 @@ export default class CashFlow extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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)} //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 { ...@@ -1189,7 +1190,7 @@ export default class CashFlow extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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)} // 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> <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 { ...@@ -1207,7 +1208,7 @@ export default class CashFlow extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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)} // 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> </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