Commit 57b26a9a authored by rifkaki's avatar rifkaki

view ro tp

parent a17c50f4
...@@ -66,7 +66,49 @@ export default class TaxPlanning extends Component { ...@@ -66,7 +66,49 @@ export default class TaxPlanning extends Component {
componentDidMount() { componentDidMount() {
// this.getLatestUpdate() // this.getLatestUpdate()
this.getSettingControl() this.getSettingControl()
this.handleViewOnly()
console.log(this.props.quarter); console.log(this.props.quarter);
console.log(this.state.get_for);
}
handleViewOnly() {
let checkApprover = false
let checkLastStatus = false
let checkStatus = false
let checkPrevRev = false
if (this.props.isApprover) {
checkApprover = true
} else {
checkApprover = false
}
if (this.props.lastStatus == 'SUBMIT' || this.props.lastStatus == 'REVISION') {
checkLastStatus = true
} else {
checkLastStatus = false
}
if (this.props.prevRevision) {
checkPrevRev = true
} else {
checkPrevRev = false
}
if (this.props.status === 'revision' || this.props.status === 'not-yet' || this.props.status === 'draft' || this.props.status === 'submitted') {
checkStatus = true
} else {
checkStatus = false
}
// this.setState({viewOnly: !checkApprover && checkLastStatus && checkStatus && checkPrevRev})
}
handleGetFor(type) {
this.setState({get_for: type}, () => {
this.getSettingControl()
this.getLatestUpdate()
})
} }
getSettingControl() { getSettingControl() {
...@@ -238,15 +280,6 @@ export default class TaxPlanning extends Component { ...@@ -238,15 +280,6 @@ export default class TaxPlanning extends Component {
}) })
} }
handleGetFor(type) {
console.log(type)
this.setState({get_for: type}, () => {
// this.getSettingControl()
// this.getLatestUpdate()
this.getItemHierarki()
})
}
handleValue(data) { handleValue(data) {
let total = 0 let total = 0
this.state.dataTable.map((item, index) => { this.state.dataTable.map((item, index) => {
...@@ -1412,15 +1445,23 @@ export default class TaxPlanning extends Component { ...@@ -1412,15 +1445,23 @@ export default class TaxPlanning extends Component {
tableMeta.rowData[3] === 4 || tableMeta.rowData[3] === 1 ? tableMeta.rowData[3] === 4 || tableMeta.rowData[3] === 1 ?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.tbf}
control={
<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(value.tbf).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.tbf).toFixed(2) : Number(value.tbf).toFixed(1)}
/>
}
/> />
</div>
: :
tableMeta.rowData[3] === 3 ? tableMeta.rowData[3] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -1556,15 +1597,23 @@ export default class TaxPlanning extends Component { ...@@ -1556,15 +1597,23 @@ export default class TaxPlanning extends Component {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.tbf}
control={
<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(value.tbf).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.tbf).toFixed(2) : Number(value.tbf).toFixed(1)}
/> />
}
/>
</div>
: :
tableMeta.rowData[3] === 3 ? tableMeta.rowData[3] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -1700,15 +1749,23 @@ export default class TaxPlanning extends Component { ...@@ -1700,15 +1749,23 @@ export default class TaxPlanning extends Component {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.tbf}
control={
<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(value.tbf).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.tbf).toFixed(2) : Number(value.tbf).toFixed(1)}
/> />
}
/>
</div>
: :
tableMeta.rowData[3] === 3 ? tableMeta.rowData[3] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -1849,15 +1906,23 @@ export default class TaxPlanning extends Component { ...@@ -1849,15 +1906,23 @@ export default class TaxPlanning extends Component {
tableMeta.rowData[1] === 4 || tableMeta.rowData[1] === 1? tableMeta.rowData[1] === 4 || tableMeta.rowData[1] === 1?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.tbc}
control={
<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(value.tbc).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.tbc).toFixed(2) : Number(value.tbc).toFixed(1)}
/>
}
/> />
</div>
: :
tableMeta.rowData[1] === 3 ? tableMeta.rowData[1] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -1966,15 +2031,23 @@ export default class TaxPlanning extends Component { ...@@ -1966,15 +2031,23 @@ export default class TaxPlanning extends Component {
tableMeta.rowData[2] === 4 || tableMeta.rowData[2] === 1? tableMeta.rowData[2] === 4 || tableMeta.rowData[2] === 1?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.fcp}
control={
<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(value.fcp).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.fcp).toFixed(2) : Number(value.fcp).toFixed(1)}
/>
}
/> />
</div>
: :
tableMeta.rowData[2] === 3 ? tableMeta.rowData[2] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -2103,15 +2176,23 @@ export default class TaxPlanning extends Component { ...@@ -2103,15 +2176,23 @@ export default class TaxPlanning extends Component {
tableMeta.rowData[3] === 4 || tableMeta.rowData[3] === 1 ? tableMeta.rowData[3] === 4 || tableMeta.rowData[3] === 1 ?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.tbf}
control={
<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(value.tbf).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.tbf).toFixed(2) : Number(value.tbf).toFixed(1)}
/>
}
/> />
</div>
: :
tableMeta.rowData[3] === 3 ? tableMeta.rowData[3] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -2250,18 +2331,26 @@ export default class TaxPlanning extends Component { ...@@ -2250,18 +2331,26 @@ export default class TaxPlanning extends Component {
<div className="col-1"> <div className="col-1">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1? tableMeta.rowData[1] === 4 || tableMeta.rowData[1] === 1?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.tbc}
control={
<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(value.tbc).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.tbc).toFixed(2) : Number(value.tbc).toFixed(1)}
/> />
}
/>
</div>
: :
tableMeta.rowData[1] === 3 ? tableMeta.rowData[1] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -2367,18 +2456,26 @@ export default class TaxPlanning extends Component { ...@@ -2367,18 +2456,26 @@ export default class TaxPlanning extends Component {
<div className="col-2"> <div className="col-2">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1? tableMeta.rowData[2] === 4 || tableMeta.rowData[2] === 1?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.fcp}
control={
<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(value.fcp).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.fcp).toFixed(2) : Number(value.fcp).toFixed(1)}
/>
}
/> />
</div>
: :
tableMeta.rowData[2] === 3 ? tableMeta.rowData[2] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -2484,18 +2581,26 @@ export default class TaxPlanning extends Component { ...@@ -2484,18 +2581,26 @@ export default class TaxPlanning extends Component {
<div className="col-3"> <div className="col-3">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ? tableMeta.rowData[3] === 4 || tableMeta.rowData[3] === 1 ?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.tbf}
control={
<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(value.tbf).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.tbf).toFixed(2) : Number(value.tbf).toFixed(1)}
/> />
}
/>
</div>
: :
tableMeta.rowData[3] === 3 ? tableMeta.rowData[3] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -2634,18 +2739,26 @@ export default class TaxPlanning extends Component { ...@@ -2634,18 +2739,26 @@ export default class TaxPlanning extends Component {
<div className="col-1"> <div className="col-1">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1? tableMeta.rowData[1] === 4 || tableMeta.rowData[1] === 1?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.tbc}
control={
<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(value.tbc).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.tbc).toFixed(2) : Number(value.tbc).toFixed(1)}
/>
}
/> />
</div>
: :
tableMeta.rowData[1] === 3 ? tableMeta.rowData[1] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -2751,18 +2864,26 @@ export default class TaxPlanning extends Component { ...@@ -2751,18 +2864,26 @@ export default class TaxPlanning extends Component {
<div className="col-2"> <div className="col-2">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1? tableMeta.rowData[2] === 4 || tableMeta.rowData[2] === 1?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.fcp}
control={
<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(value.fcp).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.fcp).toFixed(2) : Number(value.fcp).toFixed(1)}
/> />
}
/>
</div>
: :
tableMeta.rowData[2] === 3 ? tableMeta.rowData[2] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -2868,18 +2989,26 @@ export default class TaxPlanning extends Component { ...@@ -2868,18 +2989,26 @@ export default class TaxPlanning extends Component {
<div className="col-3"> <div className="col-3">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ? tableMeta.rowData[3] === 4 || tableMeta.rowData[3] === 1 ?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.tbf}
control={
<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(value.tbf).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.tbf).toFixed(2) : Number(value.tbf).toFixed(1)}
/> />
}
/>
</div>
: :
tableMeta.rowData[3] === 3 ? tableMeta.rowData[3] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -3018,18 +3147,26 @@ export default class TaxPlanning extends Component { ...@@ -3018,18 +3147,26 @@ export default class TaxPlanning extends Component {
<div className="col-1"> <div className="col-1">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1? tableMeta.rowData[1] === 4 || tableMeta.rowData[1] === 1?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.tbc}
control={
<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(value.tbc).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.tbc).toFixed(2) : Number(value.tbc).toFixed(1)}
/>
}
/> />
</div>
: :
tableMeta.rowData[1] === 3 ? tableMeta.rowData[1] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -3135,18 +3272,26 @@ export default class TaxPlanning extends Component { ...@@ -3135,18 +3272,26 @@ export default class TaxPlanning extends Component {
<div className="col-2"> <div className="col-2">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1? tableMeta.rowData[2] === 4 || tableMeta.rowData[2] === 1?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.fcp}
control={
<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(value.fcp).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.fcp).toFixed(2) : Number(value.fcp).toFixed(1)}
/> />
}
/>
</div>
: :
tableMeta.rowData[2] === 3 ? tableMeta.rowData[2] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -3252,18 +3397,26 @@ export default class TaxPlanning extends Component { ...@@ -3252,18 +3397,26 @@ export default class TaxPlanning extends Component {
<div className="col-3"> <div className="col-3">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ? tableMeta.rowData[3] === 4 || tableMeta.rowData[3] === 1 ?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.tbf}
control={
<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(value.tbf).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.tbf).toFixed(2) : Number(value.tbf).toFixed(1)}
/>
}
/> />
</div>
: :
tableMeta.rowData[3] === 3 ? tableMeta.rowData[3] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -3402,18 +3555,26 @@ export default class TaxPlanning extends Component { ...@@ -3402,18 +3555,26 @@ export default class TaxPlanning extends Component {
<div className="col-1"> <div className="col-1">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1? tableMeta.rowData[1] === 4 || tableMeta.rowData[1] === 1?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.tbc}
control={
<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(value.tbc).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.tbc).toFixed(2) : Number(value.tbc).toFixed(1)}
/>
}
/> />
</div>
: :
tableMeta.rowData[1] === 3 ? tableMeta.rowData[1] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -3519,18 +3680,26 @@ export default class TaxPlanning extends Component { ...@@ -3519,18 +3680,26 @@ export default class TaxPlanning extends Component {
<div className="col-2"> <div className="col-2">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1? tableMeta.rowData[2] === 4 || tableMeta.rowData[2] === 1?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.fcp}
control={
<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(value.fcp).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.fcp).toFixed(2) : Number(value.fcp).toFixed(1)}
/> />
}
/>
</div>
: :
tableMeta.rowData[2] === 3 ? tableMeta.rowData[2] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -3636,18 +3805,26 @@ export default class TaxPlanning extends Component { ...@@ -3636,18 +3805,26 @@ export default class TaxPlanning extends Component {
<div className="col-3"> <div className="col-3">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ? tableMeta.rowData[3] === 4 || tableMeta.rowData[3] === 1 ?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.tbf}
control={
<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(value.tbf).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.tbf).toFixed(2) : Number(value.tbf).toFixed(1)}
/>
}
/> />
</div>
: :
tableMeta.rowData[3] === 3 ? tableMeta.rowData[3] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -3786,18 +3963,26 @@ export default class TaxPlanning extends Component { ...@@ -3786,18 +3963,26 @@ export default class TaxPlanning extends Component {
<div className="col-1"> <div className="col-1">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1? tableMeta.rowData[1] === 4 || tableMeta.rowData[1] === 1?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.tbc}
control={
<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(value.tbc).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.tbc).toFixed(2) : Number(value.tbc).toFixed(1)}
/> />
}
/>
</div>
: :
tableMeta.rowData[1] === 3 ? tableMeta.rowData[1] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -3903,18 +4088,26 @@ export default class TaxPlanning extends Component { ...@@ -3903,18 +4088,26 @@ export default class TaxPlanning extends Component {
<div className="col-2"> <div className="col-2">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1? tableMeta.rowData[2] === 4 || tableMeta.rowData[2] === 1?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.fcp}
control={
<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(value.fcp).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.fcp).toFixed(2) : Number(value.fcp).toFixed(1)}
/>
}
/> />
</div>
: :
tableMeta.rowData[2] === 3 ? tableMeta.rowData[2] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -4020,18 +4213,26 @@ export default class TaxPlanning extends Component { ...@@ -4020,18 +4213,26 @@ export default class TaxPlanning extends Component {
<div className="col-3"> <div className="col-3">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ? tableMeta.rowData[3] === 4 || tableMeta.rowData[3] === 1 ?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.tbf}
control={
<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(value.tbf).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.tbf).toFixed(2) : Number(value.tbf).toFixed(1)}
/>
}
/> />
</div>
: :
tableMeta.rowData[3] === 3 ? tableMeta.rowData[3] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -4170,18 +4371,26 @@ export default class TaxPlanning extends Component { ...@@ -4170,18 +4371,26 @@ export default class TaxPlanning extends Component {
<div className="col-1"> <div className="col-1">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1? tableMeta.rowData[1] === 4 || tableMeta.rowData[1] === 1?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.tbc}
control={
<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(value.tbc).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.tbc).toFixed(2) : Number(value.tbc).toFixed(1)}
/>
}
/> />
</div>
: :
tableMeta.rowData[1] === 3 ? tableMeta.rowData[1] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -4287,18 +4496,26 @@ export default class TaxPlanning extends Component { ...@@ -4287,18 +4496,26 @@ export default class TaxPlanning extends Component {
<div className="col-2"> <div className="col-2">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1? tableMeta.rowData[2] === 4 || tableMeta.rowData[2] === 1?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.fcp}
control={
<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(value.fcp).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.fcp).toFixed(2) : Number(value.fcp).toFixed(1)}
/> />
}
/>
</div>
: :
tableMeta.rowData[2] === 3 ? tableMeta.rowData[2] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -4404,18 +4621,26 @@ export default class TaxPlanning extends Component { ...@@ -4404,18 +4621,26 @@ export default class TaxPlanning extends Component {
<div className="col-3"> <div className="col-3">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ? tableMeta.rowData[3] === 4 || tableMeta.rowData[3] === 1 ?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.tbf}
control={
<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(value.tbf).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.tbf).toFixed(2) : Number(value.tbf).toFixed(1)}
/>
}
/> />
</div>
: :
tableMeta.rowData[3] === 3 ? tableMeta.rowData[3] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -4554,18 +4779,26 @@ export default class TaxPlanning extends Component { ...@@ -4554,18 +4779,26 @@ export default class TaxPlanning extends Component {
<div className="col-1"> <div className="col-1">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1? tableMeta.rowData[1] === 4 || tableMeta.rowData[1] === 1?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.tbc}
control={
<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(value.tbc).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.tbc).toFixed(2) : Number(value.tbc).toFixed(1)}
/>
}
/> />
</div>
: :
tableMeta.rowData[1] === 3 ? tableMeta.rowData[1] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -4671,18 +4904,26 @@ export default class TaxPlanning extends Component { ...@@ -4671,18 +4904,26 @@ export default class TaxPlanning extends Component {
<div className="col-2"> <div className="col-2">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1? tableMeta.rowData[2] === 4 || tableMeta.rowData[2] === 1?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.fcp}
control={
<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(value.fcp).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.fcp).toFixed(2) : Number(value.fcp).toFixed(1)}
/> />
}
/>
</div>
: :
tableMeta.rowData[2] === 3 ? tableMeta.rowData[2] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -4788,18 +5029,26 @@ export default class TaxPlanning extends Component { ...@@ -4788,18 +5029,26 @@ export default class TaxPlanning extends Component {
<div className="col-3"> <div className="col-3">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ? tableMeta.rowData[3] === 4 || tableMeta.rowData[3] === 1 ?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.tbf}
control={
<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(value.tbf).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.tbf).toFixed(2) : Number(value.tbf).toFixed(1)}
/>
}
/> />
</div>
: :
tableMeta.rowData[3] === 3 ? tableMeta.rowData[3] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -4938,18 +5187,26 @@ export default class TaxPlanning extends Component { ...@@ -4938,18 +5187,26 @@ export default class TaxPlanning extends Component {
<div className="col-1"> <div className="col-1">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1? tableMeta.rowData[1] === 4 || tableMeta.rowData[1] === 1?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.tbc}
control={
<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(value.tbc).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.tbc).toFixed(2) : Number(value.tbc).toFixed(1)}
/> />
}
/>
</div>
: :
tableMeta.rowData[1] === 3 ? tableMeta.rowData[1] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -5055,18 +5312,26 @@ export default class TaxPlanning extends Component { ...@@ -5055,18 +5312,26 @@ export default class TaxPlanning extends Component {
<div className="col-2"> <div className="col-2">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1? tableMeta.rowData[2] === 4 || tableMeta.rowData[2] === 1?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.fcp}
control={
<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(value.fcp).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.fcp).toFixed(2) : Number(value.fcp).toFixed(1)}
/>
}
/> />
</div>
: :
tableMeta.rowData[2] === 3 ? tableMeta.rowData[2] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -5172,18 +5437,26 @@ export default class TaxPlanning extends Component { ...@@ -5172,18 +5437,26 @@ export default class TaxPlanning extends Component {
<div className="col-3"> <div className="col-3">
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ? tableMeta.rowData[3] === 4 || tableMeta.rowData[3] === 1 ?
null null
: :
this.state.get_for == 'view' ? this.state.get_for == 'view'?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value.tbf}
control={
<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(value.tbf).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value.tbf).toFixed(2) : Number(value.tbf).toFixed(1)}
/>
}
/> />
</div>
: :
tableMeta.rowData[3] === 3 ? tableMeta.rowData[3] === 3 ?
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
...@@ -5311,27 +5584,10 @@ export default class TaxPlanning extends Component { ...@@ -5311,27 +5584,10 @@ export default class TaxPlanning extends Component {
<div> <div>
<div style={{ textAlign: 'right' }}> <div style={{ textAlign: 'right' }}>
{ {
this.props.status === 'CLOSED' ?
tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ? tableMeta.rowData[0] === 4 || tableMeta.rowData[0] === 1 ?
null null
: :
tableMeta.rowData[1] === 3 ? this.state.get_for == 'view' ?
<div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value}
control={
<NumberFormat
thousandSeparator={true}
style={{ color: "#5198ea", fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
value={Number(value).toFixed(1)}
/>
}
/>
</div> :
<div style={{ flex: 1 }}> <div style={{ flex: 1 }}>
<FormControlLabel <FormControlLabel
style={{ margin: 0 }} style={{ margin: 0 }}
...@@ -5343,7 +5599,7 @@ export default class TaxPlanning extends Component { ...@@ -5343,7 +5599,7 @@ export default class TaxPlanning extends Component {
type="text" type="text"
placeholder="" placeholder=""
disabled={true} disabled={true}
value={Number(value).toFixed(1)} value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value).toFixed(2) : Number(value).toFixed(1)}
/> />
} }
/> />
...@@ -5383,9 +5639,6 @@ export default class TaxPlanning extends Component { ...@@ -5383,9 +5639,6 @@ export default class TaxPlanning extends Component {
/> />
</span> </span>
: :
tableMeta.rowData[1] === 4 ?
null
:
tableMeta.rowData[1] === 6 ? tableMeta.rowData[1] === 6 ?
<NumberFormat <NumberFormat
thousandSeparator={true} thousandSeparator={true}
...@@ -5406,19 +5659,6 @@ export default class TaxPlanning extends Component { ...@@ -5406,19 +5659,6 @@ export default class TaxPlanning extends Component {
value={Number(handleValueFormula(value, tableMeta, 1)).toFixed(1)} value={Number(handleValueFormula(value, tableMeta, 1)).toFixed(1)}
/> />
: :
tableMeta.rowData[1] === 1 ?
// value[0] === "" ?
// null :
// <NumberFormat
// thousandSeparator={true}
// style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
// type="text"
// placeholder=""
// disabled={true}
// value={Number(value[0])}
// />
null
:
tableMeta.rowData[1] === 7 ? tableMeta.rowData[1] === 7 ?
(Number(handleValueFormula(value, tableMeta, 0)).toFixed(1) >= Number(this.state.minValue) && Number(handleValueFormula(value, tableMeta, 0)).toFixed(1) <= Number(this.state.maxValue)) ? (Number(handleValueFormula(value, tableMeta, 0)).toFixed(1) >= Number(this.state.minValue) && Number(handleValueFormula(value, tableMeta, 0)).toFixed(1) <= Number(this.state.maxValue)) ?
<NumberFormat <NumberFormat
...@@ -5456,7 +5696,22 @@ export default class TaxPlanning extends Component { ...@@ -5456,7 +5696,22 @@ export default class TaxPlanning extends Component {
/> />
</LightTooltip> </LightTooltip>
: :
null <div style={{ flex: 1 }}>
<FormControlLabel
style={{ margin: 0 }}
value={value}
control={
<NumberFormat
thousandSeparator={true}
style={{ fontSize: 12, textAlign: 'right', borderColor: 'transparent', margin: 0, width: 96, backgroundColor: 'transparent' }}
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[8]).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(value).toFixed(2) : Number(value).toFixed(1)}
/>
}
/>
</div>
} }
</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