Commit 58b33e5a authored by Deni Rinaldi's avatar Deni Rinaldi

Merge branch 'rifka' into 'master'

fiscal

See merge request !663
parents f7b39d65 c03f381b
...@@ -7608,83 +7608,93 @@ export default class TaxPlanning extends Component { ...@@ -7608,83 +7608,93 @@ export default class TaxPlanning extends Component {
/> />
</LightTooltip> </LightTooltip>
: :
tableMeta.rowData[3] === 3 ? String(tableMeta.rowData[8]).toLowerCase() === "fiscal correction positive / (negative) year to date" ?
<div style={{ flex: 1 }}> <NumberFormat
<FormControlLabel thousandSeparator={true}
style={{ margin: 0 }} style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
value={value} type="text"
control={ placeholder=""
<NumberFormat disabled={true}
thousandSeparator={true} value={Number(handleTotal(tableMeta, 1)).toFixed(1)}
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} />
type="text" :
placeholder="input" tableMeta.rowData[3] === 3 ?
disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)} <div style={{ flex: 1 }}>
value={Number(handleTotal(tableMeta, 3)).toFixed(1)} <FormControlLabel
/> style={{ margin: 0 }}
} value={value}
/> control={
</div> : <NumberFormat
tableMeta.rowData[3] === 2 ? thousandSeparator={true}
<span style={{ fontSize: 12, textAlign: 'right' }}> style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
<NumberFormat type="text"
thousandSeparator={true} placeholder="input"
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }} disabled={this.props.isApprover == true ? true : ((this.props.lastStatus === 'SUBMIT' || this.props.lastStatus === 'REVISION') && this.props.prevRevision === false && (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') ? false : true)}
type="text" value={Number(handleTotal(tableMeta, 3)).toFixed(1)}
placeholder="" />
disabled={true} }
value={Number(handleTotal(tableMeta, 2)).toFixed(1)}
/>
</span>
:
tableMeta.rowData[3] === 4 ?
null
:
tableMeta.rowData[3] === 6 ?
<NumberFormat
thousandSeparator={true}
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
value={Number(handleTotal(tableMeta, 6)).toFixed(1)}
/> />
: </div> :
tableMeta.rowData[3] === 5 ? tableMeta.rowData[3] === 2 ?
<span style={{ fontSize: 12, textAlign: 'right' }}>
<NumberFormat <NumberFormat
thousandSeparator={true} thousandSeparator={true}
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=""
disabled={true} disabled={true}
value={Number(handleTotal(tableMeta, 5)).toFixed(1)} value={Number(handleTotal(tableMeta, 2)).toFixed(1)}
/> />
</span>
:
tableMeta.rowData[3] === 4 ?
null
: :
tableMeta.rowData[3] === 1 ? tableMeta.rowData[3] === 6 ?
null <NumberFormat
thousandSeparator={true}
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
value={Number(handleTotal(tableMeta, 6)).toFixed(1)}
/>
: :
tableMeta.rowData[3] === 7 ? tableMeta.rowData[3] === 5 ?
(Number(handleTotal(tableMeta, 1)) >= Number(this.state.minValue) && Number(handleTotal(tableMeta, 1)) <= Number(this.state.maxValue)) ? <NumberFormat
<NumberFormat thousandSeparator={true}
thousandSeparator={true} 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="" disabled={true}
disabled={true} value={Number(handleTotal(tableMeta, 5)).toFixed(1)}
value={Number(handleTotal(tableMeta, 1, this.props.periode)).toFixed(1)} />
/> :
<LightTooltip title={this.state.minValue === null ? `Value Should be 0` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow>
<NumberFormat
thousandSeparator={true}
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent', color: 'red' }}
type="text"
placeholder=""
disabled={true}
value={Number(handleTotal(tableMeta, 1, this.props.periode)).toFixed(1)}
/>
</LightTooltip>
: :
null tableMeta.rowData[3] === 1 ?
null
:
tableMeta.rowData[3] === 7 ?
(Number(handleTotal(tableMeta, 1)) >= Number(this.state.minValue) && Number(handleTotal(tableMeta, 1)) <= Number(this.state.maxValue)) ?
<NumberFormat
thousandSeparator={true}
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
value={Number(handleTotal(tableMeta, 1, this.props.periode)).toFixed(1)}
/> :
<LightTooltip title={this.state.minValue === null ? `Value Should be 0` : `Value Should be (${this.state.minValue}) up to (${this.state.maxValue})`} arrow>
<NumberFormat
thousandSeparator={true}
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent', color: 'red' }}
type="text"
placeholder=""
disabled={true}
value={Number(handleTotal(tableMeta, 1, this.props.periode)).toFixed(1)}
/>
</LightTooltip>
:
null
} }
</div> </div>
{/* </div> */} {/* </div> */}
......
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