Commit 9d4d0578 authored by Riri Novita's avatar Riri Novita

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

Update banyak

See merge request !1894
parents f8935662 cf63463e
...@@ -343,6 +343,7 @@ const create = (type = "") => { ...@@ -343,6 +343,7 @@ const create = (type = "") => {
//CASH FLOW //CASH FLOW
const getDetailReportCF = (body) => api.post('/transaction/cash_flow/master_budget/get_report_hierarki', body) const getDetailReportCF = (body) => api.post('/transaction/cash_flow/master_budget/get_report_hierarki', body)
const createReportCF = (body) => api.post('transaction/cash_flow/master_budget/create_submission_report', body) const createReportCF = (body) => api.post('transaction/cash_flow/master_budget/create_submission_report', body)
const createReportCFSimulasi = (body) => api.post('transaction/cash_flow/master_budget/create_submission_report/other_currency', body)
//OUTLOOK PA //OUTLOOK PA
const getOutlookPAID = (body) => api.post('transaction/outlook_pa/get_outlook_pa_id', body) const getOutlookPAID = (body) => api.post('transaction/outlook_pa/get_outlook_pa_id', body)
...@@ -759,6 +760,7 @@ const create = (type = "") => { ...@@ -759,6 +760,7 @@ const create = (type = "") => {
getReportCFSumaMB, getReportCFSumaMB,
getReportCFSumaMR, getReportCFSumaMR,
createReportCF, createReportCF,
createReportCFSimulasi,
getReportCFSuma, getReportCFSuma,
getReportPLSuma, getReportPLSuma,
getReportPLSummary, getReportPLSummary,
......
...@@ -1320,7 +1320,26 @@ export default class BudgetTahunan extends Component { ...@@ -1320,7 +1320,26 @@ export default class BudgetTahunan extends Component {
}) })
} }
createCashFlow(payload) { createCashFlow(payload, trigger) {
console.log(trigger);
if (trigger === "simulasi") {
api.create().createReportCFSimulasi(payload).then((res) => {
console.log(res)
// this.getSubmission()
if (res.data) {
if (res.data.status === "success") {
this.setState({ visibleCF: false, visibleBudgetTahunan: true })
this.getSubmission()
} else {
if (res.data.message == "Please Set Up Rate Currency First") {
this.setState({ visibleAlertSave: true })
} else {
this.setState({ alert: true, messageAlert: res.data.message, tipeAlert: 'warning', loading: false })
}
}
}
})
} else {
api.create().createReportCF(payload).then((res) => { api.create().createReportCF(payload).then((res) => {
console.log(res) console.log(res)
// this.getSubmission() // this.getSubmission()
...@@ -1352,6 +1371,7 @@ export default class BudgetTahunan extends Component { ...@@ -1352,6 +1371,7 @@ export default class BudgetTahunan extends Component {
// } // }
}) })
} }
}
getPL(type, trigger) { getPL(type, trigger) {
let PLID = null let PLID = null
......
...@@ -336,7 +336,7 @@ export default class CashFlow extends Component { ...@@ -336,7 +336,7 @@ export default class CashFlow extends Component {
this.setState({ alert: false }) this.setState({ alert: false })
} }
olahDataCashFlow(dataTable2) { olahDataCashFlow(dataTable2, trigger) {
console.log(dataTable2) console.log(dataTable2)
let listCF = [] let listCF = []
dataTable2.map((item, index) => { dataTable2.map((item, index) => {
...@@ -373,10 +373,10 @@ export default class CashFlow extends Component { ...@@ -373,10 +373,10 @@ export default class CashFlow extends Component {
}) })
console.log(listCF) console.log(listCF)
this.createCashFlow(listCF) this.createCashFlow(listCF, trigger)
} }
createCashFlow(dbcf) { createCashFlow(dbcf, trigger) {
let payload = { let payload = {
"submission_id": this.props.submissionID, "submission_id": this.props.submissionID,
"company_id": this.props.company.company_id, "company_id": this.props.company.company_id,
...@@ -388,7 +388,7 @@ export default class CashFlow extends Component { ...@@ -388,7 +388,7 @@ export default class CashFlow extends Component {
} }
console.log(dbcf) console.log(dbcf)
console.log(JSON.stringify(payload)) console.log(JSON.stringify(payload))
this.props.createCashFlow(payload) this.props.createCashFlow(payload, trigger)
// this.props.onClickClose() // this.props.onClickClose()
} }
...@@ -3339,9 +3339,32 @@ export default class CashFlow extends Component { ...@@ -3339,9 +3339,32 @@ export default class CashFlow extends Component {
</div> </div>
</button> </button>
</div> </div>
<div className="col-2" style={{ display: 'flex', justifyContent: 'flex-end', maxWidth: '100%' }}>
<button
type="button"
// disabled={this.state.buttonError}
onClick={() =>
// this.state.buttonError ?
// this.setState({ alert: true, messageAlert: 'Data is not complete !', tipeAlert: 'warning' })
// :
this.state.handleDoubleClick == 1 ? null :
this.setState({ handleDoubleClick: 1 }, () => {
this.olahDataCashFlow(dataTable2, "simulasi")
})}
style={{
backgroundColor: 'transparent',
cursor: this.state.buttonError === true ? 'default' : 'pointer',
borderColor: 'transparent',
outline: 'none',
marginRight: 15
}}
>
<div style={{ backgroundColor: '#cd5c5c', width: 105, height: 25, borderRadius: 3, justifyContent: 'center', display: 'flex', alignItems: 'center' }}>
<Typography style={{ fontSize: '11px', color: '#fff', textAlign: 'center' }}>Save Data Simulasi</Typography>
</div>
</button>
{this.props.isApprover === true || dataTable2.length == 0 ? null : {this.props.isApprover === true || dataTable2.length == 0 ? null :
(!this.props.truelyApprover) && (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') ? (!this.props.truelyApprover) && (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') ?
<div className="col-2" style={{ display: 'flex', justifyContent: 'flex-end', maxWidth: '100%' }}>
<button <button
type="button" type="button"
// disabled={this.state.buttonError} // disabled={this.state.buttonError}
...@@ -3364,10 +3387,10 @@ export default class CashFlow extends Component { ...@@ -3364,10 +3387,10 @@ export default class CashFlow extends Component {
<Typography style={{ fontSize: '11px', color: '#fff', textAlign: 'center' }}>Save & Complete</Typography> <Typography style={{ fontSize: '11px', color: '#fff', textAlign: 'center' }}>Save & Complete</Typography>
</div> </div>
</button> </button>
</div>
: null} : null}
</div> </div>
</div> </div>
</div>
</Paper> </Paper>
</div> </div>
</div> </div>
......
...@@ -150,64 +150,64 @@ export default class TaxPlanning extends Component { ...@@ -150,64 +150,64 @@ export default class TaxPlanning extends Component {
item.level, item.level,
item.description, item.description,
{ {
tbc: item.tax_planning.january === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.january?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.january?.tbc, formula: item.tax_planning.january_formula } : item.tax_planning.january?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.january?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.january === null ? "0.0" : item.tax_planning.january.tbc, formula: item.tax_planning.january_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.january?.tbc,
fcp: item.tax_planning.january === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.january?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.january?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.january?.fcp, formula: item.tax_planning.january_formula } : item.tax_planning.january?.fcp, fcp: item.tax_planning.january === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.january?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.january?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.january === null ? "0.0" : item.tax_planning.january.tbc, formula: item.tax_planning.january_formula } : item.tax_planning.january?.fcp,
tbf: item.tax_planning.january === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.january?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.january?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.january?.tbf, formula: item.tax_planning.january_formula } : item.tax_planning.january?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.january?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.january?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.january === null ? "0.0" : item.tax_planning.january.tbc, formula: item.tax_planning.january_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.january?.tbf
}, },
{ {
tbc: item.tax_planning.february === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.february?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.february?.tbc, formula: item.tax_planning.february_formula } : item.tax_planning.february?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.february?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.february === null ? "0.0" : item.tax_planning.february?.tbc, formula: item.tax_planning.february_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.february?.tbc,
fcp: item.tax_planning.february === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.february?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.february?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.february?.fcp, formula: item.tax_planning.february_formula } : item.tax_planning.february?.fcp, fcp: item.tax_planning.february === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.february?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.february?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.february?.fcp, formula: item.tax_planning.february_formula } : item.tax_planning.february?.fcp,
tbf: item.tax_planning.february === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.february?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.february?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.february?.tbf, formula: item.tax_planning.february_formula } : item.tax_planning.february?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.february?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.february?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.february === null ? "0.0" : item.tax_planning.february.tbc, formula: item.tax_planning.february_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.february?.tbf
}, },
{ {
tbc: item.tax_planning.march === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.march?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.march?.tbc, formula: item.tax_planning.march_formula } : item.tax_planning.march?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.march?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.march === null ? "0.0" : item.tax_planning.march?.tbc, formula: item.tax_planning.march_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.march?.tbc,
fcp: item.tax_planning.march === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.march?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.march?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.march?.fcp, formula: item.tax_planning.march_formula } : item.tax_planning.march?.fcp, fcp: item.tax_planning.march === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.march?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.march?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.march?.fcp, formula: item.tax_planning.march_formula } : item.tax_planning.march?.fcp,
tbf: item.tax_planning.march === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.march?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.march?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.march?.tbf, formula: item.tax_planning.march_formula } : item.tax_planning.march?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.march?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.march?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.march === null ? "0.0" : item.tax_planning.march?.tbf, formula: item.tax_planning.march_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.march?.tbf
}, },
{ {
tbc: item.tax_planning.april === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.april?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.april?.tbc, formula: item.tax_planning.april_formula } : item.tax_planning.april?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.april?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.april === null ? "0.0" : item.tax_planning.april?.tbc, formula: item.tax_planning.april_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.april?.tbc,
fcp: item.tax_planning.april === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.april?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.april?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.april?.fcp, formula: item.tax_planning.april_formula } : item.tax_planning.april?.fcp, fcp: item.tax_planning.april === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.april?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.april?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.april?.fcp, formula: item.tax_planning.april_formula } : item.tax_planning.april?.fcp,
tbf: item.tax_planning.april === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.april?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.april?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.april?.tbf, formula: item.tax_planning.april_formula } : item.tax_planning.april?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.april?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.april?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.april === null ? "0.0" : item.tax_planning.april?.tbf, formula: item.tax_planning.april_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.april?.tbf
}, },
{ {
tbc: item.tax_planning.may === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.may?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.may?.tbc, formula: item.tax_planning.may_formula } : item.tax_planning.may?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.may?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.may === null ? "0.0" : item.tax_planning.may?.tbc, formula: item.tax_planning.may_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.may?.tbc,
fcp: item.tax_planning.may === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.may?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.may?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.may?.fcp, formula: item.tax_planning.may_formula } : item.tax_planning.may?.fcp, fcp: item.tax_planning.may === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.may?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.may?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.may?.fcp, formula: item.tax_planning.may_formula } : item.tax_planning.may?.fcp,
tbf: item.tax_planning.may === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.may?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.may?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.may?.tbf, formula: item.tax_planning.may_formula } : item.tax_planning.may?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.may?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.may?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.may === null ? "0.0" : item.tax_planning.may?.tbf, formula: item.tax_planning.may_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.may?.tbf
}, },
{ {
tbc: item.tax_planning.june === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.june?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.june?.tbc, formula: item.tax_planning.june_formula } : item.tax_planning.june?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.june?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.june === null ? "0.0" : item.tax_planning.june?.tbc, formula: item.tax_planning.june_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.june?.tbc,
fcp: item.tax_planning.june === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.june?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.june?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.june?.fcp, formula: item.tax_planning.june_formula } : item.tax_planning.june?.fcp, fcp: item.tax_planning.june === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.june?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.june?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.june?.fcp, formula: item.tax_planning.june_formula } : item.tax_planning.june?.fcp,
tbf: item.tax_planning.june === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.june?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.june?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.june?.tbf, formula: item.tax_planning.june_formula } : item.tax_planning.june?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.june?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.june?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.june === null ? "0.0" : item.tax_planning.june?.tbf, formula: item.tax_planning.june_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.june?.tbf
}, },
{ {
tbc: item.tax_planning.july === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.july?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.july?.tbc, formula: item.tax_planning.july_formula } : item.tax_planning.july?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.july?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.july === null ? "0.0" : item.tax_planning.july?.tbc, formula: item.tax_planning.july_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.july?.tbc,
fcp: item.tax_planning.july === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.july?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.july?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.july?.fcp, formula: item.tax_planning.july_formula } : item.tax_planning.july?.fcp, fcp: item.tax_planning.july === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.july?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.july?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.july?.fcp, formula: item.tax_planning.july_formula } : item.tax_planning.july?.fcp,
tbf: item.tax_planning.july === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.july?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.july?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.july?.tbf, formula: item.tax_planning.july_formula } : item.tax_planning.july?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.july?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.july?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.july === null ? "0.0" : item.tax_planning.july?.tbf, formula: item.tax_planning.july_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.july?.tbf
}, },
{ {
tbc: item.tax_planning.august === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.august?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.august?.tbc, formula: item.tax_planning.august_formula } : item.tax_planning.august?.tbc === null ? "0" : item.tax_planning.august?.tbc === "" ? "0" : item.tax_planning.august?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.august?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.august === null ? "0.0" : item.tax_planning.august?.tbc, formula: item.tax_planning.august_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.august?.tbc === null ? "0" : item.tax_planning.august?.tbc === "" ? "0" : item.tax_planning.august?.tbc,
fcp: item.tax_planning.august === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.august?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.august?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.august?.fcp, formula: item.tax_planning.august_formula } : item.tax_planning.august?.fcp, fcp: item.tax_planning.august === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.august?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.august?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.august?.fcp, formula: item.tax_planning.august_formula } : item.tax_planning.august?.fcp,
tbf: item.tax_planning.august === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.august?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.august?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.august?.tbf, formula: item.tax_planning.august_formula } : item.tax_planning.august?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.august?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.august?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.august === null ? "0.0" : item.tax_planning.august?.tbf, formula: item.tax_planning.august_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.august?.tbf
}, },
{ {
tbc: item.tax_planning.september === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.september?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.september?.tbc, formula: item.tax_planning.september_formula } : item.tax_planning.september?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.september?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.september === null ? "0.0" : item.tax_planning.september?.tbc, formula: item.tax_planning.september_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.september?.tbc,
fcp: item.tax_planning.september === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.september?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.september?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.september?.fcp, formula: item.tax_planning.september_formula } : item.tax_planning.september?.fcp, fcp: item.tax_planning.september === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.september?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.september?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.september?.fcp, formula: item.tax_planning.september_formula } : item.tax_planning.september?.fcp,
tbf: item.tax_planning.september === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.september?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.september?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.september?.tbf, formula: item.tax_planning.september_formula } : item.tax_planning.september?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.september?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.september?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.september === null ? "0.0" : item.tax_planning.september?.tbf, formula: item.tax_planning.september_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.september?.tbf
}, },
{ {
tbc: item.tax_planning.october === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.october?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.october?.tbc, formula: item.tax_planning.october_formula } : item.tax_planning.october?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.october?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.october === null ? "0.0" : item.tax_planning.october?.tbc, formula: item.tax_planning.october_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.october?.tbc,
fcp: item.tax_planning.october === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.october?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.october?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.october?.fcp, formula: item.tax_planning.october_formula } : item.tax_planning.october?.fcp, fcp: item.tax_planning.october === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.october?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.october?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.october?.fcp, formula: item.tax_planning.october_formula } : item.tax_planning.october?.fcp,
tbf: item.tax_planning.october === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.october?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.october?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.october?.tbf, formula: item.tax_planning.october_formula } : item.tax_planning.october?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.october?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.october?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.october === null ? "0.0" : item.tax_planning.october?.tbf, formula: item.tax_planning.october_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.october?.tbf
}, },
{ {
tbc: item.tax_planning.november === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.november?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.november?.tbc, formula: item.tax_planning.november_formula } : item.tax_planning.november?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.november?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.november === null ? "0.0" : item.tax_planning.november?.tbc, formula: item.tax_planning.november_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.november?.tbc,
fcp: item.tax_planning.november === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.november?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.november?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.november?.fcp, formula: item.tax_planning.november_formula } : item.tax_planning.november?.fcp, fcp: item.tax_planning.november === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.november?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.november?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.november?.fcp, formula: item.tax_planning.november_formula } : item.tax_planning.november?.fcp,
tbf: item.tax_planning.november === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.november?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.november?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.november?.tbf, formula: item.tax_planning.november_formula } : item.tax_planning.november?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.november?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.november?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.november === null ? "0.0" : item.tax_planning.november?.tbf, formula: item.tax_planning.november_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.november?.tbf
}, },
{ {
tbc: item.tax_planning.december === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.december?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.december?.tbc, formula: item.tax_planning.december_formula } : item.tax_planning.december?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.december?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.december === null ? "0.0" : item.tax_planning.december?.tbc, formula: item.tax_planning.december_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.december?.tbc,
fcp: item.tax_planning.december === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.december?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.december?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.december?.fcp, formula: item.tax_planning.december_formula } : item.tax_planning.december?.fcp, fcp: item.tax_planning.december === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.december?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.december?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.december?.fcp, formula: item.tax_planning.december_formula } : item.tax_planning.december?.fcp,
tbf: item.tax_planning.december === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.december?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.december?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.december?.tbf, formula: item.tax_planning.december_formula } : item.tax_planning.december?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.december?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.december?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.december === null ? "0.0" : item.tax_planning.december?.tbf, formula: item.tax_planning.december_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.december?.tbf
}, },
Number(item.tax_planning.total_current_year).toFixed(1), Number(item.tax_planning.total_current_year).toFixed(1),
// { tbc: item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.total_next_year.tbc } : item.tax_planning.total_next_year.tbc, fcp: item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.total_next_year.fcp } : item.tax_planning.total_next_year.fcp, tbf: item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.total_next_year.tbf } : item.tax_planning.total_next_year.tbf }, // { tbc: item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.total_next_year.tbc } : item.tax_planning.total_next_year.tbc, fcp: item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.total_next_year.fcp } : item.tax_planning.total_next_year.fcp, tbf: item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.total_next_year.tbf } : item.tax_planning.total_next_year.tbf },
...@@ -249,64 +249,64 @@ export default class TaxPlanning extends Component { ...@@ -249,64 +249,64 @@ export default class TaxPlanning extends Component {
item.level, item.level,
item.description, item.description,
{ {
tbc: item.tax_planning.january === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.january?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.january?.tbc, formula: item.tax_planning.january_formula } : item.tax_planning.january?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.january?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.january === null ? "0.0" : item.tax_planning.january.tbc, formula: item.tax_planning.january_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.january?.tbc,
fcp: item.tax_planning.january === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.january?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.january?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.january?.fcp, formula: item.tax_planning.january_formula } : item.tax_planning.january?.fcp, fcp: item.tax_planning.january === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.january?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.january?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.january === null ? "0.0" : item.tax_planning.january.tbc, formula: item.tax_planning.january_formula } : item.tax_planning.january?.fcp,
tbf: item.tax_planning.january === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.january?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.january?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.january?.tbf, formula: item.tax_planning.january_formula } : item.tax_planning.january?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.january?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.january?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.january === null ? "0.0" : item.tax_planning.january.tbc, formula: item.tax_planning.january_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.january?.tbf
}, },
{ {
tbc: item.tax_planning.february === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.february?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.february?.tbc, formula: item.tax_planning.february_formula } : item.tax_planning.february?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.february?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.february === null ? "0.0" : item.tax_planning.february?.tbc, formula: item.tax_planning.february_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.february?.tbc,
fcp: item.tax_planning.february === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.february?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.february?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.february?.fcp, formula: item.tax_planning.february_formula } : item.tax_planning.february?.fcp, fcp: item.tax_planning.february === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.february?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.february?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.february?.fcp, formula: item.tax_planning.february_formula } : item.tax_planning.february?.fcp,
tbf: item.tax_planning.february === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.february?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.february?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.february?.tbf, formula: item.tax_planning.february_formula } : item.tax_planning.february?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.february?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.february?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.february === null ? "0.0" : item.tax_planning.february.tbc, formula: item.tax_planning.february_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.february?.tbf
}, },
{ {
tbc: item.tax_planning.march === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.march?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.march?.tbc, formula: item.tax_planning.march_formula } : item.tax_planning.march?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.march?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.march === null ? "0.0" : item.tax_planning.march?.tbc, formula: item.tax_planning.march_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.march?.tbc,
fcp: item.tax_planning.march === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.march?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.march?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.march?.fcp, formula: item.tax_planning.march_formula } : item.tax_planning.march?.fcp, fcp: item.tax_planning.march === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.march?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.march?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.march?.fcp, formula: item.tax_planning.march_formula } : item.tax_planning.march?.fcp,
tbf: item.tax_planning.march === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.march?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.march?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.march?.tbf, formula: item.tax_planning.march_formula } : item.tax_planning.march?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.march?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.march?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.march === null ? "0.0" : item.tax_planning.march?.tbf, formula: item.tax_planning.march_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.march?.tbf
}, },
{ {
tbc: item.tax_planning.april === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.april?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.april?.tbc, formula: item.tax_planning.april_formula } : item.tax_planning.april?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.april?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.april === null ? "0.0" : item.tax_planning.april?.tbc, formula: item.tax_planning.april_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.april?.tbc,
fcp: item.tax_planning.april === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.april?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.april?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.april?.fcp, formula: item.tax_planning.april_formula } : item.tax_planning.april?.fcp, fcp: item.tax_planning.april === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.april?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.april?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.april?.fcp, formula: item.tax_planning.april_formula } : item.tax_planning.april?.fcp,
tbf: item.tax_planning.april === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.april?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.april?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.april?.tbf, formula: item.tax_planning.april_formula } : item.tax_planning.april?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.april?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.april?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.april === null ? "0.0" : item.tax_planning.april?.tbf, formula: item.tax_planning.april_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.april?.tbf
}, },
{ {
tbc: item.tax_planning.may === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.may?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.may?.tbc, formula: item.tax_planning.may_formula } : item.tax_planning.may?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.may?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.may === null ? "0.0" : item.tax_planning.may?.tbc, formula: item.tax_planning.may_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.may?.tbc,
fcp: item.tax_planning.may === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.may?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.may?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.may?.fcp, formula: item.tax_planning.may_formula } : item.tax_planning.may?.fcp, fcp: item.tax_planning.may === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.may?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.may?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.may?.fcp, formula: item.tax_planning.may_formula } : item.tax_planning.may?.fcp,
tbf: item.tax_planning.may === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.may?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.may?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.may?.tbf, formula: item.tax_planning.may_formula } : item.tax_planning.may?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.may?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.may?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.may === null ? "0.0" : item.tax_planning.may?.tbf, formula: item.tax_planning.may_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.may?.tbf
}, },
{ {
tbc: item.tax_planning.june === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.june?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.june?.tbc, formula: item.tax_planning.june_formula } : item.tax_planning.june?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.june?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.june === null ? "0.0" : item.tax_planning.june?.tbc, formula: item.tax_planning.june_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.june?.tbc,
fcp: item.tax_planning.june === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.june?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.june?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.june?.fcp, formula: item.tax_planning.june_formula } : item.tax_planning.june?.fcp, fcp: item.tax_planning.june === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.june?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.june?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.june?.fcp, formula: item.tax_planning.june_formula } : item.tax_planning.june?.fcp,
tbf: item.tax_planning.june === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.june?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.june?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.june?.tbf, formula: item.tax_planning.june_formula } : item.tax_planning.june?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.june?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.june?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.june === null ? "0.0" : item.tax_planning.june?.tbf, formula: item.tax_planning.june_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.june?.tbf
}, },
{ {
tbc: item.tax_planning.july === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.july?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.july?.tbc, formula: item.tax_planning.july_formula } : item.tax_planning.july?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.july?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.july === null ? "0.0" : item.tax_planning.july?.tbc, formula: item.tax_planning.july_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.july?.tbc,
fcp: item.tax_planning.july === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.july?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.july?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.july?.fcp, formula: item.tax_planning.july_formula } : item.tax_planning.july?.fcp, fcp: item.tax_planning.july === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.july?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.july?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.july?.fcp, formula: item.tax_planning.july_formula } : item.tax_planning.july?.fcp,
tbf: item.tax_planning.july === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.july?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.july?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.july?.tbf, formula: item.tax_planning.july_formula } : item.tax_planning.july?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.july?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.july?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.july === null ? "0.0" : item.tax_planning.july?.tbf, formula: item.tax_planning.july_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.july?.tbf
}, },
{ {
tbc: item.tax_planning.august === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.august?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.august?.tbc, formula: item.tax_planning.august_formula } : item.tax_planning.august?.tbc === null ? "0" : item.tax_planning.august?.tbc === "" ? "0" : item.tax_planning.august?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.august?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.august === null ? "0.0" : item.tax_planning.august?.tbc, formula: item.tax_planning.august_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.august?.tbc === null ? "0" : item.tax_planning.august?.tbc === "" ? "0" : item.tax_planning.august?.tbc,
fcp: item.tax_planning.august === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.august?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.august?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.august?.fcp, formula: item.tax_planning.august_formula } : item.tax_planning.august?.fcp, fcp: item.tax_planning.august === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.august?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.august?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.august?.fcp, formula: item.tax_planning.august_formula } : item.tax_planning.august?.fcp,
tbf: item.tax_planning.august === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.august?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.august?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.august?.tbf, formula: item.tax_planning.august_formula } : item.tax_planning.august?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.august?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.august?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.august === null ? "0.0" : item.tax_planning.august?.tbf, formula: item.tax_planning.august_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.august?.tbf
}, },
{ {
tbc: item.tax_planning.september === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.september?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.september?.tbc, formula: item.tax_planning.september_formula } : item.tax_planning.september?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.september?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.september === null ? "0.0" : item.tax_planning.september?.tbc, formula: item.tax_planning.september_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.september?.tbc,
fcp: item.tax_planning.september === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.september?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.september?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.september?.fcp, formula: item.tax_planning.september_formula } : item.tax_planning.september?.fcp, fcp: item.tax_planning.september === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.september?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.september?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.september?.fcp, formula: item.tax_planning.september_formula } : item.tax_planning.september?.fcp,
tbf: item.tax_planning.september === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.september?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.september?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.september?.tbf, formula: item.tax_planning.september_formula } : item.tax_planning.september?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.september?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.september?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.september === null ? "0.0" : item.tax_planning.september?.tbf, formula: item.tax_planning.september_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.september?.tbf
}, },
{ {
tbc: item.tax_planning.october === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.october?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.october?.tbc, formula: item.tax_planning.october_formula } : item.tax_planning.october?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.october?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.october === null ? "0.0" : item.tax_planning.october?.tbc, formula: item.tax_planning.october_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.october?.tbc,
fcp: item.tax_planning.october === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.october?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.october?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.october?.fcp, formula: item.tax_planning.october_formula } : item.tax_planning.october?.fcp, fcp: item.tax_planning.october === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.october?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.october?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.october?.fcp, formula: item.tax_planning.october_formula } : item.tax_planning.october?.fcp,
tbf: item.tax_planning.october === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.october?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.october?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.october?.tbf, formula: item.tax_planning.october_formula } : item.tax_planning.october?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.october?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.october?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.october === null ? "0.0" : item.tax_planning.october?.tbf, formula: item.tax_planning.october_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.october?.tbf
}, },
{ {
tbc: item.tax_planning.november === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.november?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.november?.tbc, formula: item.tax_planning.november_formula } : item.tax_planning.november?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.november?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.november === null ? "0.0" : item.tax_planning.november?.tbc, formula: item.tax_planning.november_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.november?.tbc,
fcp: item.tax_planning.november === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.november?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.november?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.november?.fcp, formula: item.tax_planning.november_formula } : item.tax_planning.november?.fcp, fcp: item.tax_planning.november === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.november?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.november?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.november?.fcp, formula: item.tax_planning.november_formula } : item.tax_planning.november?.fcp,
tbf: item.tax_planning.november === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.november?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.november?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.november?.tbf, formula: item.tax_planning.november_formula } : item.tax_planning.november?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.november?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.november?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.november === null ? "0.0" : item.tax_planning.november?.tbf, formula: item.tax_planning.november_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.november?.tbf
}, },
{ {
tbc: item.tax_planning.december === null ? '0.0' : this.props.status === 'CLOSED' ? Number(item.tax_planning.december?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.december?.tbc, formula: item.tax_planning.december_formula } : item.tax_planning.december?.tbc, tbc: this.props.status === 'CLOSED' ? Number(item.tax_planning.december?.tbc).toFixed(1) : item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.december === null ? "0.0" : item.tax_planning.december?.tbc, formula: item.tax_planning.december_formula } : item.type_report_tax.value_tbc.type_report_id == 1 || item.type_report_tax.value_tbc.type_report_id == 2 || item.type_report_tax.value_tbc.type_report_id == 3 || item.type_report_tax.value_tbc.type_report_id == 4 ? "0.0" : item.tax_planning.december?.tbc,
fcp: item.tax_planning.december === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.december?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.december?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.december?.fcp, formula: item.tax_planning.december_formula } : item.tax_planning.december?.fcp, fcp: item.tax_planning.december === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.december?.fcp).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.december?.fcp).toFixed(1) : item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.december?.fcp, formula: item.tax_planning.december_formula } : item.tax_planning.december?.fcp,
tbf: item.tax_planning.december === null ? '0.0' : this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.december?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.december?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.december?.tbf, formula: item.tax_planning.december_formula } : item.tax_planning.december?.tbf tbf: this.props.status === 'CLOSED' && String(item.description).toLocaleUpperCase() == "CORPORATE INCOME TAX" ? Number(item.tax_planning.december?.tbf).toFixed(2) : this.props.status === 'CLOSED' ? Number(item.tax_planning.december?.tbf).toFixed(1) : item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.december === null ? "0.0" : item.tax_planning.december?.tbf, formula: item.tax_planning.december_formula } : item.type_report_tax.value_tbf.type_report_id == 1 || item.type_report_tax.value_tbf.type_report_id == 2 || item.type_report_tax.value_tbf.type_report_id == 3 || item.type_report_tax.value_tbf.type_report_id == 4 ? "0.0" : item.tax_planning.december?.tbf
}, },
Number(item.tax_planning.total_current_year).toFixed(1), Number(item.tax_planning.total_current_year).toFixed(1),
// { tbc: item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.total_next_year.tbc } : item.tax_planning.total_next_year.tbc, fcp: item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.total_next_year.fcp } : item.tax_planning.total_next_year.fcp, tbf: item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.total_next_year.tbf } : item.tax_planning.total_next_year.tbf }, // { tbc: item.type_report_tax.value_tbc.type_report_id == 5 || item.type_report_tax.value_tbc.type_report_id == 6 || item.type_report_tax.value_tbc.type_report_id == 7 ? { value: item.tax_planning.total_next_year.tbc } : item.tax_planning.total_next_year.tbc, fcp: item.type_report_tax.value_fc.type_report_id == 5 || item.type_report_tax.value_fc.type_report_id == 6 || item.type_report_tax.value_fc.type_report_id == 7 ? { value: item.tax_planning.total_next_year.fcp } : item.tax_planning.total_next_year.fcp, tbf: item.type_report_tax.value_tbf.type_report_id == 5 || item.type_report_tax.value_tbf.type_report_id == 6 || item.type_report_tax.value_tbf.type_report_id == 7 ? { value: item.tax_planning.total_next_year.tbf } : item.tax_planning.total_next_year.tbf },
...@@ -1254,7 +1254,7 @@ export default class TaxPlanning extends Component { ...@@ -1254,7 +1254,7 @@ export default class TaxPlanning extends Component {
const handleValueFormula = (value, tableMeta, dex, xntd, forecast, periode) => { const handleValueFormula = (value, tableMeta, dex, xntd, forecast, periode) => {
// console.log(xntd) // console.log(xntd)
console.log(dex); // console.log(dex);
let form = dex === 1 ? tableMeta.rowData[6].tbc : dex === 2 ? tableMeta.rowData[6].fcp : tableMeta.rowData[6].tbf let form = dex === 1 ? tableMeta.rowData[6].tbc : dex === 2 ? tableMeta.rowData[6].fcp : tableMeta.rowData[6].tbf
let splitFormula = String(form).split('@') let splitFormula = String(form).split('@')
let baru = [] let baru = []
...@@ -1330,9 +1330,9 @@ export default class TaxPlanning extends Component { ...@@ -1330,9 +1330,9 @@ export default class TaxPlanning extends Component {
} }
} else { } else {
let data = dex == 1 ? value.tbc : dex == 2 ? value.fcp : value.tbf let data = dex == 1 ? value.tbc : dex == 2 ? value.fcp : value.tbf
console.log(dex); // console.log(dex);
console.log(value); // console.log(value);
console.log(data); // console.log(data);
let indexID = data?.formula.findIndex((val) => val.item_formula == String(`@${item}`) && val.periode == Number(this.props.periode)) let indexID = data?.formula.findIndex((val) => val.item_formula == String(`@${item}`) && val.periode == Number(this.props.periode))
if (indexID !== -1) { if (indexID !== -1) {
let valuezz = data?.formula[indexID].value let valuezz = data?.formula[indexID].value
......
...@@ -214,7 +214,7 @@ export default class CashFlowMR extends Component { ...@@ -214,7 +214,7 @@ export default class CashFlowMR extends Component {
} }
} }
payloadCF(dataTable2) { payloadCF(dataTable2, trigger) {
let listCF = [] let listCF = []
console.log(dataTable2) console.log(dataTable2)
dataTable2.map((item, index) => { dataTable2.map((item, index) => {
...@@ -232,10 +232,10 @@ export default class CashFlowMR extends Component { ...@@ -232,10 +232,10 @@ export default class CashFlowMR extends Component {
// } // }
}) })
this.createCashFlow(listCF) this.createCashFlow(listCF, trigger)
} }
createCashFlow(listCF) { createCashFlow(listCF, trigger) {
let payload = { let payload = {
"monthly_report_id": this.props.monthlyReportId, "monthly_report_id": this.props.monthlyReportId,
"company_id": this.props.company.company_id, "company_id": this.props.company.company_id,
...@@ -246,7 +246,7 @@ export default class CashFlowMR extends Component { ...@@ -246,7 +246,7 @@ export default class CashFlowMR extends Component {
"currency_id": this.props.defaultCurrency.id, "currency_id": this.props.defaultCurrency.id,
"cash_flow": listCF "cash_flow": listCF
} }
this.props.createCashFlow(payload) this.props.createCashFlow(payload, trigger)
} }
render() { render() {
...@@ -765,7 +765,6 @@ export default class CashFlowMR extends Component { ...@@ -765,7 +765,6 @@ export default class CashFlowMR extends Component {
</div> </div>
</button> </button>
</div> </div>
{this.state.viewOnly &&
<div className="col-2" style={{ display: 'flex', justifyContent: 'flex-end', maxWidth: '100%' }}> <div className="col-2" style={{ display: 'flex', justifyContent: 'flex-end', maxWidth: '100%' }}>
<button <button
type="button" type="button"
...@@ -776,7 +775,7 @@ export default class CashFlowMR extends Component { ...@@ -776,7 +775,7 @@ export default class CashFlowMR extends Component {
// : // :
this.state.handleDoubleClick == 1 ? null : this.state.handleDoubleClick == 1 ? null :
this.setState({ handleDoubleClick: 1 }, () => { this.setState({ handleDoubleClick: 1 }, () => {
this.payloadCF(dataTable2) this.payloadCF(dataTable2, "simulasi")
})} })}
style={{ style={{
backgroundColor: 'transparent', backgroundColor: 'transparent',
...@@ -789,10 +788,33 @@ export default class CashFlowMR extends Component { ...@@ -789,10 +788,33 @@ export default class CashFlowMR extends Component {
<Typography style={{ fontSize: '11px', color: '#fff', textAlign: 'center' }}>Save & Complete</Typography> <Typography style={{ fontSize: '11px', color: '#fff', textAlign: 'center' }}>Save & Complete</Typography>
</div> </div>
</button> </button>
{this.state.viewOnly &&
<button
type="button"
// disabled={this.state.buttonError}
onClick={() =>
// this.state.buttonError ?
// this.setState({ alert: true, messageAlert: 'Data is not complete !', tipeAlert: 'warning' })
// :
this.state.handleDoubleClick == 1 ? null :
this.setState({ handleDoubleClick: 1 }, () => {
this.payloadCF(dataTable2)
})}
style={{
backgroundColor: 'transparent',
cursor: this.state.buttonError === true ? 'default' : 'pointer',
borderColor: 'transparent',
outline: 'none',
}}
>
<div style={{ backgroundColor: '#354960', width: 105, height: 25, borderRadius: 3, justifyContent: 'center', display: 'flex', alignItems: 'center' }}>
<Typography style={{ fontSize: '11px', color: '#fff', textAlign: 'center' }}>Save & Complete</Typography>
</div> </div>
</button>
} }
</div> </div>
</div> </div>
</div>
</Paper> </Paper>
</div> </div>
</div> </div>
......
...@@ -1529,13 +1529,17 @@ export default class MonthlyReport extends Component { ...@@ -1529,13 +1529,17 @@ export default class MonthlyReport extends Component {
}) })
} }
createCashFlow(payload) { createCashFlow(payload, trigger) {
console.log(JSON.stringify(payload)) console.log(JSON.stringify(payload))
if (trigger === "simulasi") {
} else {
api.create().createMonthlyReportCF(payload).then((res) => { api.create().createMonthlyReportCF(payload).then((res) => {
this.saveToMonthlyReport() this.saveToMonthlyReport()
console.log(res) console.log(res)
}) })
} }
}
getPL(type, trigger) { getPL(type, trigger) {
let PLID = null let PLID = null
......
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