Commit 4d2cd518 authored by Riri Novita's avatar Riri Novita

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

Issue MB LoCF

See merge request !2028
parents b67b78cd 8a659e50
...@@ -1040,7 +1040,8 @@ export default class CashFlow extends Component { ...@@ -1040,7 +1040,8 @@ export default class CashFlow extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(tableMeta.rowData[7].value), 1) == 0 ? "0.0" : fixNumber(Number(tableMeta.rowData[7].value), 1)} value={this.props.PLBSFAMSubmitted ? (fixNumber(Number(tableMeta.rowData[7].value), 1) == 0 ? "0.0" : fixNumber(Number(tableMeta.rowData[7].value), 1)) : (fixNumber(Number(handleValueFormula(tableMeta.rowData[7], tableMeta, 7)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(tableMeta.rowData[7], tableMeta, 7)), 1))}
// value={fixNumber(Number(tableMeta.rowData[7].value), 1) == 0 ? "0.0" : fixNumber(Number(tableMeta.rowData[7].value), 1)}
/> />
</span> </span>
: :
...@@ -1054,7 +1055,8 @@ export default class CashFlow extends Component { ...@@ -1054,7 +1055,8 @@ export default class CashFlow extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(tableMeta.rowData[7].value), 1) == 0 ? "0.0" : fixNumber(Number(tableMeta.rowData[7].value), 1)} value={this.props.PLBSFAMSubmitted ? (fixNumber(Number(tableMeta.rowData[7].value), 1) == 0 ? "0.0" : fixNumber(Number(tableMeta.rowData[7].value), 1)) : (fixNumber(Number(handleValueFormula(tableMeta.rowData[7], tableMeta, 7)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(tableMeta.rowData[7], tableMeta, 7)), 1))}
// value={fixNumber(Number(tableMeta.rowData[7].value), 1) == 0 ? "0.0" : fixNumber(Number(tableMeta.rowData[7].value), 1)}
/> />
: :
tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 1 ?
...@@ -1076,7 +1078,8 @@ export default class CashFlow extends Component { ...@@ -1076,7 +1078,8 @@ export default class CashFlow extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(tableMeta.rowData[7].value), 1) == 0 ? "0.0" : fixNumber(Number(tableMeta.rowData[7].value), 1)} value={this.props.PLBSFAMSubmitted ? (fixNumber(Number(tableMeta.rowData[7].value), 1) == 0 ? "0.0" : fixNumber(Number(tableMeta.rowData[7].value), 1)) : (fixNumber(Number(handleValueFormula(tableMeta.rowData[7], tableMeta, 7)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(tableMeta.rowData[7], tableMeta, 7)), 1))}
// value={fixNumber(Number(tableMeta.rowData[7].value), 1) == 0 ? "0.0" : fixNumber(Number(tableMeta.rowData[7].value), 1)}
/> : /> :
<LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[23]}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow> <LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[23]}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow>
<NumberFormat <NumberFormat
...@@ -1093,7 +1096,8 @@ export default class CashFlow extends Component { ...@@ -1093,7 +1096,8 @@ export default class CashFlow extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(tableMeta.rowData[7].value), 1) == 0 ? "0.0" : fixNumber(Number(tableMeta.rowData[7].value), 1)} value={this.props.PLBSFAMSubmitted ? (fixNumber(Number(tableMeta.rowData[7].value), 1) == 0 ? "0.0" : fixNumber(Number(tableMeta.rowData[7].value), 1)) : (fixNumber(Number(handleValueFormula(tableMeta.rowData[7], tableMeta, 7)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(tableMeta.rowData[7], tableMeta, 7)), 1))}
// value={fixNumber(Number(tableMeta.rowData[7].value), 1) == 0 ? "0.0" : fixNumber(Number(tableMeta.rowData[7].value), 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