Commit b54e580c authored by Riri Novita's avatar Riri Novita

Update RO

parent fc2d5831
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -1045,7 +1045,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
/>
:
// tableMeta.rowData[0] === 2 ?
......@@ -1056,7 +1056,7 @@ export default class ProfitLossROO extends Component {
// type="text"
// placeholder=""
// disabled={true}
// // value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
// // value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
// value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValue(val, tableMeta)), 1) : Number(handleValue(val, tableMeta))}
// />
// </span>
......@@ -1074,7 +1074,7 @@ export default class ProfitLossROO extends Component {
// placeholder=""
// // disabled={this.props.isApprover? true : (this.state.get_for == 'view'? true : false)}
// disabled={true}
// value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
// value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
// onBlur={(event) => {
// handleChange(event.target.value, tableMeta)
// }}
......@@ -1112,7 +1112,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? fixNumber(Number(val), 1) : Number(val) == 0 ? "0.0" : Number(val)}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(val), 1) : Number(val) == 0 ? "0.0" : Number(val)}
/>
}
/>
......@@ -1143,7 +1143,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
/>
:
// tableMeta.rowData[0] === 2 ?
......@@ -1154,7 +1154,7 @@ export default class ProfitLossROO extends Component {
// type="text"
// placeholder=""
// disabled={true}
// // value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
// // value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
// value={val === "0" ? "" : Number(handleValue(val, tableMeta)).toFixed(1)}
// />
// </span>
......@@ -1210,7 +1210,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : val === "0" ? "" : this.props.defaultCurrency.id == 1 ? fixNumber(Number(val), 1) : Number(val)}
value={val === "0" ? "" : this.props.defaultCurrency.id == 1 ? fixNumber(Number(val), 1) : Number(val) == 0 ? "0.0" : Number(val)}
/>
}
/>
......@@ -1241,7 +1241,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
/>
:
// tableMeta.rowData[0] === 2 ?
......@@ -1252,7 +1252,7 @@ export default class ProfitLossROO extends Component {
// type="text"
// placeholder=""
// disabled={true}
// // value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
// // value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
// value={val === "0" ? "" : Number(handleValue(val, tableMeta)).toFixed(1)}
// />
// </span>
......@@ -1308,7 +1308,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : val === "0" ? "" : this.props.defaultCurrency.id == 1 ? fixNumber(Number(val), 1) : Number(val)}
value={val === "0" ? "" : this.props.defaultCurrency.id == 1 ? fixNumber(Number(val), 1) : Number(val) == 0 ? "0.0" : Number(val)}
/>
}
/>
......@@ -1339,7 +1339,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
/>
:
// tableMeta.rowData[0] === 2 ?
......@@ -1350,7 +1350,7 @@ export default class ProfitLossROO extends Component {
// type="text"
// placeholder=""
// disabled={true}
// // value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
// // value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
// value={val === "0" ? "" : Number(handleValue(val, tableMeta)).toFixed(1)}
// />
// </span>
......@@ -1406,7 +1406,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : val === "0" ? "" : this.props.defaultCurrency.id == 1 ? fixNumber(Number(val), 1) : Number(val)}
value={val === "0" ? "" : this.props.defaultCurrency.id == 1 ? fixNumber(Number(val), 1) : Number(val) == 0 ? "0.0" : Number(val)}
/>
}
/>
......@@ -1437,7 +1437,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
/>
:
tableMeta.rowData[0] === 2 ?
......@@ -1449,7 +1449,7 @@ export default class ProfitLossROO extends Component {
placeholder=""
disabled={true}
// value={Number(val).toFixed(1)}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleValue(val, tableMeta)), 1)) : fixNumber(Number(handleValue(val, tableMeta)), 1)) : (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleValue(val, tableMeta))) : Number(handleValue(val, tableMeta)))}
value={this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleValue(val, tableMeta)), 1)) : fixNumber(Number(handleValue(val, tableMeta)), 1)) : (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleValue(val, tableMeta)) == 0 ? "0.0" : Number(handleValue(val, tableMeta))) : Number(handleValue(val, tableMeta)) == 0 ? "0.0" : Number(handleValue(val, tableMeta)))}
/>
</span>
:
......@@ -1487,7 +1487,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleFormula(val, tableMeta, 1))) : Number(handleFormula(val, tableMeta, 1)))}
value={this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleFormula(val, tableMeta, 1)) == 0 ? "0.0" : Number(handleFormula(val, tableMeta, 1))) : Number(handleFormula(val, tableMeta, 1)) == 0 ? "0.0" : Number(handleFormula(val, tableMeta, 1)))}
/>
}
/>
......@@ -1504,7 +1504,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(val), 1)) : fixNumber(Number(val), 1)) : (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : Number(val)) : Number(val))}
value={this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(val), 1)) : fixNumber(Number(val), 1)) : (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : Number(val) == 0 ? "0.0" : Number(val)) : Number(val) == 0 ? "0.0" : Number(val))}
/>
}
/>
......@@ -1535,7 +1535,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
/>
:
tableMeta.rowData[0] === 2 ?
......@@ -1546,8 +1546,8 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
// value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleValue(val, tableMeta)), 1)) : fixNumber(Number(handleValue(val, tableMeta)), 1)) : (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleValue(val, tableMeta))) : Number(handleValue(val, tableMeta)))}
// value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleValue(val, tableMeta)), 1)) : fixNumber(Number(handleValue(val, tableMeta)), 1)) : (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleValue(val, tableMeta)) == 0 ? "0.0" : Number(handleValue(val, tableMeta))) : Number(handleValue(val, tableMeta)) == 0 ? "0.0" : Number(handleValue(val, tableMeta)))}
/>
</span>
:
......@@ -1585,7 +1585,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleFormula(val, tableMeta, 1))) : Number(handleFormula(val, tableMeta, 1)))}
value={this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleFormula(val, tableMeta, 1)) == 0 ? "0.0" : Number(handleFormula(val, tableMeta, 1))) : Number(handleFormula(val, tableMeta, 1)) == 0 ? "0.0" : Number(handleFormula(val, tableMeta, 1)))}
/>
}
/>
......@@ -1602,7 +1602,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(val), 1)) : fixNumber(Number(val), 1)) : (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : Number(val)) : Number(val))}
value={this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(val), 1)) : fixNumber(Number(val), 1)) : (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : Number(val) == 0 ? "0.0" : Number(val)) : Number(val) == 0 ? "0.0" : Number(val))}
/>
}
/>
......@@ -1633,7 +1633,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
/>
:
tableMeta.rowData[0] === 2 ?
......@@ -1644,8 +1644,8 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
// value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleValue(val, tableMeta)), 1)) : fixNumber(Number(handleValue(val, tableMeta)), 1)) : (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleValue(val, tableMeta))) : Number(handleValue(val, tableMeta)))}
// value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleValue(val, tableMeta)), 1)) : fixNumber(Number(handleValue(val, tableMeta)), 1)) : (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleValue(val, tableMeta)) == 0 ? "0.0" : Number(handleValue(val, tableMeta))) : Number(handleValue(val, tableMeta)) == 0 ? "0.0" : Number(handleValue(val, tableMeta)))}
/>
</span>
:
......@@ -1683,7 +1683,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleFormula(val, tableMeta, 1))) : Number(handleFormula(val, tableMeta, 1)))}
value={this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleFormula(val, tableMeta, 1)) == 0 ? "0.0" : Number(handleFormula(val, tableMeta, 1))) : Number(handleFormula(val, tableMeta, 1)) == 0 ? "0.0" : Number(handleFormula(val, tableMeta, 1)))}
/>
}
/>
......@@ -1700,7 +1700,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(val), 1)) : fixNumber(Number(val), 1)) : (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : Number(val)) : Number(val))}
value={this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(val), 1)) : fixNumber(Number(val), 1)) : (this.props.quarter == 'q2' || this.props.quarter == 'q3' ? (val === "0" ? "" : Number(val) == 0 ? "0.0" : Number(val)) : Number(val) == 0 ? "0.0" : Number(val))}
/>
}
/>
......@@ -1731,7 +1731,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
/>
:
tableMeta.rowData[0] === 2 ?
......@@ -1742,8 +1742,8 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
// value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleValue(val, tableMeta)), 1)) : fixNumber(Number(handleValue(val, tableMeta)), 1)) : (this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleValue(val, tableMeta))) : Number(handleValue(val, tableMeta)))}
// value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleValue(val, tableMeta)), 1)) : fixNumber(Number(handleValue(val, tableMeta)), 1)) : (this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleValue(val, tableMeta)) == 0 ? "0.0" : Number(handleValue(val, tableMeta))) : Number(handleValue(val, tableMeta)) == 0 ? "0.0" : Number(handleValue(val, tableMeta)))}
/>
</span>
:
......@@ -1781,7 +1781,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : (this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleFormula(val, tableMeta, 1))) : Number(handleFormula(val, tableMeta, 1)))}
value={this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : (this.props.quarter == 'q3' ? (val === "0" ? "" : (Number(handleFormula(val, tableMeta, 1)) == 0 ? "0.0" : Number(handleFormula(val, tableMeta, 1)))) : (Number(handleFormula(val, tableMeta, 1)) == 0 ? "0.0" : Number(handleFormula(val, tableMeta, 1))))}
/>
}
/>
......@@ -1830,7 +1830,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
/>
:
tableMeta.rowData[0] === 2 ?
......@@ -1841,8 +1841,8 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
// value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleValue(val, tableMeta)), 1)) : fixNumber(Number(handleValue(val, tableMeta)), 1)) : (this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleValue(val, tableMeta))) : Number(handleValue(val, tableMeta)))}
// value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleValue(val, tableMeta)), 1)) : fixNumber(Number(handleValue(val, tableMeta)), 1)) : (this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleValue(val, tableMeta)) == 0 ? "0.0" : Number(handleValue(val, tableMeta))) : Number(handleValue(val, tableMeta)))}
/>
</span>
:
......@@ -1880,7 +1880,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : (this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleFormula(val, tableMeta, 1))) : Number(handleFormula(val, tableMeta, 1)))}
value={this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : (this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleFormula(val, tableMeta, 1)) == 0 ? "0.0" : Number(handleFormula(val, tableMeta, 1))) : Number(handleFormula(val, tableMeta, 1)))}
/>
}
/>
......@@ -1929,7 +1929,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
/>
:
tableMeta.rowData[0] === 2 ?
......@@ -1940,8 +1940,8 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
// value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleValue(val, tableMeta)), 1)) : fixNumber(Number(handleValue(val, tableMeta)), 1)) : (this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleValue(val, tableMeta))) : Number(handleValue(val, tableMeta)))}
// value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleValue(val, tableMeta)), 1)) : fixNumber(Number(handleValue(val, tableMeta)), 1)) : (this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleValue(val, tableMeta)) == 0 ? "0.0" : Number(handleValue(val, tableMeta))) : Number(handleValue(val, tableMeta)) == 0 ? "0.0" : Number(handleValue(val, tableMeta)))}
/>
</span>
:
......@@ -1979,7 +1979,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : (this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleFormula(val, tableMeta, 1))) : Number(handleFormula(val, tableMeta, 1)))}
value={this.props.defaultCurrency.id == 1 ? (this.props.quarter == 'q3' ? (val === "0" ? "" : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : fixNumber(Number(handleFormula(val, tableMeta, 1)), 1)) : (this.props.quarter == 'q3' ? (val === "0" ? "" : Number(handleFormula(val, tableMeta, 1)) == 0 ? "0.0" : Number(handleFormula(val, tableMeta, 1))) : Number(handleFormula(val, tableMeta, 1)) == 0 ? "0.0" : Number(handleFormula(val, tableMeta, 1)))}
/>
}
/>
......@@ -2029,7 +2029,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
/>
:
tableMeta.rowData[0] === 2 ?
......@@ -2040,8 +2040,8 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
// value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValue(val, tableMeta)), 1) : Number(handleValue(val, tableMeta))}
// value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValue(val, tableMeta)), 1) : Number(handleValue(val, tableMeta)) == 0 ? "0.0" : Number(handleValue(val, tableMeta))}
/>
</span>
:
......@@ -2079,7 +2079,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleFormula(val, tableMeta, 1)), 1) : Number(handleFormula(val, tableMeta, 1))}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleFormula(val, tableMeta, 1)), 1) : Number(handleFormula(val, tableMeta, 1)) == 0 ? "0.0" : Number(handleFormula(val, tableMeta, 1))}
/>
}
/>
......@@ -2129,7 +2129,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
/>
:
tableMeta.rowData[0] === 2 ?
......@@ -2140,8 +2140,8 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
// value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValue(val, tableMeta)), 1) : Number(handleValue(val, tableMeta))}
// value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValue(val, tableMeta)), 1) : Number(handleValue(val, tableMeta)) == 0 ? "0.0" : Number(handleValue(val, tableMeta))}
/>
</span>
:
......@@ -2179,7 +2179,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleFormula(val, tableMeta, 1)), 1) : Number(handleFormula(val, tableMeta, 1))}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleFormula(val, tableMeta, 1)), 1) : Number(handleFormula(val, tableMeta, 1)) == 0 ? "0.0" : Number(handleFormula(val, tableMeta, 1))}
/>
}
/>
......@@ -2227,7 +2227,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
/>
:
tableMeta.rowData[0] === 2 ?
......@@ -2238,8 +2238,8 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
// value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValue(val, tableMeta)), 1) : Number(handleValue(val, tableMeta))}
// value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValue(val, tableMeta)), 1) : Number(handleValue(val, tableMeta)) == 0 ? "0.0" : Number(handleValue(val, tableMeta))}
/>
</span>
:
......@@ -2277,7 +2277,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleFormula(val, tableMeta, 1)), 1) : Number(handleFormula(val, tableMeta, 1))}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleFormula(val, tableMeta, 1)), 1) : Number(handleFormula(val, tableMeta, 1)) == 0 ? "0.0" : Number(handleFormula(val, tableMeta, 1))}
/>
}
/>
......@@ -2325,7 +2325,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : fixNumber(Number(val), 1)}
value={fixNumber(Number(val), 1) == 0 ? "0.0" : fixNumber(Number(val), 1)}
/>
:
<div style={{ flex: 1 }}>
......@@ -2339,7 +2339,7 @@ export default class ProfitLossROO extends Component {
type="text"
placeholder=""
disabled={true}
value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleTotal(val, tableMeta)), 1) : Number(handleTotal(val, tableMeta))}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleTotal(val, tableMeta)), 1) : Number(handleTotal(val, tableMeta)) == 0 ? "0.0" : Number(handleTotal(val, tableMeta))}
/>
}
/>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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