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