Commit 1df927f8 authored by qorri_di's avatar qorri_di

Merge branch 'ENV-STAGING' into 'ENV-PROD'

Env staging

See merge request !2152
parents 70af38bf a4804090
...@@ -1189,7 +1189,7 @@ export default class BalanceSheet extends Component { ...@@ -1189,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : 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
...@@ -1206,7 +1206,7 @@ export default class BalanceSheet extends Component { ...@@ -1206,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -1376,7 +1376,7 @@ export default class BalanceSheet extends Component { ...@@ -1376,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : 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
...@@ -1393,7 +1393,7 @@ export default class BalanceSheet extends Component { ...@@ -1393,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -1564,7 +1564,7 @@ export default class BalanceSheet extends Component { ...@@ -1564,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : 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
...@@ -1581,7 +1581,7 @@ export default class BalanceSheet extends Component { ...@@ -1581,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -1751,7 +1751,7 @@ export default class BalanceSheet extends Component { ...@@ -1751,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : 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
...@@ -1768,7 +1768,7 @@ export default class BalanceSheet extends Component { ...@@ -1768,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -1938,7 +1938,7 @@ export default class BalanceSheet extends Component { ...@@ -1938,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : 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
...@@ -1955,7 +1955,7 @@ export default class BalanceSheet extends Component { ...@@ -1955,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -2125,7 +2125,7 @@ export default class BalanceSheet extends Component { ...@@ -2125,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : 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
...@@ -2142,7 +2142,7 @@ export default class BalanceSheet extends Component { ...@@ -2142,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -2312,7 +2312,7 @@ export default class BalanceSheet extends Component { ...@@ -2312,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : 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
...@@ -2329,7 +2329,7 @@ export default class BalanceSheet extends Component { ...@@ -2329,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -2499,7 +2499,7 @@ export default class BalanceSheet extends Component { ...@@ -2499,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : 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
...@@ -2516,7 +2516,7 @@ export default class BalanceSheet extends Component { ...@@ -2516,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -2686,7 +2686,7 @@ export default class BalanceSheet extends Component { ...@@ -2686,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : 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
...@@ -2703,7 +2703,7 @@ export default class BalanceSheet extends Component { ...@@ -2703,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -2873,7 +2873,7 @@ export default class BalanceSheet extends Component { ...@@ -2873,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : 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
...@@ -2890,7 +2890,7 @@ export default class BalanceSheet extends Component { ...@@ -2890,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -3060,7 +3060,7 @@ export default class BalanceSheet extends Component { ...@@ -3060,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : 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
...@@ -3077,7 +3077,7 @@ export default class BalanceSheet extends Component { ...@@ -3077,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -3247,7 +3247,7 @@ export default class BalanceSheet extends Component { ...@@ -3247,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : 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
...@@ -3264,7 +3264,7 @@ export default class BalanceSheet extends Component { ...@@ -3264,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -3434,7 +3434,7 @@ export default class BalanceSheet extends Component { ...@@ -3434,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : 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
...@@ -3451,7 +3451,7 @@ export default class BalanceSheet extends Component { ...@@ -3451,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -3621,7 +3621,7 @@ export default class BalanceSheet extends Component { ...@@ -3621,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : 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
...@@ -3638,7 +3638,7 @@ export default class BalanceSheet extends Component { ...@@ -3638,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -3808,7 +3808,7 @@ export default class BalanceSheet extends Component { ...@@ -3808,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : 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
...@@ -3825,7 +3825,7 @@ export default class BalanceSheet extends Component { ...@@ -3825,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 12)} value={fixNumber(Number(handleValidation(value, tableMeta)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValidation(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValidation(value, tableMeta)), 1) : fixNumber(Number(handleValidation(value, tableMeta)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
......
...@@ -1698,7 +1698,15 @@ export default class TaxPlanning extends Component { ...@@ -1698,7 +1698,15 @@ export default class TaxPlanning extends Component {
// console.log("nilai : " + Number(dataTable2[88][21])) // console.log("nilai : " + Number(dataTable2[88][21]))
// console.log(JSON.stringify(tableMeta.tableData)) // console.log(JSON.stringify(tableMeta.tableData))
let nilai = Number(total) + Number(dataTable2[tableMeta.rowIndex-10][21]) let nilai = 0
console.log(this.props.defaultCurrency.id)
console.log(Number(dataTable2[tableMeta.rowIndex-9][21]))
console.log(Number(dataTable2[tableMeta.rowIndex-10][21]))
if (this.props.defaultCurrency.id == 1 ){
nilai = Number(total) + Number(dataTable2[tableMeta.rowIndex-9][21])
}else {
nilai = Number(total) + Number(dataTable2[tableMeta.rowIndex-10][21])
}
dataTable2[tableMeta.rowIndex][tableMeta.columnIndex] = nilai dataTable2[tableMeta.rowIndex][tableMeta.columnIndex] = nilai
// console.log("niali :" + Number(dataTable2[88][21])); // console.log("niali :" + Number(dataTable2[88][21]));
return nilai return nilai
...@@ -2490,7 +2498,7 @@ export default class TaxPlanning extends Component { ...@@ -2490,7 +2498,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : 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
...@@ -2507,7 +2515,7 @@ export default class TaxPlanning extends Component { ...@@ -2507,7 +2515,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -2976,7 +2984,7 @@ export default class TaxPlanning extends Component { ...@@ -2976,7 +2984,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : 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
...@@ -2993,7 +3001,7 @@ export default class TaxPlanning extends Component { ...@@ -2993,7 +3001,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -3465,7 +3473,7 @@ export default class TaxPlanning extends Component { ...@@ -3465,7 +3473,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : 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
...@@ -3482,7 +3490,7 @@ export default class TaxPlanning extends Component { ...@@ -3482,7 +3490,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -3953,7 +3961,7 @@ export default class TaxPlanning extends Component { ...@@ -3953,7 +3961,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : 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
...@@ -3970,7 +3978,7 @@ export default class TaxPlanning extends Component { ...@@ -3970,7 +3978,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -4444,7 +4452,7 @@ export default class TaxPlanning extends Component { ...@@ -4444,7 +4452,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : 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
...@@ -4461,7 +4469,7 @@ export default class TaxPlanning extends Component { ...@@ -4461,7 +4469,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -4934,7 +4942,7 @@ export default class TaxPlanning extends Component { ...@@ -4934,7 +4942,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : 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
...@@ -4951,7 +4959,7 @@ export default class TaxPlanning extends Component { ...@@ -4951,7 +4959,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -5424,7 +5432,7 @@ export default class TaxPlanning extends Component { ...@@ -5424,7 +5432,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : 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
...@@ -5441,7 +5449,7 @@ export default class TaxPlanning extends Component { ...@@ -5441,7 +5449,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -5914,7 +5922,7 @@ export default class TaxPlanning extends Component { ...@@ -5914,7 +5922,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : 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
...@@ -5931,7 +5939,7 @@ export default class TaxPlanning extends Component { ...@@ -5931,7 +5939,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -6405,7 +6413,7 @@ export default class TaxPlanning extends Component { ...@@ -6405,7 +6413,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : 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
...@@ -6422,7 +6430,7 @@ export default class TaxPlanning extends Component { ...@@ -6422,7 +6430,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -6895,7 +6903,7 @@ export default class TaxPlanning extends Component { ...@@ -6895,7 +6903,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : 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
...@@ -6912,7 +6920,7 @@ export default class TaxPlanning extends Component { ...@@ -6912,7 +6920,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -7385,7 +7393,7 @@ export default class TaxPlanning extends Component { ...@@ -7385,7 +7393,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : 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
...@@ -7402,7 +7410,7 @@ export default class TaxPlanning extends Component { ...@@ -7402,7 +7410,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -7875,7 +7883,7 @@ export default class TaxPlanning extends Component { ...@@ -7875,7 +7883,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : 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
...@@ -7892,7 +7900,7 @@ export default class TaxPlanning extends Component { ...@@ -7892,7 +7900,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -8052,7 +8060,7 @@ export default class TaxPlanning extends Component { ...@@ -8052,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), 12) == 0 ? "0.0" : fixNumber(Number(value), 1)) : (fixNumber(Number(handleTotalControl(tableMeta, 1, this.props.periode)), 12) == 0 ?"0.0" : fixNumber(Number(handleTotalControl(tableMeta, 1, this.props.periode)), 12))} 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" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleTotalControl(tableMeta, 1, this.props.periode)), 11) : 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
...@@ -8061,7 +8069,7 @@ export default class TaxPlanning extends Component { ...@@ -8061,7 +8069,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), 12) == 0 ? "0.0" : fixNumber(Number(value), 1)) : (fixNumber(Number(handleTotalControl(tableMeta, 1, this.props.periode)), 12) == 0 ?"0.0" : fixNumber(Number(handleTotalControl(tableMeta, 1, this.props.periode)), 12))} 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" : this.props.defaultCurrency.id === 1 ? fixNumber(Number(handleTotalControl(tableMeta, 1, this.props.periode)), 11) : fixNumber(Number(handleTotalControl(tableMeta, 1, this.props.periode)), 12))}
/> />
</LightTooltip> </LightTooltip>
...@@ -8698,7 +8706,7 @@ export default class TaxPlanning extends Component { ...@@ -8698,7 +8706,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 1, 3)), 12)} value={fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 1, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? 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) : 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
...@@ -8715,7 +8723,7 @@ export default class TaxPlanning extends Component { ...@@ -8715,7 +8723,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 1, 3)), 12)} value={fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 1, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? 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) : fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 1, 3)), 12)}
/> />
</LightTooltip> </LightTooltip>
: :
...@@ -9264,7 +9272,7 @@ export default class TaxPlanning extends Component { ...@@ -9264,7 +9272,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 2, 3)), 12)} value={fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 2, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? 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) : 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
...@@ -9281,7 +9289,7 @@ export default class TaxPlanning extends Component { ...@@ -9281,7 +9289,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)), 12) == 0 ? "0.0" : fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 2, 3)), 12)} value={fixNumber(Number(handleForecast(tableMeta, Number(this.props.periode) + 2, 3)), 12) == 0 ? "0.0" : this.props.defaultCurrency.id === 1 ? 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) : 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