Commit 616a3c3a authored by fahrur huzain's avatar fahrur huzain

Tp and BS MB

parent 9b7b59ad
...@@ -1085,6 +1085,29 @@ export default class BalanceSheet extends Component { ...@@ -1085,6 +1085,29 @@ export default class BalanceSheet extends Component {
</div> </div>
: :
tableMeta.rowData[0] === 3 ? tableMeta.rowData[0] === 3 ?
tableMeta.rowData[1] === 3312257 ||
tableMeta.rowData[1] === 3312258 ||
tableMeta.rowData[1] === 14619?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value}
control={
<NumberFormat
thousandSeparator={true}
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value), 12) == 0 ? "0.0" : fixNumber(Number(value), 12)}
onBlur={(event) => {
handleChange(event.target.value, tableMeta)
// console.log(dataTable2)
}}
/>
}
/>
</div> :
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
<FormControlLabel <FormControlLabel
style={{ margin: 0 }} style={{ margin: 0 }}
...@@ -1166,7 +1189,7 @@ export default class BalanceSheet extends Component { ...@@ -1166,7 +1189,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> : /> :
<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
...@@ -1183,7 +1206,7 @@ export default class BalanceSheet extends Component { ...@@ -1183,7 +1206,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -1245,6 +1268,30 @@ export default class BalanceSheet extends Component { ...@@ -1245,6 +1268,30 @@ export default class BalanceSheet extends Component {
</div> </div>
: :
tableMeta.rowData[0] === 3 ? tableMeta.rowData[0] === 3 ?
tableMeta.rowData[1] === 3312257 ||
tableMeta.rowData[1] === 3312258 ||
tableMeta.rowData[1] === 14619?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value}
control={
<NumberFormat
thousandSeparator={true}
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value), 12) == 0 ? "0.0" : fixNumber(Number(value), 12)}
onBlur={(event) => {
// updateValue(event.target.value)
handleChange(event.target.value, tableMeta)
// console.log(dataTable2)
}}
/>
}
/>
</div> :
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
<FormControlLabel <FormControlLabel
style={{ margin: 0 }} style={{ margin: 0 }}
...@@ -1329,7 +1376,7 @@ export default class BalanceSheet extends Component { ...@@ -1329,7 +1376,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> : /> :
<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
...@@ -1346,7 +1393,7 @@ export default class BalanceSheet extends Component { ...@@ -1346,7 +1393,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -1408,6 +1455,9 @@ export default class BalanceSheet extends Component { ...@@ -1408,6 +1455,9 @@ export default class BalanceSheet extends Component {
</div> </div>
: :
tableMeta.rowData[0] === 3 ? tableMeta.rowData[0] === 3 ?
tableMeta.rowData[1] === 3312257 ||
tableMeta.rowData[1] === 3312258 ||
tableMeta.rowData[1] === 14619?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
<FormControlLabel <FormControlLabel
style={{ margin: 0 }} style={{ margin: 0 }}
...@@ -1419,7 +1469,7 @@ export default class BalanceSheet extends Component { ...@@ -1419,7 +1469,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)} disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)} value={fixNumber(Number(value), 12) == 0 ? "0.0" : fixNumber(Number(value), 12)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -1429,6 +1479,28 @@ export default class BalanceSheet extends Component { ...@@ -1429,6 +1479,28 @@ export default class BalanceSheet extends Component {
} }
/> />
</div> : </div> :
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value}
control={
<NumberFormat
thousandSeparator={true}
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
onBlur={(event) => {
// updateValue(event.target.value)
handleChange(event.target.value, tableMeta)
// console.log(dataTable2)
}}
/>
}
/>
</div>
:
tableMeta.rowData[0] === 2 ? tableMeta.rowData[0] === 2 ?
<span style={{ fontSize: 12, textAlign: 'right' }}> <span style={{ fontSize: 12, textAlign: 'right' }}>
<NumberFormat <NumberFormat
...@@ -1492,7 +1564,7 @@ export default class BalanceSheet extends Component { ...@@ -1492,7 +1564,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> : /> :
<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
...@@ -1509,7 +1581,7 @@ export default class BalanceSheet extends Component { ...@@ -1509,7 +1581,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -1571,6 +1643,30 @@ export default class BalanceSheet extends Component { ...@@ -1571,6 +1643,30 @@ export default class BalanceSheet extends Component {
</div> </div>
: :
tableMeta.rowData[0] === 3 ? tableMeta.rowData[0] === 3 ?
tableMeta.rowData[1] === 3312257 ||
tableMeta.rowData[1] === 3312258 ||
tableMeta.rowData[1] === 14619?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value}
control={
<NumberFormat
thousandSeparator={true}
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value), 12) == 0 ? "0.0" : fixNumber(Number(value), 12)}
onBlur={(event) => {
// updateValue(event.target.value)
handleChange(event.target.value, tableMeta)
// console.log(dataTable2)
}}
/>
}
/>
</div> :
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
<FormControlLabel <FormControlLabel
style={{ margin: 0 }} style={{ margin: 0 }}
...@@ -1655,7 +1751,7 @@ export default class BalanceSheet extends Component { ...@@ -1655,7 +1751,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> : /> :
<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
...@@ -1672,7 +1768,7 @@ export default class BalanceSheet extends Component { ...@@ -1672,7 +1768,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -1734,6 +1830,30 @@ export default class BalanceSheet extends Component { ...@@ -1734,6 +1830,30 @@ export default class BalanceSheet extends Component {
</div> </div>
: :
tableMeta.rowData[0] === 3 ? tableMeta.rowData[0] === 3 ?
tableMeta.rowData[1] === 3312257 ||
tableMeta.rowData[1] === 3312258 ||
tableMeta.rowData[1] === 14619?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value}
control={
<NumberFormat
thousandSeparator={true}
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value), 12) == 0 ? "0.0" : fixNumber(Number(value), 12)}
onBlur={(event) => {
// updateValue(event.target.value)
handleChange(event.target.value, tableMeta)
// console.log(dataTable2)
}}
/>
}
/>
</div> :
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
<FormControlLabel <FormControlLabel
style={{ margin: 0 }} style={{ margin: 0 }}
...@@ -1818,7 +1938,7 @@ export default class BalanceSheet extends Component { ...@@ -1818,7 +1938,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> : /> :
<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
...@@ -1835,7 +1955,7 @@ export default class BalanceSheet extends Component { ...@@ -1835,7 +1955,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -1897,6 +2017,30 @@ export default class BalanceSheet extends Component { ...@@ -1897,6 +2017,30 @@ export default class BalanceSheet extends Component {
</div> </div>
: :
tableMeta.rowData[0] === 3 ? tableMeta.rowData[0] === 3 ?
tableMeta.rowData[1] === 3312257 ||
tableMeta.rowData[1] === 3312258 ||
tableMeta.rowData[1] === 14619?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value}
control={
<NumberFormat
thousandSeparator={true}
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value), 12) == 0 ? "0.0" : fixNumber(Number(value), 12)}
onBlur={(event) => {
// updateValue(event.target.value)
handleChange(event.target.value, tableMeta)
// console.log(dataTable2)
}}
/>
}
/>
</div> :
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
<FormControlLabel <FormControlLabel
style={{ margin: 0 }} style={{ margin: 0 }}
...@@ -1981,7 +2125,7 @@ export default class BalanceSheet extends Component { ...@@ -1981,7 +2125,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> : /> :
<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
...@@ -1998,7 +2142,7 @@ export default class BalanceSheet extends Component { ...@@ -1998,7 +2142,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -2060,6 +2204,30 @@ export default class BalanceSheet extends Component { ...@@ -2060,6 +2204,30 @@ export default class BalanceSheet extends Component {
</div> </div>
: :
tableMeta.rowData[0] === 3 ? tableMeta.rowData[0] === 3 ?
tableMeta.rowData[1] === 3312257 ||
tableMeta.rowData[1] === 3312258 ||
tableMeta.rowData[1] === 14619?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value}
control={
<NumberFormat
thousandSeparator={true}
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value), 12) == 0 ? "0.0" : fixNumber(Number(value), 12)}
onBlur={(event) => {
// updateValue(event.target.value)
handleChange(event.target.value, tableMeta)
// console.log(dataTable2)
}}
/>
}
/>
</div> :
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
<FormControlLabel <FormControlLabel
style={{ margin: 0 }} style={{ margin: 0 }}
...@@ -2144,7 +2312,7 @@ export default class BalanceSheet extends Component { ...@@ -2144,7 +2312,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> : /> :
<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
...@@ -2161,7 +2329,7 @@ export default class BalanceSheet extends Component { ...@@ -2161,7 +2329,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -2223,6 +2391,30 @@ export default class BalanceSheet extends Component { ...@@ -2223,6 +2391,30 @@ export default class BalanceSheet extends Component {
</div> </div>
: :
tableMeta.rowData[0] === 3 ? tableMeta.rowData[0] === 3 ?
tableMeta.rowData[1] === 3312257 ||
tableMeta.rowData[1] === 3312258 ||
tableMeta.rowData[1] === 14619?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value}
control={
<NumberFormat
thousandSeparator={true}
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value), 12) == 0 ? "0.0" : fixNumber(Number(value), 12)}
onBlur={(event) => {
// updateValue(event.target.value)
handleChange(event.target.value, tableMeta)
// console.log(dataTable2)
}}
/>
}
/>
</div> :
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
<FormControlLabel <FormControlLabel
style={{ margin: 0 }} style={{ margin: 0 }}
...@@ -2307,7 +2499,7 @@ export default class BalanceSheet extends Component { ...@@ -2307,7 +2499,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> : /> :
<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
...@@ -2324,7 +2516,7 @@ export default class BalanceSheet extends Component { ...@@ -2324,7 +2516,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -2386,6 +2578,30 @@ export default class BalanceSheet extends Component { ...@@ -2386,6 +2578,30 @@ export default class BalanceSheet extends Component {
</div> </div>
: :
tableMeta.rowData[0] === 3 ? tableMeta.rowData[0] === 3 ?
tableMeta.rowData[1] === 3312257 ||
tableMeta.rowData[1] === 3312258 ||
tableMeta.rowData[1] === 14619?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value}
control={
<NumberFormat
thousandSeparator={true}
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value), 12) == 0 ? "0.0" : fixNumber(Number(value), 12)}
onBlur={(event) => {
// updateValue(event.target.value)
handleChange(event.target.value, tableMeta)
// console.log(dataTable2)
}}
/>
}
/>
</div> :
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
<FormControlLabel <FormControlLabel
style={{ margin: 0 }} style={{ margin: 0 }}
...@@ -2470,7 +2686,7 @@ export default class BalanceSheet extends Component { ...@@ -2470,7 +2686,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> : /> :
<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
...@@ -2487,7 +2703,7 @@ export default class BalanceSheet extends Component { ...@@ -2487,7 +2703,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -2549,6 +2765,30 @@ export default class BalanceSheet extends Component { ...@@ -2549,6 +2765,30 @@ export default class BalanceSheet extends Component {
</div> </div>
: :
tableMeta.rowData[0] === 3 ? tableMeta.rowData[0] === 3 ?
tableMeta.rowData[1] === 3312257 ||
tableMeta.rowData[1] === 3312258 ||
tableMeta.rowData[1] === 14619?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value}
control={
<NumberFormat
thousandSeparator={true}
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value), 12) == 0 ? "0.0" : fixNumber(Number(value), 12)}
onBlur={(event) => {
// updateValue(event.target.value)
handleChange(event.target.value, tableMeta)
// console.log(dataTable2)
}}
/>
}
/>
</div> :
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
<FormControlLabel <FormControlLabel
style={{ margin: 0 }} style={{ margin: 0 }}
...@@ -2633,7 +2873,7 @@ export default class BalanceSheet extends Component { ...@@ -2633,7 +2873,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> : /> :
<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
...@@ -2650,7 +2890,7 @@ export default class BalanceSheet extends Component { ...@@ -2650,7 +2890,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -2712,6 +2952,30 @@ export default class BalanceSheet extends Component { ...@@ -2712,6 +2952,30 @@ export default class BalanceSheet extends Component {
</div> </div>
: :
tableMeta.rowData[0] === 3 ? tableMeta.rowData[0] === 3 ?
tableMeta.rowData[1] === 3312257 ||
tableMeta.rowData[1] === 3312258 ||
tableMeta.rowData[1] === 14619?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value}
control={
<NumberFormat
thousandSeparator={true}
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value), 12) == 0 ? "0.0" : fixNumber(Number(value), 12)}
onBlur={(event) => {
// updateValue(event.target.value)
handleChange(event.target.value, tableMeta)
// console.log(dataTable2)
}}
/>
}
/>
</div> :
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
<FormControlLabel <FormControlLabel
style={{ margin: 0 }} style={{ margin: 0 }}
...@@ -2796,7 +3060,7 @@ export default class BalanceSheet extends Component { ...@@ -2796,7 +3060,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> : /> :
<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
...@@ -2813,7 +3077,7 @@ export default class BalanceSheet extends Component { ...@@ -2813,7 +3077,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -2875,6 +3139,30 @@ export default class BalanceSheet extends Component { ...@@ -2875,6 +3139,30 @@ export default class BalanceSheet extends Component {
</div> </div>
: :
tableMeta.rowData[0] === 3 ? tableMeta.rowData[0] === 3 ?
tableMeta.rowData[1] === 3312257 ||
tableMeta.rowData[1] === 3312258 ||
tableMeta.rowData[1] === 14619?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value}
control={
<NumberFormat
thousandSeparator={true}
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value), 12) == 0 ? "0.0" : fixNumber(Number(value), 12)}
onBlur={(event) => {
// updateValue(event.target.value)
handleChange(event.target.value, tableMeta)
// console.log(dataTable2)
}}
/>
}
/>
</div> :
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
<FormControlLabel <FormControlLabel
style={{ margin: 0 }} style={{ margin: 0 }}
...@@ -2959,7 +3247,7 @@ export default class BalanceSheet extends Component { ...@@ -2959,7 +3247,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 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
...@@ -2976,7 +3264,7 @@ export default class BalanceSheet extends Component { ...@@ -2976,7 +3264,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -3038,6 +3326,30 @@ export default class BalanceSheet extends Component { ...@@ -3038,6 +3326,30 @@ export default class BalanceSheet extends Component {
</div> </div>
: :
tableMeta.rowData[0] === 3 ? tableMeta.rowData[0] === 3 ?
tableMeta.rowData[1] === 3312257 ||
tableMeta.rowData[1] === 3312258 ||
tableMeta.rowData[1] === 14619?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value}
control={
<NumberFormat
thousandSeparator={true}
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value), 12) == 0 ? "0.0" : fixNumber(Number(value), 12)}
onBlur={(event) => {
// updateValue(event.target.value)
handleChange(event.target.value, tableMeta)
// console.log(dataTable2)
}}
/>
}
/>
</div> :
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
<FormControlLabel <FormControlLabel
style={{ margin: 0 }} style={{ margin: 0 }}
...@@ -3122,7 +3434,7 @@ export default class BalanceSheet extends Component { ...@@ -3122,7 +3434,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> : /> :
<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
...@@ -3139,7 +3451,7 @@ export default class BalanceSheet extends Component { ...@@ -3139,7 +3451,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -3201,6 +3513,30 @@ export default class BalanceSheet extends Component { ...@@ -3201,6 +3513,30 @@ export default class BalanceSheet extends Component {
</div> </div>
: :
tableMeta.rowData[0] === 3 ? tableMeta.rowData[0] === 3 ?
tableMeta.rowData[1] === 3312257 ||
tableMeta.rowData[1] === 3312258 ||
tableMeta.rowData[1] === 14619?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value}
control={
<NumberFormat
thousandSeparator={true}
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value), 12) == 0 ? "0.0" : fixNumber(Number(value), 12)}
onBlur={(event) => {
// updateValue(event.target.value)
handleChange(event.target.value, tableMeta)
// console.log(dataTable2)
}}
/>
}
/>
</div> :
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
<FormControlLabel <FormControlLabel
style={{ margin: 0 }} style={{ margin: 0 }}
...@@ -3285,7 +3621,7 @@ export default class BalanceSheet extends Component { ...@@ -3285,7 +3621,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> : /> :
<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
...@@ -3302,7 +3638,7 @@ export default class BalanceSheet extends Component { ...@@ -3302,7 +3638,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -3364,6 +3700,30 @@ export default class BalanceSheet extends Component { ...@@ -3364,6 +3700,30 @@ export default class BalanceSheet extends Component {
</div> </div>
: :
tableMeta.rowData[0] === 3 ? tableMeta.rowData[0] === 3 ?
tableMeta.rowData[1] === 3312257 ||
tableMeta.rowData[1] === 3312258 ||
tableMeta.rowData[1] === 14619?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value}
control={
<NumberFormat
thousandSeparator={true}
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value), 12) == 0 ? "0.0" : fixNumber(Number(value), 12)}
onBlur={(event) => {
// updateValue(event.target.value)
handleChange(event.target.value, tableMeta)
// console.log(dataTable2)
}}
/>
}
/>
</div> :
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
<FormControlLabel <FormControlLabel
style={{ margin: 0 }} style={{ margin: 0 }}
...@@ -3448,7 +3808,7 @@ export default class BalanceSheet extends Component { ...@@ -3448,7 +3808,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> : /> :
<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
...@@ -3465,7 +3825,7 @@ export default class BalanceSheet extends Component { ...@@ -3465,7 +3825,7 @@ export default class BalanceSheet extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
......
...@@ -1167,6 +1167,7 @@ export default class TaxPlanning extends Component { ...@@ -1167,6 +1167,7 @@ export default class TaxPlanning extends Component {
render() { render() {
let dataTable2 = this.state.dataTable let dataTable2 = this.state.dataTable
let dataTableData = this.state.dataTableData
let dataFormula = [] let dataFormula = []
let id = 0 let id = 0
let double = false let double = false
...@@ -1535,9 +1536,9 @@ export default class TaxPlanning extends Component { ...@@ -1535,9 +1536,9 @@ export default class TaxPlanning extends Component {
} }
if (tableMeta.rowData[8] == "Control (should be nil)") { if (tableMeta.rowData[8] == "Control (should be nil)") {
total = R.equals(total, NaN) ? "0.0" : fixNumber(Number(total), 1) total = R.equals(total, NaN) ? "0.0" : (Number(total))
if (tableMeta.rowData[4] == 3163752 && tableMeta.columnIndex == 10) { if (tableMeta.rowData[4] == 3163752 && tableMeta.columnIndex == 10) {
console.log(total); // console.log(total);
} }
} else { } else {
total = R.equals(total, NaN) ? "0.0" : total total = R.equals(total, NaN) ? "0.0" : total
...@@ -1645,7 +1646,9 @@ export default class TaxPlanning extends Component { ...@@ -1645,7 +1646,9 @@ export default class TaxPlanning extends Component {
} }
const handleChange = (value, tableMeta, indexChilds) => { const handleChange = (value, tableMeta, indexChilds) => {
// console.log(dataTable2) if (tableMeta.rowData[8] == "Adjustment") {
console.log(value)
}
let val = String(value).split(",").join("") let val = String(value).split(",").join("")
// let data = this.state.dataTable2 // let data = this.state.dataTable2
let indexParent = dataTable2.findIndex((val) => val[4] === dataTable2[tableMeta.rowIndex][5]) let indexParent = dataTable2.findIndex((val) => val[4] === dataTable2[tableMeta.rowIndex][5])
...@@ -1684,12 +1687,19 @@ export default class TaxPlanning extends Component { ...@@ -1684,12 +1687,19 @@ export default class TaxPlanning extends Component {
if (indexChild !== -1) { if (indexChild !== -1) {
total += Number(item.tbf.formula[indexChild].value) total += Number(item.tbf.formula[indexChild].value)
} }
// console.log("masuk" + indexChild + "total :" + total)
} }
} }
}) })
let nilai = Number(total) + Number(dataTable2[88][21])
// console.log("DataTabel2 : " + Number(dataTable2[tableMeta.rowIndex][21]))
// console.log("Number total: " + Number(total))
// console.log("nilai : " + Number(dataTable2[88][21]))
// console.log(JSON.stringify(tableMeta.tableData))
let nilai = Number(total) + Number(dataTable2[tableMeta.rowIndex-10][21])
dataTable2[tableMeta.rowIndex][tableMeta.columnIndex] = nilai dataTable2[tableMeta.rowIndex][tableMeta.columnIndex] = nilai
// console.log(nilai); // console.log("niali :" + Number(dataTable2[88][21]));
return nilai return nilai
} }
...@@ -2405,7 +2415,7 @@ export default class TaxPlanning extends Component { ...@@ -2405,7 +2415,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="input" placeholder="input"
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)} disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value.tbf), 1) == 0 ? "0.0" : fixNumber(Number(value.tbf), 1)} value={fixNumber(Number(value.tbf), 12) == 0 ? "0.0" : fixNumber(Number(value.tbf), 12)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta, 2) handleChange(event.target.value, tableMeta, 2)
...@@ -2479,7 +2489,7 @@ export default class TaxPlanning extends Component { ...@@ -2479,7 +2489,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> : /> :
<LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow> <LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow>
<NumberFormat <NumberFormat
...@@ -2496,7 +2506,7 @@ export default class TaxPlanning extends Component { ...@@ -2496,7 +2506,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -2892,7 +2902,7 @@ export default class TaxPlanning extends Component { ...@@ -2892,7 +2902,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="input" placeholder="input"
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)} disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value.tbf), 1) == 0 ? "0.0" : fixNumber(Number(value.tbf), 1)} value={fixNumber(Number(value.tbf), 12) == 0 ? "0.0" : fixNumber(Number(value.tbf), 12)}
onBlur={(event) => { onBlur={(event) => {
handleChange(event.target.value, tableMeta, 2) handleChange(event.target.value, tableMeta, 2)
// console.log(dataTable2) // console.log(dataTable2)
...@@ -2965,7 +2975,7 @@ export default class TaxPlanning extends Component { ...@@ -2965,7 +2975,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> : /> :
<LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow> <LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow>
<NumberFormat <NumberFormat
...@@ -2982,7 +2992,7 @@ export default class TaxPlanning extends Component { ...@@ -2982,7 +2992,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -3380,7 +3390,7 @@ export default class TaxPlanning extends Component { ...@@ -3380,7 +3390,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="input" placeholder="input"
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)} disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value.tbf), 1) == 0 ? "0.0" : fixNumber(Number(value.tbf), 1)} value={fixNumber(Number(value.tbf), 12) == 0 ? "0.0" : fixNumber(Number(value.tbf), 12)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta, 2) handleChange(event.target.value, tableMeta, 2)
...@@ -3454,7 +3464,7 @@ export default class TaxPlanning extends Component { ...@@ -3454,7 +3464,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> : /> :
<LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow> <LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow>
<NumberFormat <NumberFormat
...@@ -3471,7 +3481,7 @@ export default class TaxPlanning extends Component { ...@@ -3471,7 +3481,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -3868,7 +3878,7 @@ export default class TaxPlanning extends Component { ...@@ -3868,7 +3878,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="input" placeholder="input"
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)} disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value.tbf), 1) == 0 ? "0.0" : fixNumber(Number(value.tbf), 1)} value={fixNumber(Number(value.tbf), 12) == 0 ? "0.0" : fixNumber(Number(value.tbf), 12)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta, 2) handleChange(event.target.value, tableMeta, 2)
...@@ -3942,7 +3952,7 @@ export default class TaxPlanning extends Component { ...@@ -3942,7 +3952,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> : /> :
<LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow> <LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow>
<NumberFormat <NumberFormat
...@@ -3959,7 +3969,7 @@ export default class TaxPlanning extends Component { ...@@ -3959,7 +3969,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -4359,7 +4369,7 @@ export default class TaxPlanning extends Component { ...@@ -4359,7 +4369,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="input" placeholder="input"
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)} disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value.tbf), 1) == 0 ? "0.0" : fixNumber(Number(value.tbf), 1)} value={fixNumber(Number(value.tbf), 12) == 0 ? "0.0" : fixNumber(Number(value.tbf), 12)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta, 2) handleChange(event.target.value, tableMeta, 2)
...@@ -4433,7 +4443,7 @@ export default class TaxPlanning extends Component { ...@@ -4433,7 +4443,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> : /> :
<LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow> <LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow>
<NumberFormat <NumberFormat
...@@ -4450,7 +4460,7 @@ export default class TaxPlanning extends Component { ...@@ -4450,7 +4460,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -4849,7 +4859,7 @@ export default class TaxPlanning extends Component { ...@@ -4849,7 +4859,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="input" placeholder="input"
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)} disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value.tbf), 1) == 0 ? "0.0" : fixNumber(Number(value.tbf), 1)} value={fixNumber(Number(value.tbf), 12) == 0 ? "0.0" : fixNumber(Number(value.tbf), 12)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta, 2) handleChange(event.target.value, tableMeta, 2)
...@@ -4923,7 +4933,7 @@ export default class TaxPlanning extends Component { ...@@ -4923,7 +4933,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> : /> :
<LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow> <LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow>
<NumberFormat <NumberFormat
...@@ -4940,7 +4950,7 @@ export default class TaxPlanning extends Component { ...@@ -4940,7 +4950,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -5339,7 +5349,7 @@ export default class TaxPlanning extends Component { ...@@ -5339,7 +5349,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="input" placeholder="input"
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)} disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value.tbf), 1) == 0 ? "0.0" : fixNumber(Number(value.tbf), 1)} value={fixNumber(Number(value.tbf), 12) == 0 ? "0.0" : fixNumber(Number(value.tbf), 12)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta, 2) handleChange(event.target.value, tableMeta, 2)
...@@ -5413,7 +5423,7 @@ export default class TaxPlanning extends Component { ...@@ -5413,7 +5423,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> : /> :
<LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow> <LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow>
<NumberFormat <NumberFormat
...@@ -5430,7 +5440,7 @@ export default class TaxPlanning extends Component { ...@@ -5430,7 +5440,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -5829,7 +5839,7 @@ export default class TaxPlanning extends Component { ...@@ -5829,7 +5839,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="input" placeholder="input"
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)} disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value.tbf), 1) == 0 ? "0.0" : fixNumber(Number(value.tbf), 1)} value={fixNumber(Number(value.tbf), 12) == 0 ? "0.0" : fixNumber(Number(value.tbf), 12)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta, 2) handleChange(event.target.value, tableMeta, 2)
...@@ -5903,7 +5913,7 @@ export default class TaxPlanning extends Component { ...@@ -5903,7 +5913,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> : /> :
<LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow> <LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow>
<NumberFormat <NumberFormat
...@@ -5920,7 +5930,7 @@ export default class TaxPlanning extends Component { ...@@ -5920,7 +5930,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -6320,7 +6330,7 @@ export default class TaxPlanning extends Component { ...@@ -6320,7 +6330,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="input" placeholder="input"
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)} disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value.tbf), 1) == 0 ? "0.0" : fixNumber(Number(value.tbf), 1)} value={fixNumber(Number(value.tbf), 12) == 0 ? "0.0" : fixNumber(Number(value.tbf), 12)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta, 2) handleChange(event.target.value, tableMeta, 2)
...@@ -6394,7 +6404,7 @@ export default class TaxPlanning extends Component { ...@@ -6394,7 +6404,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> : /> :
<LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow> <LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow>
<NumberFormat <NumberFormat
...@@ -6411,7 +6421,7 @@ export default class TaxPlanning extends Component { ...@@ -6411,7 +6421,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -6810,7 +6820,7 @@ export default class TaxPlanning extends Component { ...@@ -6810,7 +6820,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="input" placeholder="input"
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)} disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value.tbf), 1) == 0 ? "0.0" : fixNumber(Number(value.tbf), 1)} value={fixNumber(Number(value.tbf), 12) == 0 ? "0.0" : fixNumber(Number(value.tbf), 12)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta, 2) handleChange(event.target.value, tableMeta, 2)
...@@ -6884,7 +6894,7 @@ export default class TaxPlanning extends Component { ...@@ -6884,7 +6894,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> : /> :
<LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow> <LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow>
<NumberFormat <NumberFormat
...@@ -6901,7 +6911,7 @@ export default class TaxPlanning extends Component { ...@@ -6901,7 +6911,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -7300,7 +7310,7 @@ export default class TaxPlanning extends Component { ...@@ -7300,7 +7310,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="input" placeholder="input"
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)} disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value.tbf), 1) == 0 ? "0.0" : fixNumber(Number(value.tbf), 1)} value={fixNumber(Number(value.tbf), 12) == 0 ? "0.0" : fixNumber(Number(value.tbf), 12)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta, 2) handleChange(event.target.value, tableMeta, 2)
...@@ -7374,7 +7384,7 @@ export default class TaxPlanning extends Component { ...@@ -7374,7 +7384,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> : /> :
<LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow> <LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow>
<NumberFormat <NumberFormat
...@@ -7391,7 +7401,7 @@ export default class TaxPlanning extends Component { ...@@ -7391,7 +7401,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -7790,7 +7800,7 @@ export default class TaxPlanning extends Component { ...@@ -7790,7 +7800,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="input" placeholder="input"
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)} disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value.tbf), 1) == 0 ? "0.0" : fixNumber(Number(value.tbf), 1)} value={fixNumber(Number(value.tbf), 12) == 0 ? "0.0" : fixNumber(Number(value.tbf), 12)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta, 2) handleChange(event.target.value, tableMeta, 2)
...@@ -7864,7 +7874,7 @@ export default class TaxPlanning extends Component { ...@@ -7864,7 +7874,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> : /> :
<LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow> <LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow>
<NumberFormat <NumberFormat
...@@ -7881,7 +7891,7 @@ export default class TaxPlanning extends Component { ...@@ -7881,7 +7891,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -7933,7 +7943,7 @@ export default class TaxPlanning extends Component { ...@@ -7933,7 +7943,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="input" placeholder="input"
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)} disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)} value={fixNumber(Number(value), 12) == 0 ? "0.0" : fixNumber(Number(value), 12)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta, 3) handleChange(event.target.value, tableMeta, 3)
...@@ -8041,7 +8051,7 @@ export default class TaxPlanning extends Component { ...@@ -8041,7 +8051,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.status === 'CLOSED' ? (fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)) : (fixNumber(Number(handleTotalControl(tableMeta, 1, this.props.periode)), 1) == 0 ?"0.0" : fixNumber(Number(handleTotalControl(tableMeta, 1, this.props.periode)), 1))} value={this.props.status === 'CLOSED' ? (fixNumber(Number(value), 12) == 0 ? "0.0" : fixNumber(Number(value), 12)) : (fixNumber(Number(handleTotalControl(tableMeta, 1, this.props.periode)), 12) == 0 ?"0.0" : fixNumber(Number(handleTotalControl(tableMeta, 1, this.props.periode)), 12))}
/> : /> :
<LightTooltip title={this.state.minValue === null ? `Value Should be 0` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow> <LightTooltip title={this.state.minValue === null ? `Value Should be 0` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow>
<NumberFormat <NumberFormat
...@@ -8050,7 +8060,7 @@ export default class TaxPlanning extends Component { ...@@ -8050,7 +8060,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.status === 'CLOSED' ? (fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)) : (fixNumber(Number(handleTotalControl(tableMeta, 1, this.props.periode)), 1) == 0 ?"0.0" : fixNumber(Number(handleTotalControl(tableMeta, 1, this.props.periode)), 1))} value={this.props.status === 'CLOSED' ? (fixNumber(Number(value), 12) == 0 ? "0.0" : fixNumber(Number(value), 12)) : (fixNumber(Number(handleTotalControl(tableMeta, 1, this.props.periode)), 12) == 0 ?"0.0" : fixNumber(Number(handleTotalControl(tableMeta, 1, this.props.periode)), 12))}
/> />
</LightTooltip> </LightTooltip>
...@@ -8612,7 +8622,7 @@ export default class TaxPlanning extends Component { ...@@ -8612,7 +8622,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="input" placeholder="input"
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)} disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value.tbf), 1) == 0 ? "0.0" : fixNumber(Number(value.tbf), 1)} value={fixNumber(Number(value.tbf), 12) == 0 ? "0.0" : fixNumber(Number(value.tbf), 12)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta, 2) handleChange(event.target.value, tableMeta, 2)
...@@ -8687,7 +8697,7 @@ export default class TaxPlanning extends Component { ...@@ -8687,7 +8697,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 1, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 1, 3)), 1)} value={fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 1, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 1, 3)), 12)}
/> : /> :
<LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow> <LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow>
<NumberFormat <NumberFormat
...@@ -8704,7 +8714,7 @@ export default class TaxPlanning extends Component { ...@@ -8704,7 +8714,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 1, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 1, 3)), 1)} value={fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 1, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 1, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -9178,7 +9188,7 @@ export default class TaxPlanning extends Component { ...@@ -9178,7 +9188,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="input" placeholder="input"
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)} disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
value={fixNumber(Number(value.tbf), 1) == 0 ? "0.0" : fixNumber(Number(value.tbf), 1)} value={fixNumber(Number(value.tbf), 12) == 0 ? "0.0" : fixNumber(Number(value.tbf), 12)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta, 2) handleChange(event.target.value, tableMeta, 2)
...@@ -9253,7 +9263,7 @@ export default class TaxPlanning extends Component { ...@@ -9253,7 +9263,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 2, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 2, 3)), 1)} value={fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 2, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 2, 3)), 12)}
/> : /> :
<LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow> <LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[25].tbf}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow>
<NumberFormat <NumberFormat
...@@ -9270,7 +9280,7 @@ export default class TaxPlanning extends Component { ...@@ -9270,7 +9280,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 2, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 2, 3)), 1)} value={fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 2, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 2, 3)), 12)}
/> />
</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