Commit d9e78fba authored by Riri Novita's avatar Riri Novita

mabok

parent 1eb78136
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -2752,9 +2752,9 @@ export default class BudgetTahunan extends Component { ...@@ -2752,9 +2752,9 @@ export default class BudgetTahunan extends Component {
borderColor: 'transparent' borderColor: 'transparent'
}} }}
onClick={() => onClick={() =>
tableMeta.rowData[5] == true ? // tableMeta.rowData[5] == true ?
this.clickDetail(tableMeta.rowData[1], tableMeta.rowData[4], tableMeta.rowData[2], tableMeta.rowData[3]) this.clickDetail(tableMeta.rowData[1], tableMeta.rowData[4], tableMeta.rowData[2], tableMeta.rowData[3])
: null // : null
} }
> >
{/* {this.state.isApprover == true ? {/* {this.state.isApprover == true ?
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -2016,9 +2016,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2016,9 +2016,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 0)), 1) : Number(handleValueFormula(value, tableMeta, 0))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 0)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 0)), 1)}
disabled disabled
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2037,9 +2037,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2037,9 +2037,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ color: "black", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ color: "black", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
disabled={true} disabled={true}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2077,7 +2077,7 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2077,7 +2077,7 @@ export default class CorporateAnnualTarget extends Component {
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} // style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text" // type="text"
// placeholder="" // placeholder=""
// value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} // value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
// disabled={true} // disabled={true}
// onBlur={(event) => { // onBlur={(event) => {
// // updateValue(event.target.value) // // updateValue(event.target.value)
...@@ -2101,9 +2101,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2101,9 +2101,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 1)), 1) : Number(handleValueFormula(value, tableMeta, 1))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 1)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 1)), 1)}
disabled={true} disabled={true}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2126,9 +2126,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2126,9 +2126,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 1)), 1) : Number(handleValueFormula(value, tableMeta, 1))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 1)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 1)), 1)}
disabled disabled
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2147,9 +2147,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2147,9 +2147,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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)}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2187,7 +2187,7 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2187,7 +2187,7 @@ export default class CorporateAnnualTarget extends Component {
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} // style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text" // type="text"
// placeholder="" // placeholder=""
// value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} // value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
// disabled={true} // disabled={true}
// onBlur={(event) => { // onBlur={(event) => {
// // updateValue(event.target.value) // // updateValue(event.target.value)
...@@ -2211,9 +2211,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2211,9 +2211,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 2)), 1) : Number(handleValueFormula(value, tableMeta, 2))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 2)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 2)), 1)}
disabled={true} disabled={true}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2236,9 +2236,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2236,9 +2236,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 2)), 1) : Number(handleValueFormula(value, tableMeta, 2))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 2)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 2)), 1)}
disabled disabled
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2257,9 +2257,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2257,9 +2257,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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)}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2297,7 +2297,7 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2297,7 +2297,7 @@ export default class CorporateAnnualTarget extends Component {
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} // style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text" // type="text"
// placeholder="" // placeholder=""
// value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} // value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
// disabled={true} // disabled={true}
// onBlur={(event) => { // onBlur={(event) => {
// // updateValue(event.target.value) // // updateValue(event.target.value)
...@@ -2321,9 +2321,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2321,9 +2321,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : Number(handleValueFormula(value, tableMeta, 3))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)}
disabled={true} disabled={true}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2346,9 +2346,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2346,9 +2346,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) : Number(handleValueFormula(value, tableMeta, 3))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 3)), 1)}
disabled disabled
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2367,9 +2367,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2367,9 +2367,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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)}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2408,7 +2408,7 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2408,7 +2408,7 @@ export default class CorporateAnnualTarget extends Component {
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} // style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text" // type="text"
// placeholder="" // placeholder=""
// value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} // value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
// disabled={true} // disabled={true}
// onBlur={(event) => { // onBlur={(event) => {
// // updateValue(event.target.value) // // updateValue(event.target.value)
...@@ -2432,9 +2432,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2432,9 +2432,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 4)), 1) : Number(handleValueFormula(value, tableMeta, 4))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 4)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 4)), 1)}
disabled={true} disabled={true}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2457,9 +2457,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2457,9 +2457,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 4)), 1) : Number(handleValueFormula(value, tableMeta, 4))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 4)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 4)), 1)}
disabled disabled
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2478,9 +2478,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2478,9 +2478,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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)}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2519,7 +2519,7 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2519,7 +2519,7 @@ export default class CorporateAnnualTarget extends Component {
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} // style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text" // type="text"
// placeholder="" // placeholder=""
// value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} // value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
// disabled={true} // disabled={true}
// onBlur={(event) => { // onBlur={(event) => {
// // updateValue(event.target.value) // // updateValue(event.target.value)
...@@ -2543,9 +2543,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2543,9 +2543,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 5)), 1) : Number(handleValueFormula(value, tableMeta, 5))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 5)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 5)), 1)}
disabled={true} disabled={true}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2568,9 +2568,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2568,9 +2568,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 5)), 1) : Number(handleValueFormula(value, tableMeta, 5))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 5)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 5)), 1)}
disabled disabled
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2589,9 +2589,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2589,9 +2589,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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)}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2630,7 +2630,7 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2630,7 +2630,7 @@ export default class CorporateAnnualTarget extends Component {
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} // style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text" // type="text"
// placeholder="" // placeholder=""
// value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} // value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
// disabled={true} // disabled={true}
// onBlur={(event) => { // onBlur={(event) => {
// // updateValue(event.target.value) // // updateValue(event.target.value)
...@@ -2654,9 +2654,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2654,9 +2654,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 6)), 1) : Number(handleValueFormula(value, tableMeta, 6))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 6)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 6)), 1)}
disabled={true} disabled={true}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2679,9 +2679,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2679,9 +2679,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 6)), 1) : Number(handleValueFormula(value, tableMeta, 6))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 6)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 6)), 1)}
disabled disabled
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2700,9 +2700,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2700,9 +2700,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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)}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2741,7 +2741,7 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2741,7 +2741,7 @@ export default class CorporateAnnualTarget extends Component {
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} // style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text" // type="text"
// placeholder="" // placeholder=""
// value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} // value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
// disabled={true} // disabled={true}
// onBlur={(event) => { // onBlur={(event) => {
// // updateValue(event.target.value) // // updateValue(event.target.value)
...@@ -2765,9 +2765,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2765,9 +2765,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 7)), 1) : Number(handleValueFormula(value, tableMeta, 7))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 7)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 7)), 1)}
disabled={true} disabled={true}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2790,9 +2790,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2790,9 +2790,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 7)), 1) : Number(handleValueFormula(value, tableMeta, 7))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 7)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 7)), 1)}
disabled disabled
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2811,9 +2811,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2811,9 +2811,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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)}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2852,7 +2852,7 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2852,7 +2852,7 @@ export default class CorporateAnnualTarget extends Component {
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} // style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text" // type="text"
// placeholder="" // placeholder=""
// value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} // value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
// disabled={true} // disabled={true}
// onBlur={(event) => { // onBlur={(event) => {
// // updateValue(event.target.value) // // updateValue(event.target.value)
...@@ -2876,9 +2876,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2876,9 +2876,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 8)), 1) : Number(handleValueFormula(value, tableMeta, 8))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 8)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 8)), 1)}
disabled={true} disabled={true}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2901,9 +2901,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2901,9 +2901,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 8)), 1) : Number(handleValueFormula(value, tableMeta, 8))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 8)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 8)), 1)}
disabled disabled
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2922,9 +2922,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2922,9 +2922,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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)}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2963,7 +2963,7 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2963,7 +2963,7 @@ export default class CorporateAnnualTarget extends Component {
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} // style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text" // type="text"
// placeholder="" // placeholder=""
// value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} // value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
// disabled={true} // disabled={true}
// onBlur={(event) => { // onBlur={(event) => {
// // updateValue(event.target.value) // // updateValue(event.target.value)
...@@ -2987,9 +2987,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -2987,9 +2987,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 9)), 1) : Number(handleValueFormula(value, tableMeta, 9))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 9)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 9)), 1)}
disabled={true} disabled={true}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -3012,9 +3012,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3012,9 +3012,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 9)), 1) : Number(handleValueFormula(value, tableMeta, 9))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 9)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 9)), 1)}
disabled disabled
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -3033,9 +3033,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3033,9 +3033,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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)}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -3074,7 +3074,7 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3074,7 +3074,7 @@ export default class CorporateAnnualTarget extends Component {
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} // style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text" // type="text"
// placeholder="" // placeholder=""
// value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} // value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
// disabled={true} // disabled={true}
// onBlur={(event) => { // onBlur={(event) => {
// // updateValue(event.target.value) // // updateValue(event.target.value)
...@@ -3098,9 +3098,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3098,9 +3098,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 10)), 1) : Number(handleValueFormula(value, tableMeta, 10))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 10)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 10)), 1)}
disabled={true} disabled={true}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -3123,9 +3123,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3123,9 +3123,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 10)), 1) : Number(handleValueFormula(value, tableMeta, 10))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 10)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 10)), 1)}
disabled disabled
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -3144,9 +3144,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3144,9 +3144,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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)}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -3185,7 +3185,7 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3185,7 +3185,7 @@ export default class CorporateAnnualTarget extends Component {
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} // style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text" // type="text"
// placeholder="" // placeholder=""
// value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} // value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
// disabled={true} // disabled={true}
// onBlur={(event) => { // onBlur={(event) => {
// // updateValue(event.target.value) // // updateValue(event.target.value)
...@@ -3209,9 +3209,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3209,9 +3209,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 11)), 1) : Number(handleValueFormula(value, tableMeta, 11))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 11)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 11)), 1)}
disabled={true} disabled={true}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -3234,9 +3234,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3234,9 +3234,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 11)), 1) : Number(handleValueFormula(value, tableMeta, 11))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 11)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 11)), 1)}
disabled disabled
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -3255,9 +3255,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3255,9 +3255,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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)}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -3296,7 +3296,7 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3296,7 +3296,7 @@ export default class CorporateAnnualTarget extends Component {
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} // style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text" // type="text"
// placeholder="" // placeholder=""
// value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} // value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
// disabled={true} // disabled={true}
// onBlur={(event) => { // onBlur={(event) => {
// // updateValue(event.target.value) // // updateValue(event.target.value)
...@@ -3320,9 +3320,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3320,9 +3320,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 12)), 1) : Number(handleValueFormula(value, tableMeta, 12))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 12)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 12)), 1)}
disabled={true} disabled={true}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -3345,9 +3345,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3345,9 +3345,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 12)), 1) : Number(handleValueFormula(value, tableMeta, 12))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 12)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 12)), 1)}
disabled disabled
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -3366,9 +3366,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3366,9 +3366,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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)}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -3432,9 +3432,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3432,9 +3432,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueForecast(value, tableMeta, this.props.periode)), 1) : Number(handleValueForecast(value, tableMeta, this.props.periode))} value={fixNumber(Number(handleValueForecast(value, tableMeta, this.props.periode)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueForecast(value, tableMeta, this.props.periode)), 1)}
disabled={true} disabled={true}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -3457,9 +3457,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3457,9 +3457,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 13)), 1) : Number(handleValueFormula(value, tableMeta, 13))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 13)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 13)), 1)}
disabled disabled
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -3478,9 +3478,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3478,9 +3478,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleTotal(tableMeta)), 1) : Number(handleTotal(tableMeta))} value={fixNumber(Number(handleTotal(tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleTotal(tableMeta)), 1)}
disabled={true} disabled={true}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -3519,7 +3519,7 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3519,7 +3519,7 @@ export default class CorporateAnnualTarget extends Component {
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} // style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text" // type="text"
// placeholder="" // placeholder=""
// value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} // value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
// disabled={true} // disabled={true}
// onBlur={(event) => { // onBlur={(event) => {
// // updateValue(event.target.value) // // updateValue(event.target.value)
...@@ -3543,9 +3543,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3543,9 +3543,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueForecast(value, tableMeta, Number(this.props.periode) + 1)), 1) : Number(handleValueForecast(value, tableMeta, Number(this.props.periode) + 1))} value={fixNumber(Number(handleValueForecast(value, tableMeta, Number(this.props.periode) + 1)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueForecast(value, tableMeta, Number(this.props.periode) + 1)), 1)}
disabled={true} disabled={true}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -3568,9 +3568,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3568,9 +3568,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 14)), 1) : Number(handleValueFormula(value, tableMeta, 14))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 14)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 14)), 1)}
disabled disabled
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -3589,9 +3589,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3589,9 +3589,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ color: '#5198ea', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ color: '#5198ea', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
disabled={false} disabled={false}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -3630,7 +3630,7 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3630,7 +3630,7 @@ export default class CorporateAnnualTarget extends Component {
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} // style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text" // type="text"
// placeholder="" // placeholder=""
// value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} // value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
// disabled={true} // disabled={true}
// onBlur={(event) => { // onBlur={(event) => {
// // updateValue(event.target.value) // // updateValue(event.target.value)
...@@ -3654,9 +3654,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3654,9 +3654,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueForecast(value, tableMeta, Number(this.props.periode) + 2)), 1) : Number(handleValueForecast(value, tableMeta, Number(this.props.periode) + 2))} value={fixNumber(Number(handleValueForecast(value, tableMeta, Number(this.props.periode) + 2)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueForecast(value, tableMeta, Number(this.props.periode) + 2)), 1)}
disabled={true} disabled={true}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -3679,9 +3679,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3679,9 +3679,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta, 16)), 1) : Number(handleValueFormula(value, tableMeta, 16))} value={fixNumber(Number(handleValueFormula(value, tableMeta, 16)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta, 16)), 1)}
disabled disabled
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -3700,9 +3700,9 @@ export default class CorporateAnnualTarget extends Component { ...@@ -3700,9 +3700,9 @@ export default class CorporateAnnualTarget extends Component {
style={{ color: '#5198ea', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} style={{ color: '#5198ea', fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text" type="text"
placeholder="" placeholder=""
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
disabled={false} disabled={false}
decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16} //decimalScale={this.props.defaultCurrency.id == 1 ? 1 : 16}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
......
...@@ -1016,7 +1016,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1016,7 +1016,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
// value={Number(handleBfr(value, tableMeta)).toFixed(1)} // value={Number(handleBfr(value, tableMeta)).toFixed(1)}
/> />
} }
...@@ -1034,7 +1034,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1034,7 +1034,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -1073,7 +1073,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1073,7 +1073,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -1089,7 +1089,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1089,7 +1089,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -1107,7 +1107,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1107,7 +1107,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
onBlur={(event) => { onBlur={(event) => {
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
// // console.log(dataTable2) // // console.log(dataTable2)
...@@ -1124,7 +1124,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1124,7 +1124,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
</span> </span>
: :
...@@ -1138,7 +1138,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1138,7 +1138,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={this.props.isApprover ? 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') && String(tableMeta.rowData[5]).toLocaleLowerCase() == 'beginning balance' ? false : true)} disabled={this.props.isApprover ? 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') && String(tableMeta.rowData[5]).toLocaleLowerCase() == 'beginning balance' ? false : true)}
value={this.props.defaultCurrency.id == 1 ? (String(tableMeta.rowData[5]).toLocaleLowerCase() == 'beginning balance' ? fixNumber(Number(value.value), 1) : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)) : (String(tableMeta.rowData[5]).toLocaleLowerCase() == 'beginning balance' ? Number(value.value) : Number(handleValueFormula(value, tableMeta)))} value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'beginning balance' ? (fixNumber(Number(value.value), 1) == 0 ? "0.0" : fixNumber(Number(value.value), 1)) : (fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1))}
onBlur={(event) => { onBlur={(event) => {
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
// // console.log(dataTable2) // // console.log(dataTable2)
...@@ -1183,7 +1183,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1183,7 +1183,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -1199,7 +1199,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1199,7 +1199,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -1217,7 +1217,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1217,7 +1217,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -1235,7 +1235,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1235,7 +1235,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
</span> </span>
: :
...@@ -1249,7 +1249,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1249,7 +1249,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
: :
tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 1 ?
...@@ -1290,7 +1290,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1290,7 +1290,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -1306,7 +1306,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1306,7 +1306,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -1324,7 +1324,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1324,7 +1324,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -1342,7 +1342,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1342,7 +1342,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
</span> </span>
: :
...@@ -1356,7 +1356,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1356,7 +1356,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
: :
tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 1 ?
...@@ -1397,7 +1397,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1397,7 +1397,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -1413,7 +1413,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1413,7 +1413,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -1431,7 +1431,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1431,7 +1431,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -1449,7 +1449,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1449,7 +1449,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
</span> </span>
: :
...@@ -1463,7 +1463,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1463,7 +1463,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
: :
tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 1 ?
...@@ -1504,7 +1504,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1504,7 +1504,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -1520,7 +1520,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1520,7 +1520,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -1538,7 +1538,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1538,7 +1538,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -1556,7 +1556,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1556,7 +1556,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
</span> </span>
: :
...@@ -1570,7 +1570,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1570,7 +1570,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
: :
tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 1 ?
...@@ -1611,7 +1611,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1611,7 +1611,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -1627,7 +1627,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1627,7 +1627,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -1645,7 +1645,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1645,7 +1645,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -1663,7 +1663,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1663,7 +1663,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
</span> </span>
: :
...@@ -1677,7 +1677,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1677,7 +1677,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
: :
tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 1 ?
...@@ -1718,7 +1718,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1718,7 +1718,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -1734,7 +1734,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1734,7 +1734,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -1752,7 +1752,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1752,7 +1752,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -1770,7 +1770,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1770,7 +1770,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
</span> </span>
: :
...@@ -1784,7 +1784,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1784,7 +1784,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
: :
tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 1 ?
...@@ -1825,7 +1825,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1825,7 +1825,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -1841,7 +1841,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1841,7 +1841,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -1859,7 +1859,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1859,7 +1859,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -1877,7 +1877,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1877,7 +1877,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
</span> </span>
: :
...@@ -1891,7 +1891,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1891,7 +1891,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
: :
tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 1 ?
...@@ -1932,7 +1932,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1932,7 +1932,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -1948,7 +1948,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1948,7 +1948,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -1966,7 +1966,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1966,7 +1966,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -1984,7 +1984,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1984,7 +1984,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
</span> </span>
: :
...@@ -1998,7 +1998,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -1998,7 +1998,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
: :
tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 1 ?
...@@ -2039,7 +2039,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2039,7 +2039,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -2055,7 +2055,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2055,7 +2055,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -2073,7 +2073,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2073,7 +2073,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2091,7 +2091,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2091,7 +2091,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
</span> </span>
: :
...@@ -2105,7 +2105,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2105,7 +2105,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
: :
tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 1 ?
...@@ -2146,7 +2146,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2146,7 +2146,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -2162,7 +2162,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2162,7 +2162,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -2180,7 +2180,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2180,7 +2180,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2198,7 +2198,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2198,7 +2198,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
</span> </span>
: :
...@@ -2212,7 +2212,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2212,7 +2212,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
: :
tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 1 ?
...@@ -2253,7 +2253,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2253,7 +2253,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -2269,7 +2269,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2269,7 +2269,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -2287,7 +2287,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2287,7 +2287,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2305,7 +2305,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2305,7 +2305,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
</span> </span>
: :
...@@ -2319,7 +2319,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2319,7 +2319,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(handleValueFormula(value, tableMeta)), 1) : Number(handleValueFormula(value, tableMeta)).toFixed(1)} value={fixNumber(Number(handleValueFormula(value, tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleValueFormula(value, tableMeta)), 1)}
/> />
: :
tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 1 ?
...@@ -2360,7 +2360,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2360,7 +2360,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={Number(handleTotal(tableMeta)).toFixed(1)} value={fixNumber(Number(handleTotal(tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleTotal(tableMeta)), 1)}
/> />
} }
/> />
...@@ -2376,7 +2376,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2376,7 +2376,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -2394,7 +2394,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2394,7 +2394,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={Number(handleTotal(tableMeta)).toFixed(1)} value={fixNumber(Number(handleTotal(tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleTotal(tableMeta)), 1)}
// onBlur={(event) => { // onBlur={(event) => {
// // updateValue(event.target.value) // // updateValue(event.target.value)
// handleChange(event.target.value, tableMeta) // handleChange(event.target.value, tableMeta)
...@@ -2412,7 +2412,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2412,7 +2412,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={Number(handleTotal(tableMeta)).toFixed(1)} value={fixNumber(Number(handleTotal(tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleTotal(tableMeta)), 1)}
/> />
</span> </span>
: :
...@@ -2426,7 +2426,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2426,7 +2426,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={Number(handleTotal(tableMeta)).toFixed(1)} value={fixNumber(Number(handleTotal(tableMeta)), 1) == 0 ? "0.0" : fixNumber(Number(handleTotal(tableMeta)), 1)}
/> />
: :
tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 1 ?
...@@ -2467,7 +2467,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2467,7 +2467,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -2483,7 +2483,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2483,7 +2483,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -2501,7 +2501,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2501,7 +2501,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2519,7 +2519,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2519,7 +2519,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={Number(handleForecast(tableMeta, `${Number(this.props.periode) + 1}`)).toFixed(1)} value={fixNumber(Number(handleForecast(tableMeta, `${Number(this.props.periode) + 1}`)), 1) == 0 ? "0.0" : fixNumber(Number(handleForecast(tableMeta, `${Number(this.props.periode) + 1}`)), 1)}
/> />
</span> </span>
: :
...@@ -2533,7 +2533,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2533,7 +2533,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={Number(handleForecast(tableMeta, `${Number(this.props.periode) + 1}`)).toFixed(1)} value={fixNumber(Number(handleForecast(tableMeta, `${Number(this.props.periode) + 1}`)), 1) == 0 ? "0.0" : fixNumber(Number(handleForecast(tableMeta, `${Number(this.props.periode) + 1}`)), 1)}
/> />
: :
tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 1 ?
...@@ -2574,7 +2574,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2574,7 +2574,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -2590,7 +2590,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2590,7 +2590,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
/> />
} }
/> />
...@@ -2608,7 +2608,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2608,7 +2608,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={this.props.isApprover ? 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)} disabled={this.props.isApprover ? 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={this.props.defaultCurrency.id == 1 ? fixNumber(Number(value), 1) : Number(value)} value={fixNumber(Number(value), 1) == 0 ? "0.0" : fixNumber(Number(value), 1)}
onBlur={(event) => { onBlur={(event) => {
// updateValue(event.target.value) // updateValue(event.target.value)
handleChange(event.target.value, tableMeta) handleChange(event.target.value, tableMeta)
...@@ -2626,7 +2626,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2626,7 +2626,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={Number(handleForecast(tableMeta, `${Number(this.props.periode) + 2}`)).toFixed(1)} value={fixNumber(Number(handleForecast(tableMeta, `${Number(this.props.periode) + 2}`)), 1) == 0 ? "0.0" : fixNumber(Number(handleForecast(tableMeta, `${Number(this.props.periode) + 2}`)), 1)}
/> />
</span> </span>
: :
...@@ -2640,7 +2640,7 @@ export default class FixedAssetsMovement extends Component { ...@@ -2640,7 +2640,7 @@ export default class FixedAssetsMovement extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={Number(handleForecast(tableMeta, `${Number(this.props.periode) + 2}`)).toFixed(1)} value={fixNumber(Number(handleForecast(tableMeta, `${Number(this.props.periode) + 2}`)), 1) == 0 ? "0.0" : fixNumber(Number(handleForecast(tableMeta, `${Number(this.props.periode) + 2}`)), 1)}
/> />
: :
tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 1 ?
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -882,12 +882,16 @@ export default class TaxPlanningMR extends Component { ...@@ -882,12 +882,16 @@ export default class TaxPlanningMR extends Component {
console.log(dataTable2) console.log(dataTable2)
} }
const handleTotal = (value, tableMeta, dex) => { const handleTotal = (value, tableMeta, dex) => {
// console.log(tableMeta)
let total = 0 let total = 0
dataTable2[tableMeta.rowIndex].map((item, index) => { dataTable2[tableMeta.rowIndex].map((item, index) => {
if (index == 9) { if (index == 9) {
let valItemTBF = item.tbf == undefined || item.tbf == "" || item.tbf == "undefined" ? 0.0 : item.tbf let valItemTBF = item.tbf == undefined || item.tbf == "" || item.tbf == "undefined" ? 0.0 : item.tbf
total = Number(tableMeta.rowData[16]) + Number(valItemTBF) total = Number(tableMeta.rowData[16]) + Number(valItemTBF)
if (tableMeta.rowData[8] == "Revenue") {
console.log(valItemTBF);
console.log(Number(tableMeta.rowData[16]));
console.log(total);
}
} }
}) })
...@@ -897,7 +901,7 @@ export default class TaxPlanningMR extends Component { ...@@ -897,7 +901,7 @@ export default class TaxPlanningMR extends Component {
const handleParent = (tableMeta, type) => { const handleParent = (tableMeta, type) => {
let total = 0 let total = 0
console.log("tes parent"); // console.log("tes parent");
dataTable2.map((item, index) => { dataTable2.map((item, index) => {
if (item[5] == tableMeta.rowData[4]) { if (item[5] == tableMeta.rowData[4]) {
total += Number(type == 1 ? total += Number(type == 1 ?
...@@ -1443,7 +1447,7 @@ export default class TaxPlanningMR extends Component { ...@@ -1443,7 +1447,7 @@ export default class TaxPlanningMR extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={Number(tableMeta.rowData[16]) == 0 ? "0.0" : this.props.defaultCurrency.id == 1 ? (String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(handleTotal(value, tableMeta, 4)), 2) : fixNumber(Number(handleTotal(value, tableMeta, 4)), 1)) : (String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(handleTotal(value, tableMeta, 4)) : Number(handleTotal(value, tableMeta, 4)))} value={this.props.defaultCurrency.id == 1 ? (String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? fixNumber(Number(handleTotal(value, tableMeta, 4)), 2) : fixNumber(Number(handleTotal(value, tableMeta, 4)), 1)) : (String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(handleTotal(value, tableMeta, 4)) : Number(handleTotal(value, tableMeta, 4)))}
/> />
} }
/> />
......
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