Commit 567e81bd authored by Riri Novita's avatar Riri Novita

Merge branch 'ENV-DEV' of http://103.44.149.204/d.arizona/tia-dev into dev/riri

parents d51a53e0 eea6c5b0
......@@ -1189,7 +1189,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -1206,7 +1206,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
:
......@@ -1376,7 +1376,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -1393,7 +1393,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
:
......@@ -1564,7 +1564,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -1581,7 +1581,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
:
......@@ -1751,7 +1751,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -1768,7 +1768,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
:
......@@ -1938,7 +1938,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -1955,7 +1955,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
:
......@@ -2125,7 +2125,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -2142,7 +2142,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
:
......@@ -2312,7 +2312,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -2329,7 +2329,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
:
......@@ -2499,7 +2499,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -2516,7 +2516,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
:
......@@ -2686,7 +2686,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -2703,7 +2703,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
:
......@@ -2873,7 +2873,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -2890,7 +2890,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
:
......@@ -3060,7 +3060,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -3077,7 +3077,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
:
......@@ -3247,7 +3247,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -3264,7 +3264,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
:
......@@ -3434,7 +3434,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -3451,7 +3451,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
:
......@@ -3621,7 +3621,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -3638,7 +3638,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
:
......@@ -3808,7 +3808,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -3825,7 +3825,7 @@ export default class BalanceSheet extends Component {
type="text"
placeholder=""
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>
:
......
......@@ -209,7 +209,7 @@ export default class TaxPlanning extends Component {
fcp: item.tax_planning.december === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.december?.fcp), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.december?.fcp), 1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.december?.fcp, formula: item.tax_planning.december_formula } : item.tax_planning.december?.fcp,
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.december?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.december?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.december === null ? "0.0" : item.tax_planning.december?.tbf, formula: item.tax_planning.december_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.december?.tbf
},
fixNumber(Number(item.tax_planning.total_current_year), 1),
item.type_report_tax.value_tbf.type_report_id == 3 ? fixNumber(Number(item.tax_planning.total_current_year), 12) : fixNumber(Number(item.tax_planning.total_current_year), 1),
// { tbc: item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.total_next_year.tbc } : item.tax_planning.total_next_year.tbc, fcp: item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.total_next_year.fcp } : item.tax_planning.total_next_year.fcp, tbf: item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.total_next_year.tbf } : item.tax_planning.total_next_year.tbf },
{
tbc: item.tax_planning.total_next_year === null ? '0.0' : item.tax_planning.total_next_year.tbc,
......@@ -237,6 +237,7 @@ export default class TaxPlanning extends Component {
}
}
}
console.log()
res.map((item, index) => {
dataTable.push([
item.type_report_id,
......@@ -251,64 +252,64 @@ export default class TaxPlanning extends Component {
{
tbc: this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.january?.tbc), 1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.january === null ? "0.0" : item.tax_planning.january.tbc, formula: item.tax_planning.january_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.january?.tbc,
fcp: item.tax_planning.january === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.january?.fcp), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.january?.fcp), 1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.january === null ? "0.0" : item.tax_planning.january.tbc, formula: item.tax_planning.january_formula } : item.tax_planning.january?.fcp,
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.january?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.january?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.january === null ? "0.0" : item.tax_planning.january.tbc, formula: item.tax_planning.january_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.january?.tbf
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.january?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.january?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.january === null ? "0.0" : item.tax_planning.january.tbc, formula: item.tax_planning.january_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? item.tax_planning.january?.tbf : item.tax_planning.january?.tbf
},
{
tbc: this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.february?.tbc), 1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.february === null ? "0.0" : item.tax_planning.february?.tbc, formula: item.tax_planning.february_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.february?.tbc,
fcp: item.tax_planning.february === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.february?.fcp), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.february?.fcp), 1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.february?.fcp, formula: item.tax_planning.february_formula } : item.tax_planning.february?.fcp,
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.february?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.february?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.february === null ? "0.0" : item.tax_planning.february.tbc, formula: item.tax_planning.february_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.february?.tbf
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.february?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.february?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.february === null ? "0.0" : item.tax_planning.february.tbc, formula: item.tax_planning.february_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? item.tax_planning.february?.tbf : item.tax_planning.february?.tbf
},
{
tbc: this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.march?.tbc), 1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.march === null ? "0.0" : item.tax_planning.march?.tbc, formula: item.tax_planning.march_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.march?.tbc,
fcp: item.tax_planning.march === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.march?.fcp), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.march?.fcp), 1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.march?.fcp, formula: item.tax_planning.march_formula } : item.tax_planning.march?.fcp,
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.march?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.march?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.march === null ? "0.0" : item.tax_planning.march?.tbf, formula: item.tax_planning.march_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.march?.tbf
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.march?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.march?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.march === null ? "0.0" : item.tax_planning.march?.tbf, formula: item.tax_planning.march_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? item.tax_planning.march?.tbf : item.tax_planning.march?.tbf
},
{
tbc: this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.april?.tbc), 1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.april === null ? "0.0" : item.tax_planning.april?.tbc, formula: item.tax_planning.april_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.april?.tbc,
fcp: item.tax_planning.april === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.april?.fcp), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.april?.fcp), 1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.april?.fcp, formula: item.tax_planning.april_formula } : item.tax_planning.april?.fcp,
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.april?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.april?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.april === null ? "0.0" : item.tax_planning.april?.tbf, formula: item.tax_planning.april_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.april?.tbf
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.april?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.april?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.april === null ? "0.0" : item.tax_planning.april?.tbf, formula: item.tax_planning.april_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? item.tax_planning.april?.tbf : item.tax_planning.april?.tbf
},
{
tbc: this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.may?.tbc), 1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.may === null ? "0.0" : item.tax_planning.may?.tbc, formula: item.tax_planning.may_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.may?.tbc,
fcp: item.tax_planning.may === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.may?.fcp), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.may?.fcp), 1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.may?.fcp, formula: item.tax_planning.may_formula } : item.tax_planning.may?.fcp,
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.may?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.may?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.may === null ? "0.0" : item.tax_planning.may?.tbf, formula: item.tax_planning.may_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.may?.tbf
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.may?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.may?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.may === null ? "0.0" : item.tax_planning.may?.tbf, formula: item.tax_planning.may_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? item.tax_planning.may?.tbf : item.tax_planning.may?.tbf
},
{
tbc: this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.june?.tbc), 1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.june === null ? "0.0" : item.tax_planning.june?.tbc, formula: item.tax_planning.june_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.june?.tbc,
fcp: item.tax_planning.june === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.june?.fcp), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.june?.fcp), 1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.june?.fcp, formula: item.tax_planning.june_formula } : item.tax_planning.june?.fcp,
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.june?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.june?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.june === null ? "0.0" : item.tax_planning.june?.tbf, formula: item.tax_planning.june_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.june?.tbf
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.june?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.june?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.june === null ? "0.0" : item.tax_planning.june?.tbf, formula: item.tax_planning.june_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? item.tax_planning.june?.tbf : item.tax_planning.june?.tbf
},
{
tbc: this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.july?.tbc), 1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.july === null ? "0.0" : item.tax_planning.july?.tbc, formula: item.tax_planning.july_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.july?.tbc,
fcp: item.tax_planning.july === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.july?.fcp), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.july?.fcp), 1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.july?.fcp, formula: item.tax_planning.july_formula } : item.tax_planning.july?.fcp,
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.july?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.july?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.july === null ? "0.0" : item.tax_planning.july?.tbf, formula: item.tax_planning.july_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.july?.tbf
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.july?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.july?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.july === null ? "0.0" : item.tax_planning.july?.tbf, formula: item.tax_planning.july_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? item.tax_planning.july?.tbf : item.tax_planning.july?.tbf
},
{
tbc: this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.august?.tbc), 1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.august === null ? "0.0" : item.tax_planning.august?.tbc, formula: item.tax_planning.august_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.august?.tbc === null ? "0.0" : item.tax_planning.august?.tbc === "" ? "0.0" : item.tax_planning.august?.tbc,
fcp: item.tax_planning.august === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.august?.fcp), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.august?.fcp), 1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.august?.fcp, formula: item.tax_planning.august_formula } : item.tax_planning.august?.fcp,
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.august?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.august?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.august === null ? "0.0" : item.tax_planning.august?.tbf, formula: item.tax_planning.august_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.august?.tbf
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.august?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.august?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.august === null ? "0.0" : item.tax_planning.august?.tbf, formula: item.tax_planning.august_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? item.tax_planning.august?.tbf : item.tax_planning.august?.tbf
},
{
tbc: this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.september?.tbc), 1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.september === null ? "0.0" : item.tax_planning.september?.tbc, formula: item.tax_planning.september_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.september?.tbc,
fcp: item.tax_planning.september === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.september?.fcp), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.september?.fcp), 1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.september?.fcp, formula: item.tax_planning.september_formula } : item.tax_planning.september?.fcp,
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.september?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.september?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.september === null ? "0.0" : item.tax_planning.september?.tbf, formula: item.tax_planning.september_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.september?.tbf
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.september?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.september?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.september === null ? "0.0" : item.tax_planning.september?.tbf, formula: item.tax_planning.september_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? item.tax_planning.september?.tbf : item.tax_planning.september?.tbf
},
{
tbc: this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.october?.tbc), 1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.october === null ? "0.0" : item.tax_planning.october?.tbc, formula: item.tax_planning.october_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.october?.tbc,
fcp: item.tax_planning.october === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.october?.fcp), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.october?.fcp), 1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.october?.fcp, formula: item.tax_planning.october_formula } : item.tax_planning.october?.fcp,
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.october?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.october?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.october === null ? "0.0" : item.tax_planning.october?.tbf, formula: item.tax_planning.october_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.october?.tbf
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.october?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.october?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.october === null ? "0.0" : item.tax_planning.october?.tbf, formula: item.tax_planning.october_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? item.tax_planning.october?.tbf : item.tax_planning.october?.tbf
},
{
tbc: this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.november?.tbc), 1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.november === null ? "0.0" : item.tax_planning.november?.tbc, formula: item.tax_planning.november_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.november?.tbc,
fcp: item.tax_planning.november === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.november?.fcp), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.november?.fcp), 1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.november?.fcp, formula: item.tax_planning.november_formula } : item.tax_planning.november?.fcp,
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.november?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.november?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.november === null ? "0.0" : item.tax_planning.november?.tbf, formula: item.tax_planning.november_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.november?.tbf
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.november?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.november?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.november === null ? "0.0" : item.tax_planning.november?.tbf, formula: item.tax_planning.november_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? item.tax_planning.november?.tbf : item.tax_planning.november?.tbf
},
{
tbc: this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.december?.tbc), 1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.december === null ? "0.0" : item.tax_planning.december?.tbc, formula: item.tax_planning.december_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.december?.tbc,
fcp: item.tax_planning.december === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.december?.fcp), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.december?.fcp), 1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.december?.fcp, formula: item.tax_planning.december_formula } : item.tax_planning.december?.fcp,
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.december?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.december?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.december === null ? "0.0" : item.tax_planning.december?.tbf, formula: item.tax_planning.december_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.december?.tbf
tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(item.tax_planning.december?.tbf), 2) : this.props.status === 'CLOSED' ? fixNumber(Number(item.tax_planning.december?.tbf), 1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.december === null ? "0.0" : item.tax_planning.december?.tbf, formula: item.tax_planning.december_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? Number(item.tax_planning.december?.tbf) : Number(item.tax_planning.december?.tbf)
},
fixNumber(Number(item.tax_planning.total_current_year), 1),
item.type_report_tax.value_tbf.type_report_id == 3 ? fixNumber(Number(item.tax_planning.total_current_year), 12) : fixNumber(Number(item.tax_planning.total_current_year), 1),
// { tbc: item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.total_next_year.tbc } : item.tax_planning.total_next_year.tbc, fcp: item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.total_next_year.fcp } : item.tax_planning.total_next_year.fcp, tbf: item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.total_next_year.tbf } : item.tax_planning.total_next_year.tbf },
{
tbc: item.tax_planning.total_next_year === null ? '0.0' : item.tax_planning.total_next_year.tbc,
......@@ -1697,7 +1698,15 @@ export default class TaxPlanning extends Component {
// console.log("nilai : " + Number(dataTable2[88][21]))
// 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
// console.log("niali :" + Number(dataTable2[88][21]));
return nilai
......@@ -2489,7 +2498,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -2506,7 +2515,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
:
......@@ -2975,7 +2984,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -2992,7 +3001,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
:
......@@ -3464,7 +3473,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -3481,7 +3490,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
:
......@@ -3952,7 +3961,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -3969,7 +3978,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
:
......@@ -4443,7 +4452,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -4460,7 +4469,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
:
......@@ -4933,7 +4942,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -4950,7 +4959,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
:
......@@ -5423,7 +5432,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -5440,7 +5449,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
:
......@@ -5913,7 +5922,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -5930,7 +5939,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
:
......@@ -6404,7 +6413,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -6421,7 +6430,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
:
......@@ -6894,7 +6903,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -6911,7 +6920,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
:
......@@ -7384,7 +7393,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -7401,7 +7410,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
:
......@@ -7874,7 +7883,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -7891,7 +7900,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
:
......@@ -7943,7 +7952,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), 12) == 0 ? "0.0" : fixNumber(Number(value), 12)}
value={this.props.status === 'CLOSED' ? fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1) :fixNumber(Number(value), 12) == 0 ? "0.0" : fixNumber(Number(value), 12)}
onBlur={(event) => {
// updateValue(event.target.value)
handleChange(event.target.value, tableMeta, 3)
......@@ -8051,7 +8060,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
disabled={true}
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))}
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>
<NumberFormat
......@@ -8060,7 +8069,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
disabled={true}
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))}
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>
......@@ -8697,7 +8706,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -8714,7 +8723,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
:
......@@ -9263,7 +9272,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
<NumberFormat
......@@ -9280,7 +9289,7 @@ export default class TaxPlanning extends Component {
type="text"
placeholder=""
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>
:
......
......@@ -916,8 +916,8 @@ export default class CashFlow extends Component {
type="text"
placeholder=""
disabled={true}
// value={Number(tableMeta.rowData[6].value).toFixed(1)}
value={Number(tableMeta.rowData[6].value) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.PLBSFAMSubmitted ? fixNumber(Number(tableMeta.rowData[6].value).toFixed(1), 1) : fixNumber(Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)), 1)) : (this.props.PLBSFAMSubmitted ? Number(tableMeta.rowData[6].value) : Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)))}
// value={fixNumber(Number(tableMeta.rowData[6].value).toFixed(1), 1)}
value={Number(tableMeta.rowData[6].value) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.PLBSFAMSubmitted ? fixNumber(Number(tableMeta.rowData[6].value), 1) : fixNumber(Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)), 1)) : (this.props.PLBSFAMSubmitted ? Number(tableMeta.rowData[6].value) : Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)))}
/>
</span>
:
......@@ -929,7 +929,7 @@ export default class CashFlow extends Component {
placeholder=""
disabled={true}
// value={Number(tableMeta.rowData[6].value).toFixed(1)}
value={Number(tableMeta.rowData[6].value) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.PLBSFAMSubmitted ? fixNumber(Number(tableMeta.rowData[6].value).toFixed(1), 1) : fixNumber(Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)), 1)) : (this.props.PLBSFAMSubmitted ? Number(tableMeta.rowData[6].value) : Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)))}
value={Number(tableMeta.rowData[6].value) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.PLBSFAMSubmitted ? fixNumber(Number(tableMeta.rowData[6].value), 1) : fixNumber(Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)), 1)) : (this.props.PLBSFAMSubmitted ? Number(tableMeta.rowData[6].value) : Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)))}
/>
:
tableMeta.rowData[0] === 7 ?
......@@ -951,7 +951,7 @@ export default class CashFlow extends Component {
placeholder=""
disabled={true}
// value={Number(tableMeta.rowData[6].value).toFixed(1)}
value={Number(tableMeta.rowData[6].value) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.PLBSFAMSubmitted ? fixNumber(Number(tableMeta.rowData[6].value).toFixed(1), 1) : fixNumber(Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)), 1)) : (this.props.PLBSFAMSubmitted ? Number(tableMeta.rowData[6].value) : Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)))}
value={Number(tableMeta.rowData[6].value) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.PLBSFAMSubmitted ? fixNumber(Number(tableMeta.rowData[6].value), 1) : fixNumber(Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)), 1)) : (this.props.PLBSFAMSubmitted ? Number(tableMeta.rowData[6].value) : Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)))}
/>
:
<LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[24]}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow>
......@@ -970,7 +970,7 @@ export default class CashFlow extends Component {
placeholder=""
disabled={true}
// value={Number(tableMeta.rowData[6].value).toFixed(1)}
value={Number(tableMeta.rowData[6].value) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.PLBSFAMSubmitted ? fixNumber(Number(tableMeta.rowData[6].value).toFixed(1), 1) : fixNumber(Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)), 1)) : (this.props.PLBSFAMSubmitted ? Number(tableMeta.rowData[6].value) : Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)))}
value={Number(tableMeta.rowData[6].value) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.PLBSFAMSubmitted ? fixNumber(Number(tableMeta.rowData[6].value), 1) : fixNumber(Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)), 1)) : (this.props.PLBSFAMSubmitted ? Number(tableMeta.rowData[6].value) : Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)))}
/>
</LightTooltip>
:
......@@ -990,7 +990,7 @@ export default class CashFlow extends Component {
placeholder=""
disabled={true}
// value={Number(tableMeta.rowData[6].value).toFixed(1)}
value={Number(tableMeta.rowData[6].value) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.PLBSFAMSubmitted ? fixNumber(Number(tableMeta.rowData[6].value).toFixed(1), 1) : fixNumber(Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)), 1)) : (this.props.PLBSFAMSubmitted ? Number(tableMeta.rowData[6].value) : Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)))}
value={Number(tableMeta.rowData[6].value) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.PLBSFAMSubmitted ? fixNumber(Number(tableMeta.rowData[6].value), 1) : fixNumber(Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)), 1)) : (this.props.PLBSFAMSubmitted ? Number(tableMeta.rowData[6].value) : Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)))}
/>
:
<LightTooltip title={this.state.minValue === null ? `Value Should be ${tableMeta.rowData[24]}` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow>
......@@ -1009,7 +1009,7 @@ export default class CashFlow extends Component {
placeholder=""
disabled={true}
// value={Number(tableMeta.rowData[6].value).toFixed(1)}
value={Number(tableMeta.rowData[6].value) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.PLBSFAMSubmitted ? fixNumber(Number(tableMeta.rowData[6].value).toFixed(1), 1) : fixNumber(Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)), 1)) : (this.props.PLBSFAMSubmitted ? Number(tableMeta.rowData[6].value) : Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)))}
value={Number(tableMeta.rowData[6].value) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.PLBSFAMSubmitted ? fixNumber(Number(tableMeta.rowData[6].value), 1) : fixNumber(Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)), 1)) : (this.props.PLBSFAMSubmitted ? Number(tableMeta.rowData[6].value) : Number(handleValueFormula(tableMeta.rowData[6], tableMeta, 6)))}
/>
</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