Commit 1a09db26 authored by Riri Novita's avatar Riri Novita

Merge branch 'dev/riri' into 'ENV-DEV'

Update RO

See merge request !2058
parents 3a7a62e3 8c46af3a
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 { ...@@ -1045,7 +1045,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 ? // tableMeta.rowData[0] === 2 ?
...@@ -1056,7 +1056,7 @@ export default class ProfitLossROO extends Component { ...@@ -1056,7 +1056,7 @@ export default class ProfitLossROO extends Component {
// type="text" // type="text"
// placeholder="" // placeholder=""
// disabled={true} // 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))} // value={Number(val) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValue(val, tableMeta)), 1) : Number(handleValue(val, tableMeta))}
// /> // />
// </span> // </span>
...@@ -1074,7 +1074,7 @@ export default class ProfitLossROO extends Component { ...@@ -1074,7 +1074,7 @@ export default class ProfitLossROO extends Component {
// placeholder="" // placeholder=""
// // disabled={this.props.isApprover? true : (this.state.get_for == 'view'? true : false)} // // disabled={this.props.isApprover? true : (this.state.get_for == 'view'? true : false)}
// disabled={true} // 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) => { // onBlur={(event) => {
// handleChange(event.target.value, tableMeta) // handleChange(event.target.value, tableMeta)
// }} // }}
...@@ -1112,7 +1112,7 @@ export default class ProfitLossROO extends Component { ...@@ -1112,7 +1112,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 { ...@@ -1143,7 +1143,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 ? // tableMeta.rowData[0] === 2 ?
...@@ -1154,7 +1154,7 @@ export default class ProfitLossROO extends Component { ...@@ -1154,7 +1154,7 @@ export default class ProfitLossROO extends Component {
// type="text" // type="text"
// placeholder="" // placeholder=""
// disabled={true} // 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)} // value={val === "0" ? "" : Number(handleValue(val, tableMeta)).toFixed(1)}
// /> // />
// </span> // </span>
...@@ -1210,7 +1210,7 @@ export default class ProfitLossROO extends Component { ...@@ -1210,7 +1210,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 { ...@@ -1241,7 +1241,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 ? // tableMeta.rowData[0] === 2 ?
...@@ -1252,7 +1252,7 @@ export default class ProfitLossROO extends Component { ...@@ -1252,7 +1252,7 @@ export default class ProfitLossROO extends Component {
// type="text" // type="text"
// placeholder="" // placeholder=""
// disabled={true} // 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)} // value={val === "0" ? "" : Number(handleValue(val, tableMeta)).toFixed(1)}
// /> // />
// </span> // </span>
...@@ -1308,7 +1308,7 @@ export default class ProfitLossROO extends Component { ...@@ -1308,7 +1308,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 { ...@@ -1339,7 +1339,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 ? // tableMeta.rowData[0] === 2 ?
...@@ -1350,7 +1350,7 @@ export default class ProfitLossROO extends Component { ...@@ -1350,7 +1350,7 @@ export default class ProfitLossROO extends Component {
// type="text" // type="text"
// placeholder="" // placeholder=""
// disabled={true} // 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)} // value={val === "0" ? "" : Number(handleValue(val, tableMeta)).toFixed(1)}
// /> // />
// </span> // </span>
...@@ -1406,7 +1406,7 @@ export default class ProfitLossROO extends Component { ...@@ -1406,7 +1406,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 { ...@@ -1437,7 +1437,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 ? tableMeta.rowData[0] === 2 ?
...@@ -1449,7 +1449,7 @@ export default class ProfitLossROO extends Component { ...@@ -1449,7 +1449,7 @@ export default class ProfitLossROO extends Component {
placeholder="" placeholder=""
disabled={true} disabled={true}
// value={Number(val).toFixed(1)} // 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> </span>
: :
...@@ -1487,7 +1487,7 @@ export default class ProfitLossROO extends Component { ...@@ -1487,7 +1487,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 { ...@@ -1504,7 +1504,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 { ...@@ -1535,7 +1535,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 ? tableMeta.rowData[0] === 2 ?
...@@ -1546,8 +1546,8 @@ export default class ProfitLossROO extends Component { ...@@ -1546,8 +1546,8 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 ? (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> </span>
: :
...@@ -1585,7 +1585,7 @@ export default class ProfitLossROO extends Component { ...@@ -1585,7 +1585,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 { ...@@ -1602,7 +1602,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 { ...@@ -1633,7 +1633,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 ? tableMeta.rowData[0] === 2 ?
...@@ -1644,8 +1644,8 @@ export default class ProfitLossROO extends Component { ...@@ -1644,8 +1644,8 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 ? (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> </span>
: :
...@@ -1683,7 +1683,7 @@ export default class ProfitLossROO extends Component { ...@@ -1683,7 +1683,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 { ...@@ -1700,7 +1700,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 { ...@@ -1731,7 +1731,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 ? tableMeta.rowData[0] === 2 ?
...@@ -1742,8 +1742,8 @@ export default class ProfitLossROO extends Component { ...@@ -1742,8 +1742,8 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 ? (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={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> </span>
: :
...@@ -1781,7 +1781,7 @@ export default class ProfitLossROO extends Component { ...@@ -1781,7 +1781,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 { ...@@ -1830,7 +1830,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 ? tableMeta.rowData[0] === 2 ?
...@@ -1841,8 +1841,8 @@ export default class ProfitLossROO extends Component { ...@@ -1841,8 +1841,8 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 ? (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={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> </span>
: :
...@@ -1880,7 +1880,7 @@ export default class ProfitLossROO extends Component { ...@@ -1880,7 +1880,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 { ...@@ -1929,7 +1929,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 ? tableMeta.rowData[0] === 2 ?
...@@ -1940,8 +1940,8 @@ export default class ProfitLossROO extends Component { ...@@ -1940,8 +1940,8 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 ? (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={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> </span>
: :
...@@ -1979,7 +1979,7 @@ export default class ProfitLossROO extends Component { ...@@ -1979,7 +1979,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 { ...@@ -2029,7 +2029,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 ? tableMeta.rowData[0] === 2 ?
...@@ -2040,8 +2040,8 @@ export default class ProfitLossROO extends Component { ...@@ -2040,8 +2040,8 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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))} value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValue(val, tableMeta)), 1) : Number(handleValue(val, tableMeta)) == 0 ? "0.0" : Number(handleValue(val, tableMeta))}
/> />
</span> </span>
: :
...@@ -2079,7 +2079,7 @@ export default class ProfitLossROO extends Component { ...@@ -2079,7 +2079,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 { ...@@ -2129,7 +2129,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 ? tableMeta.rowData[0] === 2 ?
...@@ -2140,8 +2140,8 @@ export default class ProfitLossROO extends Component { ...@@ -2140,8 +2140,8 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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))} value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValue(val, tableMeta)), 1) : Number(handleValue(val, tableMeta)) == 0 ? "0.0" : Number(handleValue(val, tableMeta))}
/> />
</span> </span>
: :
...@@ -2179,7 +2179,7 @@ export default class ProfitLossROO extends Component { ...@@ -2179,7 +2179,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 { ...@@ -2227,7 +2227,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 ? tableMeta.rowData[0] === 2 ?
...@@ -2238,8 +2238,8 @@ export default class ProfitLossROO extends Component { ...@@ -2238,8 +2238,8 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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))} value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValue(val, tableMeta)), 1) : Number(handleValue(val, tableMeta)) == 0 ? "0.0" : Number(handleValue(val, tableMeta))}
/> />
</span> </span>
: :
...@@ -2277,7 +2277,7 @@ export default class ProfitLossROO extends Component { ...@@ -2277,7 +2277,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 { ...@@ -2325,7 +2325,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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 }}> <div style={{ flex: 1 }}>
...@@ -2339,7 +2339,7 @@ export default class ProfitLossROO extends Component { ...@@ -2339,7 +2339,7 @@ export default class ProfitLossROO extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} 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