Commit 007d90e1 authored by Riri Novita's avatar Riri Novita

Update Kodingan Summary Cashflow Cash at The End

parent 500b4247
......@@ -85,7 +85,7 @@ export default class SubHolding extends Component {
})
}
} else {
this.setState({ alert: true, messageAlert: response.problem, tipeAlert: 'error'})
this.setState({ alert: true, messageAlert: response.problem, tipeAlert: 'error' })
}
}
})
......@@ -100,7 +100,7 @@ export default class SubHolding extends Component {
console.log(response);
if (response.data) {
if (response.data.status == "success") {
this.setState({ approveMB: response.data.data.is_master_budget_approve})
this.setState({ approveMB: response.data.data.is_master_budget_approve })
}
}
......@@ -119,27 +119,27 @@ export default class SubHolding extends Component {
if (response.data.status == "success") {
console.log(response.data.data);
let approveMonthly =
this.state.month.month_id == 1?
this.state.month.month_id == 1 ?
response.data.data.januari.is_approve :
this.state.month.month_id == 2?
this.state.month.month_id == 2 ?
response.data.data.februari.is_approve :
this.state.month.month_id == 3?
this.state.month.month_id == 3 ?
response.data.data.march.is_approve :
this.state.month.month_id == 4?
this.state.month.month_id == 4 ?
response.data.data.april.is_approve :
this.state.month.month_id == 5?
this.state.month.month_id == 5 ?
response.data.data.may.is_approve :
this.state.month.month_id == 6?
this.state.month.month_id == 6 ?
response.data.data.june.is_approve :
this.state.month.month_id == 7?
this.state.month.month_id == 7 ?
response.data.data.july.is_approve :
this.state.month.month_id == 8?
this.state.month.month_id == 8 ?
response.data.data.august.is_approve :
this.state.month.month_id == 9?
this.state.month.month_id == 9 ?
response.data.data.september.is_approve :
this.state.month.month_id == 10?
this.state.month.month_id == 10 ?
response.data.data.october.is_approve :
this.state.month.month_id == 11?
this.state.month.month_id == 11 ?
response.data.data.november.is_approve :
response.data.data.december.is_approve
......@@ -173,7 +173,7 @@ export default class SubHolding extends Component {
})
if (arrayBaru.length > 0) {
arrayBaru = arrayBaru.sort((a,b) => a.company_name.localeCompare(b.company_name))
arrayBaru = arrayBaru.sort((a, b) => a.company_name.localeCompare(b.company_name))
}
let defaultProps = {
......@@ -1054,7 +1054,7 @@ export default class SubHolding extends Component {
PLID = null
}
this.setState({ PLID }, () => {
let payloads = {...payload, report_id: 28, submission_id: this.state.PLID, months: this.state.month.month_id, quarter: 0}
let payloads = { ...payload, report_id: 28, submission_id: this.state.PLID, months: this.state.month.month_id, quarter: 0 }
console.log(payloads);
api.create().getReportPL(payloads).then(response => {
console.log(response);
......@@ -1365,7 +1365,7 @@ export default class SubHolding extends Component {
FRID = null
}
this.setState({ FRID }, () => {
let payloads = {...payload, report_id: 29, submission_id: this.state.FRID, months: this.state.month.month_id, quarter: 0}
let payloads = { ...payload, report_id: 29, submission_id: this.state.FRID, months: this.state.month.month_id, quarter: 0 }
api.create().getReportFR(payloads).then(response => {
console.log(payload);
console.log(response);
......@@ -1931,6 +1931,7 @@ export default class SubHolding extends Component {
} else if (this.state.report.value === 6) {
let dbSumaCF = []
let paylodCF = { ...payload, months: this.state.month.month_id }
console.log(paylodCF);
api.create().getReportCFSuma(paylodCF).then(response => {
console.log(response)
if (response.data) {
......@@ -1947,7 +1948,7 @@ export default class SubHolding extends Component {
let persenMtd = 0
if (mtd < 0) {
if (mtd_actual >= mtd) {
persenMtd = ((mtd - mtd_actual) / mtd + 1 )
persenMtd = ((mtd - mtd_actual) / mtd + 1)
} else {
persenMtd = ((mtd - mtd_actual) / mtd)
}
......@@ -1963,13 +1964,13 @@ export default class SubHolding extends Component {
let persenYtd = 0
if (ytd < 0) {
if (ytd_actual >= ytd) {
persenYtd = ((ytd - ytd_actual) / ytd + 1 )
persenYtd = ((ytd - ytd_actual) / ytd + 1)
} else {
persenYtd = ((ytd - ytd_actual) / ytd)
}
}
else {
persenYtd = Number(ytd_actual/ytd)
persenYtd = Number(ytd_actual / ytd)
}
let quarter_actual = item.cash_flow.quarter_actual == '' ? 0 : Number(item.cash_flow.quarter_actual)
......@@ -1990,7 +1991,7 @@ export default class SubHolding extends Component {
let fy_actual = item.cash_flow.fy_actual == '' ? 0 : Number(item.cash_flow.fy_actual)
let fy = item.cash_flow.fy == '' ? 0 : Number(item.cash_flow.fy)
// let persenFy = Number(fy_actual / fy)
console.log(fy_actual);
// console.log(fy_actual);
let persenFy = 0
if (fy < 0) {
if (fy_actual >= fy) {
......@@ -2051,12 +2052,12 @@ export default class SubHolding extends Component {
res.map((item, index) => {
let mtd_actual = item.cash_flow.mtd_actual == '' ? 0 : Number(item.cash_flow.mtd_actual)
let mtd = item.cash_flow.mtd == '' ? 0 : Number(item.cash_flow.mtd)
console.log(mtd)
// console.log(mtd)
// let persenMtd = Number(mtd_actual / mtd)
let persenMtd = 0
if (mtd < 0) {
if (mtd_actual >= mtd) {
persenMtd = ((mtd - mtd_actual) / mtd + 1 )
persenMtd = ((mtd - mtd_actual) / mtd + 1)
} else {
persenMtd = ((mtd - mtd_actual) / mtd)
}
......@@ -2071,13 +2072,13 @@ export default class SubHolding extends Component {
let persenYtd = 0
if (ytd < 0) {
if (ytd_actual >= ytd) {
persenYtd = ((ytd - ytd_actual) / ytd + 1 )
persenYtd = ((ytd - ytd_actual) / ytd + 1)
} else {
persenYtd = ((ytd - ytd_actual) / ytd)
}
}
else {
persenYtd = Number(ytd_actual/ytd)
persenYtd = Number(ytd_actual / ytd)
}
let quarter_actual = item.cash_flow.quarter_actual == '' ? 0 : Number(item.cash_flow.quarter_actual)
......@@ -2166,6 +2167,7 @@ export default class SubHolding extends Component {
console.log(res)
const handlePushChild = (item) => {
let indexIDzz = dataTable.findIndex((val) => val[1] === item.id)
let indexIDSuma = dbSumaCF.findIndex((val) => val[0] === item.id)
if (indexIDzz === -1) {
dataTable.push([
item.type_report_id,
......@@ -2207,6 +2209,8 @@ export default class SubHolding extends Component {
item.cash_flow.olpa_november,
item.cash_flow.olpa_december,
item.cash_flow.olpa_total_current_year,
...dbSumaCF[indexIDSuma]
])
}
if (item.children !== null) {
......@@ -2218,6 +2222,7 @@ export default class SubHolding extends Component {
}
}
res.map((item, index) => {
let indexIDSuma = dbSumaCF.findIndex((val) => val[0] === item.id)
dataTable.push([
item.type_report_id,
item.id,
......@@ -2258,6 +2263,7 @@ export default class SubHolding extends Component {
item.cash_flow.olpa_november,
item.cash_flow.olpa_december,
item.cash_flow.olpa_total_current_year,
...dbSumaCF[indexIDSuma]
])
if (item.children !== null) {
if (item.children.length > 0) {
......@@ -2303,7 +2309,7 @@ export default class SubHolding extends Component {
})
} else if (this.state.report.value === 7) {
let dbSumaBS = []
let payloadBS = {...payload, report_id: 2, months: this.state.month.month_id, quarter: 0}
let payloadBS = { ...payload, report_id: 2, months: this.state.month.month_id, quarter: 0 }
api.create().getReportBSSuma(payloadBS).then(response => {
// console.log(payloadBS);
console.log(response);
......@@ -2321,22 +2327,22 @@ export default class SubHolding extends Component {
if (mtd_mb < 0) {
if (parseFloat(mtd_actual) < parseFloat(mtd_mb)) {
persenMtd = Number((mtd_mb - mtd_actual)/mtd_mb)
persenMtd = Number((mtd_mb - mtd_actual) / mtd_mb)
} else {
persenMtd = Number((mtd_mb - mtd_actual)/mtd_mb) + 1
persenMtd = Number((mtd_mb - mtd_actual) / mtd_mb) + 1
}
} else {
persenMtd = Number(mtd_actual/mtd_mb)
persenMtd = Number(mtd_actual / mtd_mb)
}
if (mtd_ol < 0) {
if (parseFloat(mtd_actual) < parseFloat(mtd_ol)) {
persenOL = Number((mtd_ol - mtd_actual)/mtd_ol)
persenOL = Number((mtd_ol - mtd_actual) / mtd_ol)
} else {
persenOL = Number((mtd_ol - mtd_actual)/mtd_ol) + 1
persenOL = Number((mtd_ol - mtd_actual) / mtd_ol) + 1
}
} else {
persenOL = Number(mtd_actual/mtd_ol)
persenOL = Number(mtd_actual / mtd_ol)
}
dbSumaBS.push([
......@@ -2375,22 +2381,22 @@ export default class SubHolding extends Component {
if (mtd_mb < 0) {
if (parseFloat(mtd_actual) < parseFloat(mtd_mb)) {
persenMtd = Number((mtd_mb - mtd_actual)/mtd_mb)
persenMtd = Number((mtd_mb - mtd_actual) / mtd_mb)
} else {
persenMtd = Number((mtd_mb - mtd_actual)/mtd_mb) + 1
persenMtd = Number((mtd_mb - mtd_actual) / mtd_mb) + 1
}
} else {
persenMtd = Number(mtd_actual/mtd_mb)
persenMtd = Number(mtd_actual / mtd_mb)
}
if (mtd_ol < 0) {
if (parseFloat(mtd_actual) < parseFloat(mtd_ol)) {
persenOL = Number((mtd_ol - mtd_actual)/mtd_ol)
persenOL = Number((mtd_ol - mtd_actual) / mtd_ol)
} else {
persenOL = Number((mtd_ol - mtd_actual)/mtd_ol) + 1
persenOL = Number((mtd_ol - mtd_actual) / mtd_ol) + 1
}
} else {
persenOL = Number(mtd_actual/mtd_ol)
persenOL = Number(mtd_actual / mtd_ol)
}
dbSumaBS.push([
......@@ -2438,7 +2444,7 @@ export default class SubHolding extends Component {
} else if (this.state.report.value === 8) {
let dbSumaPL = []
let payloadPL = {...payload, report_id: 28, months: this.state.month.month_id}
let payloadPL = { ...payload, report_id: 28, months: this.state.month.month_id }
api.create().getReportPLSuma(payloadPL).then(response => {
console.log(response);
if (response.data) {
......@@ -2449,9 +2455,9 @@ export default class SubHolding extends Component {
let indexIDzz = dbSumaPL.findIndex((val) => val[1] === item.id)
if (indexIDzz === -1) {
let month = this.state.month.month_value;
let mtd_actual = item.profit_loss.mtd_actual == ''? 0 : Number(item.profit_loss.mtd_actual)
let mtd_mb = item.profit_loss.mtd_mb == ''? 0 : Number(item.profit_loss.mtd_mb)
let mtd_last_year = item.profit_loss.mtd_last_year == ''? 0 : Number(item.profit_loss.mtd_last_year)
let mtd_actual = item.profit_loss.mtd_actual == '' ? 0 : Number(item.profit_loss.mtd_actual)
let mtd_mb = item.profit_loss.mtd_mb == '' ? 0 : Number(item.profit_loss.mtd_mb)
let mtd_last_year = item.profit_loss.mtd_last_year == '' ? 0 : Number(item.profit_loss.mtd_last_year)
let persenMtd = 0
if (mtd_mb < 0) {
if (mtd_actual >= mtd_mb) {
......@@ -2473,13 +2479,13 @@ export default class SubHolding extends Component {
}
}
else {
persenMtdLY = mtd_actual/mtd_last_year
persenMtdLY = mtd_actual / mtd_last_year
}
let ytd_actual = item.profit_loss.ytd_actual == ''? 0 : Number(item.profit_loss.ytd_actual)
let ytd_mb = item.profit_loss.ytd_mb == ''? 0 : Number(item.profit_loss.ytd_mb)
let ytd_last_year = item.profit_loss.ytd_last_year == ''? 0 : Number(item.profit_loss.ytd_last_year)
let ytd_actual = item.profit_loss.ytd_actual == '' ? 0 : Number(item.profit_loss.ytd_actual)
let ytd_mb = item.profit_loss.ytd_mb == '' ? 0 : Number(item.profit_loss.ytd_mb)
let ytd_last_year = item.profit_loss.ytd_last_year == '' ? 0 : Number(item.profit_loss.ytd_last_year)
let persenYtdMB = 0
if (ytd_mb < 0) {
if (ytd_actual >= ytd_mb) {
......@@ -2505,11 +2511,11 @@ export default class SubHolding extends Component {
}
// let q1_actual = item.profit_loss.q1_actual == ''? 0 : Number(item.profit_loss.q1_actual)
let q_actual = month == "Mar" ? item.profit_loss.q1_actual == ''? 0 : Number(item.profit_loss.q1_actual) : month == "Jun" ? item.profit_loss.q2_actual == ''? 0 : Number(item.profit_loss.q2_actual) : month == "Sep" ? item.profit_loss.q3_actual == ''? 0 : Number(item.profit_loss.q3_actual) : 0
let q_actual = month == "Mar" ? item.profit_loss.q1_actual == '' ? 0 : Number(item.profit_loss.q1_actual) : month == "Jun" ? item.profit_loss.q2_actual == '' ? 0 : Number(item.profit_loss.q2_actual) : month == "Sep" ? item.profit_loss.q3_actual == '' ? 0 : Number(item.profit_loss.q3_actual) : 0
// let q1_mb = item.profit_loss.q1_mb == ''? 0 : Number(item.profit_loss.q1_mb)
let q_mb = month == "Mar" ? item.profit_loss.q1_mb == ''? 0 : Number(item.profit_loss.q1_mb) : month == "Jun" ? item.profit_loss.q2_mb == ''? 0 : Number(item.profit_loss.q2_mb) : month == "Sep" ? item.profit_loss.q3_mb == ''? 0 : Number(item.profit_loss.q3_mb) : 0
let q_mb = month == "Mar" ? item.profit_loss.q1_mb == '' ? 0 : Number(item.profit_loss.q1_mb) : month == "Jun" ? item.profit_loss.q2_mb == '' ? 0 : Number(item.profit_loss.q2_mb) : month == "Sep" ? item.profit_loss.q3_mb == '' ? 0 : Number(item.profit_loss.q3_mb) : 0
// let q1_last_year = item.profit_loss.q1_last_year == ''? 0 : Number(item.profit_loss.q1_last_year)
let q_last_year = month == "Mar" ? item.profit_loss.q1_last_year == ''? 0 : Number(item.profit_loss.q1_last_year) : month == "Jun" ? item.profit_loss.q2_last_year == ''? 0 : Number(item.profit_loss.q2_last_year) : month == "Sep" ? item.profit_loss.q3_last_year == ''? 0 : Number(item.profit_loss.q3_last_year) : 0
let q_last_year = month == "Mar" ? item.profit_loss.q1_last_year == '' ? 0 : Number(item.profit_loss.q1_last_year) : month == "Jun" ? item.profit_loss.q2_last_year == '' ? 0 : Number(item.profit_loss.q2_last_year) : month == "Sep" ? item.profit_loss.q3_last_year == '' ? 0 : Number(item.profit_loss.q3_last_year) : 0
let persenQuarterMB = 0
if (q_mb < 0) {
if (q_actual >= q_mb) {
......@@ -2534,10 +2540,10 @@ export default class SubHolding extends Component {
persenQuarterLY = q_actual / q_last_year
}
let fy_actual = item.profit_loss.fy_actual == ''? 0 : Number(item.profit_loss.fy_actual)
let fy_mb = item.profit_loss.fy_mb == ''? 0 : Number(item.profit_loss.fy_mb)
let fy_ol = item.profit_loss.fy_ol == ''? 0 : Number(item.profit_loss.fy_ol)
let fy_last_year = item.profit_loss.fy_last_year == ''? 0 : Number(item.profit_loss.fy_last_year)
let fy_actual = item.profit_loss.fy_actual == '' ? 0 : Number(item.profit_loss.fy_actual)
let fy_mb = item.profit_loss.fy_mb == '' ? 0 : Number(item.profit_loss.fy_mb)
let fy_ol = item.profit_loss.fy_ol == '' ? 0 : Number(item.profit_loss.fy_ol)
let fy_last_year = item.profit_loss.fy_last_year == '' ? 0 : Number(item.profit_loss.fy_last_year)
let persenFyMB = 0
if (fy_mb < 0) {
if (fy_actual >= fy_mb) {
......@@ -2613,14 +2619,14 @@ export default class SubHolding extends Component {
item.description,
item.profit_loss.mtd_actual,
item.profit_loss.mtd_mb,
isNaN(persenMtd) || persenMtd == 'Infinity' || persenMtd == '-Infinity'? (item.profit_loss.mtd_mb == '' || item.profit_loss.mtd_mb == 0? -0 : 0) : (item.profit_loss.mtd_mb == '' || item.profit_loss.mtd_mb == 0? persenMtd * -100 : persenMtd * 100),
isNaN(persenMtd) || persenMtd == 'Infinity' || persenMtd == '-Infinity' ? (item.profit_loss.mtd_mb == '' || item.profit_loss.mtd_mb == 0 ? -0 : 0) : (item.profit_loss.mtd_mb == '' || item.profit_loss.mtd_mb == 0 ? persenMtd * -100 : persenMtd * 100),
item.profit_loss.mtd_last_year,
isNaN(persenMtdLY) || persenMtdLY == 'Infinity' || persenMtdLY == '-Infinity'? (item.profit_loss.mtd_last_year == '' || item.profit_loss.mtd_last_year == 0? -0 : 0) : (item.profit_loss.mtd_last_year == '' || item.profit_loss.mtd_last_year == 0? persenMtdLY * -100 : persenMtdLY * 100),
isNaN(persenMtdLY) || persenMtdLY == 'Infinity' || persenMtdLY == '-Infinity' ? (item.profit_loss.mtd_last_year == '' || item.profit_loss.mtd_last_year == 0 ? -0 : 0) : (item.profit_loss.mtd_last_year == '' || item.profit_loss.mtd_last_year == 0 ? persenMtdLY * -100 : persenMtdLY * 100),
item.profit_loss.ytd_actual,
item.profit_loss.ytd_mb,
isNaN(persenYtdMB) || persenYtdMB == 'Infinity' || persenYtdMB == '-Infinity'? (item.profit_loss.ytd_mb == '' || item.profit_loss.ytd_mb == 0? -0 : 0) : (item.profit_loss.ytd_mb == '' || item.profit_loss.ytd_mb == 0? persenYtdMB * -100 : persenYtdMB * 100),
isNaN(persenYtdMB) || persenYtdMB == 'Infinity' || persenYtdMB == '-Infinity' ? (item.profit_loss.ytd_mb == '' || item.profit_loss.ytd_mb == 0 ? -0 : 0) : (item.profit_loss.ytd_mb == '' || item.profit_loss.ytd_mb == 0 ? persenYtdMB * -100 : persenYtdMB * 100),
item.profit_loss.ytd_last_year,
isNaN(persenYtdLY) || persenYtdLY == 'Infinity' || persenYtdLY == '-Infinity'? (item.profit_loss.ytd_last_year == '' || item.profit_loss.ytd_last_year == 0? -0 : 0) : (item.profit_loss.ytd_last_year == '' || item.profit_loss.ytd_last_year == 0? persenYtdLY * -100 : persenYtdLY * 100),
isNaN(persenYtdLY) || persenYtdLY == 'Infinity' || persenYtdLY == '-Infinity' ? (item.profit_loss.ytd_last_year == '' || item.profit_loss.ytd_last_year == 0 ? -0 : 0) : (item.profit_loss.ytd_last_year == '' || item.profit_loss.ytd_last_year == 0 ? persenYtdLY * -100 : persenYtdLY * 100),
month == "Mar" ? item.profit_loss.q1_actual :
month == "Jun" ? item.profit_loss.q2_actual :
month == "Sep" ? item.profit_loss.q3_actual :
......@@ -2629,22 +2635,22 @@ export default class SubHolding extends Component {
month == "Jun" ? item.profit_loss.q2_mb :
month == "Sep" ? item.profit_loss.q3_mb :
month == "Dec" ? item.profit_loss.q4_mb : 0,
isNaN(persenQuarterMB) || persenQuarterMB == 'Infinity' || persenQuarterMB == '-Infinity'? (q_mb == '' || q_mb == 0? -0 : 0) : (q_mb == '' || q_mb == 0? persenQuarterMB * -100 : persenQuarterMB * 100),
isNaN(persenQuarterMB) || persenQuarterMB == 'Infinity' || persenQuarterMB == '-Infinity' ? (q_mb == '' || q_mb == 0 ? -0 : 0) : (q_mb == '' || q_mb == 0 ? persenQuarterMB * -100 : persenQuarterMB * 100),
// isNaN(persenQuarterMB) || persenQuarterMB == 'Infinity' || persenQuarterMB == '-Infinity'? (item.profit_loss.q1_mb == '' || item.profit_loss.q1_mb == 0? -0 : 0) : (item.profit_loss.q1_mb == '' || item.profit_loss.q1_mb == 0? persenQuarterMB * -100 : persenQuarterMB * 100),
month == "Mar" ? item.profit_loss.q1_last_year :
month == "Jun" ? item.profit_loss.q2_last_year :
month == "Sep" ? item.profit_loss.q3_last_year :
month == "Dec" ? item.profit_loss.q4_last_year : 0,
isNaN(persenQuarterLY) || persenQuarterLY == 'Infinity' || persenQuarterLY == '-Infinity'? (q_last_year == '' || q_last_year == 0? -0 : 0) : (q_last_year == '' || q_last_year == 0? persenQuarterLY * -100 : persenQuarterLY * 100),
isNaN(persenQuarterLY) || persenQuarterLY == 'Infinity' || persenQuarterLY == '-Infinity' ? (q_last_year == '' || q_last_year == 0 ? -0 : 0) : (q_last_year == '' || q_last_year == 0 ? persenQuarterLY * -100 : persenQuarterLY * 100),
// isNaN(persenQuarterLY) || persenQuarterLY == 'Infinity' || persenQuarterLY == '-Infinity'? (item.profit_loss.q1_last_year == '' || item.profit_loss.q1_last_year == 0? -0 : 0) : (item.profit_loss.q1_last_year == '' || item.profit_loss.q1_last_year == 0? persenQuarterLY * -100 : persenQuarterLY * 100),
item.profit_loss.fy_actual,
item.profit_loss.fy_mb,
isNaN(persenFyMB) || persenFyMB == 'Infinity' || persenFyMB == '-Infinity'? (item.profit_loss.fy_mb == '' || item.profit_loss.fy_mb == 0? -0 : 0) : (item.profit_loss.fy_mb == '' || item.profit_loss.fy_mb == 0? persenFyMB * -100 : persenFyMB * 100),
isNaN(persenFyMB) || persenFyMB == 'Infinity' || persenFyMB == '-Infinity' ? (item.profit_loss.fy_mb == '' || item.profit_loss.fy_mb == 0 ? -0 : 0) : (item.profit_loss.fy_mb == '' || item.profit_loss.fy_mb == 0 ? persenFyMB * -100 : persenFyMB * 100),
item.profit_loss.fy_ol,
isNaN(persenFyOL) || persenFyOL == 'Infinity' || persenFyOL == '-Infinity'? (item.profit_loss.fy_ol == '' || item.profit_loss.fy_ol == 0? -0 : 0) : (item.profit_loss.fy_ol == '' || item.profit_loss.fy_ol == 0? persenFyOL * -100 : persenFyOL * 100),
isNaN(persenFyOL) || persenFyOL == 'Infinity' || persenFyOL == '-Infinity' ? (item.profit_loss.fy_ol == '' || item.profit_loss.fy_ol == 0 ? -0 : 0) : (item.profit_loss.fy_ol == '' || item.profit_loss.fy_ol == 0 ? persenFyOL * -100 : persenFyOL * 100),
item.profit_loss.fy_last_year,
isNaN(persenFyLY) || persenFyLY == 'Infinity' || persenFyLY == '-Infinity'? (item.profit_loss.fy_last_year == '' || item.profit_loss.fy_last_year == 0? -0 : 0) : (item.profit_loss.fy_last_year == '' || item.profit_loss.fy_last_year == 0? persenFyLY * -100 : persenFyLY * 100),
isNaN(persenFyOLMB) || persenFyOLMB == 'Infinity' || persenFyOLMB == '-Infinity'? (item.profit_loss.fy_percent_ach_ol_to_mb == '' || item.profit_loss.fy_percent_ach_ol_to_mb == 0? -0 : 0) : (item.profit_loss.fy_percent_ach_ol_to_mb == '' || item.profit_loss.fy_percent_ach_ol_to_mb == 0? persenFyOLMB * -100 : persenFyOLMB * 100),
isNaN(persenFyLY) || persenFyLY == 'Infinity' || persenFyLY == '-Infinity' ? (item.profit_loss.fy_last_year == '' || item.profit_loss.fy_last_year == 0 ? -0 : 0) : (item.profit_loss.fy_last_year == '' || item.profit_loss.fy_last_year == 0 ? persenFyLY * -100 : persenFyLY * 100),
isNaN(persenFyOLMB) || persenFyOLMB == 'Infinity' || persenFyOLMB == '-Infinity' ? (item.profit_loss.fy_percent_ach_ol_to_mb == '' || item.profit_loss.fy_percent_ach_ol_to_mb == 0 ? -0 : 0) : (item.profit_loss.fy_percent_ach_ol_to_mb == '' || item.profit_loss.fy_percent_ach_ol_to_mb == 0 ? persenFyOLMB * -100 : persenFyOLMB * 100),
item.profit_loss.forecast_next_year,
item.profit_loss.forecast_more_year,
item.profit_loss.notes,
......@@ -2658,11 +2664,11 @@ export default class SubHolding extends Component {
}
}
}
res.map((item,index) => {
res.map((item, index) => {
let month = this.state.month.month_value;
let mtd_actual = item.profit_loss.mtd_actual == ''? 0 : Number(item.profit_loss.mtd_actual)
let mtd_mb = item.profit_loss.mtd_mb == ''? 0 : Number(item.profit_loss.mtd_mb)
let mtd_last_year = item.profit_loss.mtd_last_year == ''? 0 : Number(item.profit_loss.mtd_last_year)
let mtd_actual = item.profit_loss.mtd_actual == '' ? 0 : Number(item.profit_loss.mtd_actual)
let mtd_mb = item.profit_loss.mtd_mb == '' ? 0 : Number(item.profit_loss.mtd_mb)
let mtd_last_year = item.profit_loss.mtd_last_year == '' ? 0 : Number(item.profit_loss.mtd_last_year)
let persenMtd = 0
if (mtd_mb < 0) {
if (mtd_actual >= mtd_mb) {
......@@ -2684,13 +2690,13 @@ export default class SubHolding extends Component {
}
}
else {
persenMtdLY = mtd_actual/mtd_last_year
persenMtdLY = mtd_actual / mtd_last_year
}
let ytd_actual = item.profit_loss.ytd_actual == ''? 0 : Number(item.profit_loss.ytd_actual)
let ytd_mb = item.profit_loss.ytd_mb == ''? 0 : Number(item.profit_loss.ytd_mb)
let ytd_last_year = item.profit_loss.ytd_last_year == ''? 0 : Number(item.profit_loss.ytd_last_year)
let ytd_actual = item.profit_loss.ytd_actual == '' ? 0 : Number(item.profit_loss.ytd_actual)
let ytd_mb = item.profit_loss.ytd_mb == '' ? 0 : Number(item.profit_loss.ytd_mb)
let ytd_last_year = item.profit_loss.ytd_last_year == '' ? 0 : Number(item.profit_loss.ytd_last_year)
let persenYtdMB = 0
if (ytd_mb < 0) {
if (ytd_actual >= ytd_mb) {
......@@ -2742,9 +2748,9 @@ export default class SubHolding extends Component {
// persenQuarterLY = q1_actual / q1_last_year
// }
let q_actual = month == "Mar" ? item.profit_loss.q1_actual == ''? 0 : Number(item.profit_loss.q1_actual) : month == "Jun" ? item.profit_loss.q2_actual == ''? 0 : Number(item.profit_loss.q2_actual) : month == "Sep" ? item.profit_loss.q3_actual == ''? 0 : Number(item.profit_loss.q3_actual) : 0
let q_mb = month == "Mar" ? item.profit_loss.q1_mb == ''? 0 : Number(item.profit_loss.q1_mb) : month == "Jun" ? item.profit_loss.q2_mb == ''? 0 : Number(item.profit_loss.q2_mb) : month == "Sep" ? item.profit_loss.q3_mb == ''? 0 : Number(item.profit_loss.q3_mb) : 0
let q_last_year = month == "Mar" ? item.profit_loss.q1_last_year == ''? 0 : Number(item.profit_loss.q1_last_year) : month == "Jun" ? item.profit_loss.q2_last_year == ''? 0 : Number(item.profit_loss.q2_last_year) : month == "Sep" ? item.profit_loss.q3_last_year == ''? 0 : Number(item.profit_loss.q3_last_year) : 0
let q_actual = month == "Mar" ? item.profit_loss.q1_actual == '' ? 0 : Number(item.profit_loss.q1_actual) : month == "Jun" ? item.profit_loss.q2_actual == '' ? 0 : Number(item.profit_loss.q2_actual) : month == "Sep" ? item.profit_loss.q3_actual == '' ? 0 : Number(item.profit_loss.q3_actual) : 0
let q_mb = month == "Mar" ? item.profit_loss.q1_mb == '' ? 0 : Number(item.profit_loss.q1_mb) : month == "Jun" ? item.profit_loss.q2_mb == '' ? 0 : Number(item.profit_loss.q2_mb) : month == "Sep" ? item.profit_loss.q3_mb == '' ? 0 : Number(item.profit_loss.q3_mb) : 0
let q_last_year = month == "Mar" ? item.profit_loss.q1_last_year == '' ? 0 : Number(item.profit_loss.q1_last_year) : month == "Jun" ? item.profit_loss.q2_last_year == '' ? 0 : Number(item.profit_loss.q2_last_year) : month == "Sep" ? item.profit_loss.q3_last_year == '' ? 0 : Number(item.profit_loss.q3_last_year) : 0
let persenQuarterMB = 0
if (q_mb < 0) {
if (q_actual >= q_mb) {
......@@ -2769,10 +2775,10 @@ export default class SubHolding extends Component {
persenQuarterLY = q_actual / q_last_year
}
let fy_actual = item.profit_loss.fy_actual == ''? 0 : Number(item.profit_loss.fy_actual)
let fy_mb = item.profit_loss.fy_mb == ''? 0 : Number(item.profit_loss.fy_mb)
let fy_ol = item.profit_loss.fy_ol == ''? 0 : Number(item.profit_loss.fy_ol)
let fy_last_year = item.profit_loss.fy_last_year == ''? 0 : Number(item.profit_loss.fy_last_year)
let fy_actual = item.profit_loss.fy_actual == '' ? 0 : Number(item.profit_loss.fy_actual)
let fy_mb = item.profit_loss.fy_mb == '' ? 0 : Number(item.profit_loss.fy_mb)
let fy_ol = item.profit_loss.fy_ol == '' ? 0 : Number(item.profit_loss.fy_ol)
let fy_last_year = item.profit_loss.fy_last_year == '' ? 0 : Number(item.profit_loss.fy_last_year)
let persenFyMB = 0
if (fy_mb < 0) {
if (fy_actual >= fy_mb) {
......@@ -2842,14 +2848,14 @@ export default class SubHolding extends Component {
item.description,
item.profit_loss.mtd_actual,
item.profit_loss.mtd_mb,
isNaN(persenMtd) || persenMtd == 'Infinity' || persenMtd == '-Infinity'? (item.profit_loss.mtd_mb == '' || item.profit_loss.mtd_mb == 0? -0 : 0) : (item.profit_loss.mtd_mb == '' || item.profit_loss.mtd_mb == 0? persenMtd * -100 : persenMtd * 100),
isNaN(persenMtd) || persenMtd == 'Infinity' || persenMtd == '-Infinity' ? (item.profit_loss.mtd_mb == '' || item.profit_loss.mtd_mb == 0 ? -0 : 0) : (item.profit_loss.mtd_mb == '' || item.profit_loss.mtd_mb == 0 ? persenMtd * -100 : persenMtd * 100),
item.profit_loss.mtd_last_year,
isNaN(persenMtdLY) || persenMtdLY == 'Infinity' || persenMtdLY == '-Infinity'? (item.profit_loss.mtd_last_year == '' || item.profit_loss.mtd_last_year == 0? -0 : 0) : (item.profit_loss.mtd_last_year == '' || item.profit_loss.mtd_last_year == 0? persenMtdLY * -100 : persenMtdLY * 100),
isNaN(persenMtdLY) || persenMtdLY == 'Infinity' || persenMtdLY == '-Infinity' ? (item.profit_loss.mtd_last_year == '' || item.profit_loss.mtd_last_year == 0 ? -0 : 0) : (item.profit_loss.mtd_last_year == '' || item.profit_loss.mtd_last_year == 0 ? persenMtdLY * -100 : persenMtdLY * 100),
item.profit_loss.ytd_actual,
item.profit_loss.ytd_mb,
isNaN(persenYtdMB) || persenYtdMB == 'Infinity' || persenYtdMB == '-Infinity'? (item.profit_loss.ytd_mb == '' || item.profit_loss.ytd_mb == 0? -0 : 0) : (item.profit_loss.ytd_mb == '' || item.profit_loss.ytd_mb == 0? persenYtdMB * -100 : persenYtdMB * 100),
isNaN(persenYtdMB) || persenYtdMB == 'Infinity' || persenYtdMB == '-Infinity' ? (item.profit_loss.ytd_mb == '' || item.profit_loss.ytd_mb == 0 ? -0 : 0) : (item.profit_loss.ytd_mb == '' || item.profit_loss.ytd_mb == 0 ? persenYtdMB * -100 : persenYtdMB * 100),
item.profit_loss.ytd_last_year,
isNaN(persenYtdLY) || persenYtdLY == 'Infinity' || persenYtdLY == '-Infinity'? (item.profit_loss.ytd_last_year == '' || item.profit_loss.ytd_last_year == 0? -0 : 0) : (item.profit_loss.ytd_last_year == '' || item.profit_loss.ytd_last_year == 0? persenYtdLY * -100 : persenYtdLY * 100),
isNaN(persenYtdLY) || persenYtdLY == 'Infinity' || persenYtdLY == '-Infinity' ? (item.profit_loss.ytd_last_year == '' || item.profit_loss.ytd_last_year == 0 ? -0 : 0) : (item.profit_loss.ytd_last_year == '' || item.profit_loss.ytd_last_year == 0 ? persenYtdLY * -100 : persenYtdLY * 100),
month == "Mar" ? item.profit_loss.q1_actual :
month == "Jun" ? item.profit_loss.q2_actual :
month == "Sep" ? item.profit_loss.q3_actual :
......@@ -2858,20 +2864,20 @@ export default class SubHolding extends Component {
month == "Jun" ? item.profit_loss.q2_mb :
month == "Sep" ? item.profit_loss.q3_mb :
month == "Dec" ? item.profit_loss.q4_mb : 0,
isNaN(persenQuarterMB) || persenQuarterMB == 'Infinity' || persenQuarterMB == '-Infinity'? (q_mb == '' || q_mb == 0? -0 : 0) : (q_mb == '' || q_mb == 0? persenQuarterMB * -100 : persenQuarterMB * 100),
isNaN(persenQuarterMB) || persenQuarterMB == 'Infinity' || persenQuarterMB == '-Infinity' ? (q_mb == '' || q_mb == 0 ? -0 : 0) : (q_mb == '' || q_mb == 0 ? persenQuarterMB * -100 : persenQuarterMB * 100),
month == "Mar" ? item.profit_loss.q1_last_year :
month == "Jun" ? item.profit_loss.q2_last_year :
month == "Sep" ? item.profit_loss.q3_last_year :
month == "Dec" ? item.profit_loss.q4_last_year : 0,
isNaN(persenQuarterLY) || persenQuarterLY == 'Infinity' || persenQuarterLY == '-Infinity'? (q_last_year == '' || q_last_year == 0? -0 : 0) : (q_last_year == '' || q_last_year == 0? persenQuarterLY * -100 : persenQuarterLY * 100),
isNaN(persenQuarterLY) || persenQuarterLY == 'Infinity' || persenQuarterLY == '-Infinity' ? (q_last_year == '' || q_last_year == 0 ? -0 : 0) : (q_last_year == '' || q_last_year == 0 ? persenQuarterLY * -100 : persenQuarterLY * 100),
item.profit_loss.fy_actual,
item.profit_loss.fy_mb,
isNaN(persenFyMB) || persenFyMB == 'Infinity' || persenFyMB == '-Infinity'? (item.profit_loss.fy_mb == '' || item.profit_loss.fy_mb == 0? -0 : 0) : (item.profit_loss.fy_mb == '' || item.profit_loss.fy_mb == 0? persenFyMB * -100 : persenFyMB * 100),
isNaN(persenFyMB) || persenFyMB == 'Infinity' || persenFyMB == '-Infinity' ? (item.profit_loss.fy_mb == '' || item.profit_loss.fy_mb == 0 ? -0 : 0) : (item.profit_loss.fy_mb == '' || item.profit_loss.fy_mb == 0 ? persenFyMB * -100 : persenFyMB * 100),
item.profit_loss.fy_ol,
isNaN(persenFyOL) || persenFyOL == 'Infinity' || persenFyOL == '-Infinity'? (item.profit_loss.fy_ol == '' || item.profit_loss.fy_ol == 0? -0 : 0) : (item.profit_loss.fy_ol == '' || item.profit_loss.fy_ol == 0? persenFyOL * -100 : persenFyOL * 100),
isNaN(persenFyOL) || persenFyOL == 'Infinity' || persenFyOL == '-Infinity' ? (item.profit_loss.fy_ol == '' || item.profit_loss.fy_ol == 0 ? -0 : 0) : (item.profit_loss.fy_ol == '' || item.profit_loss.fy_ol == 0 ? persenFyOL * -100 : persenFyOL * 100),
item.profit_loss.fy_last_year,
isNaN(persenFyLY) || persenFyLY == 'Infinity' || persenFyLY == '-Infinity'? (item.profit_loss.fy_last_year == '' || item.profit_loss.fy_last_year == 0? -0 : 0) : (item.profit_loss.fy_last_year == '' || item.profit_loss.fy_last_year == 0? persenFyLY * -100 : persenFyLY * 100),
isNaN(persenFyOLMB) || persenFyOLMB == 'Infinity' || persenFyOLMB == '-Infinity'? (item.profit_loss.fy_percent_ach_ol_to_mb == '' || item.profit_loss.fy_percent_ach_ol_to_mb == 0? -0 : 0) : (item.profit_loss.fy_percent_ach_ol_to_mb == '' || item.profit_loss.fy_percent_ach_ol_to_mb == 0? persenFyOLMB * -100 : persenFyOLMB * 100),
isNaN(persenFyLY) || persenFyLY == 'Infinity' || persenFyLY == '-Infinity' ? (item.profit_loss.fy_last_year == '' || item.profit_loss.fy_last_year == 0 ? -0 : 0) : (item.profit_loss.fy_last_year == '' || item.profit_loss.fy_last_year == 0 ? persenFyLY * -100 : persenFyLY * 100),
isNaN(persenFyOLMB) || persenFyOLMB == 'Infinity' || persenFyOLMB == '-Infinity' ? (item.profit_loss.fy_percent_ach_ol_to_mb == '' || item.profit_loss.fy_percent_ach_ol_to_mb == 0 ? -0 : 0) : (item.profit_loss.fy_percent_ach_ol_to_mb == '' || item.profit_loss.fy_percent_ach_ol_to_mb == 0 ? persenFyOLMB * -100 : persenFyOLMB * 100),
item.profit_loss.forecast_next_year,
item.profit_loss.forecast_more_year,
item.profit_loss.notes,
......@@ -2932,7 +2938,7 @@ export default class SubHolding extends Component {
let mtdPersenMB = 0
if (mtd_mb < 0) {
if (mtd_actual >= mtd_mb) {
mtdPersenMB = ((mtd_mb - mtd_actual) / mtd_mb + 1 )
mtdPersenMB = ((mtd_mb - mtd_actual) / mtd_mb + 1)
} else {
mtdPersenMB = ((mtd_mb - mtd_actual) / mtd_mb)
}
......@@ -2946,7 +2952,7 @@ export default class SubHolding extends Component {
let fyPersenMB = 0
if (fy_mb < 0) {
if (fy_actual >= fy_mb) {
fyPersenMB = ((fy_mb - fy_actual) / fy_mb + 1 )
fyPersenMB = ((fy_mb - fy_actual) / fy_mb + 1)
} else {
fyPersenMB = ((fy_mb - fy_actual) / fy_mb)
}
......@@ -2960,7 +2966,7 @@ export default class SubHolding extends Component {
let fyPersenOL = 0
if (fy_ol < 0) {
if (fy_actual >= fy_ol) {
fyPersenOL = ((fy_ol - fy_actual) / fy_ol + 1 )
fyPersenOL = ((fy_ol - fy_actual) / fy_ol + 1)
} else {
fyPersenOL = ((fy_ol - fy_actual) / fy_ol)
}
......@@ -2974,7 +2980,7 @@ export default class SubHolding extends Component {
let fyPersenLY = 0
if (fy_last_year < 0) {
if (fy_actual >= fy_last_year) {
fyPersenLY = ((fy_last_year - fy_actual) / fy_last_year + 1 )
fyPersenLY = ((fy_last_year - fy_actual) / fy_last_year + 1)
} else {
fyPersenLY = ((fy_last_year - fy_actual) / fy_last_year)
}
......@@ -3020,7 +3026,7 @@ export default class SubHolding extends Component {
let mtdPersenMB = 0
if (mtd_mb < 0) {
if (mtd_actual >= mtd_mb) {
mtdPersenMB = ((mtd_mb - mtd_actual) / mtd_mb + 1 )
mtdPersenMB = ((mtd_mb - mtd_actual) / mtd_mb + 1)
} else {
mtdPersenMB = ((mtd_mb - mtd_actual) / mtd_mb)
}
......@@ -3034,7 +3040,7 @@ export default class SubHolding extends Component {
let fyPersenMB = 0
if (fy_mb < 0) {
if (fy_actual >= fy_mb) {
fyPersenMB = ((fy_mb - fy_actual) / fy_mb + 1 )
fyPersenMB = ((fy_mb - fy_actual) / fy_mb + 1)
} else {
fyPersenMB = ((fy_mb - fy_actual) / fy_mb)
}
......@@ -3048,7 +3054,7 @@ export default class SubHolding extends Component {
let fyPersenOL = 0
if (fy_ol < 0) {
if (fy_actual >= fy_ol) {
fyPersenOL = ((fy_ol - fy_actual) / fy_ol + 1 )
fyPersenOL = ((fy_ol - fy_actual) / fy_ol + 1)
} else {
fyPersenOL = ((fy_ol - fy_actual) / fy_ol)
}
......@@ -3062,7 +3068,7 @@ export default class SubHolding extends Component {
let fyPersenLY = 0
if (fy_last_year < 0) {
if (fy_actual >= fy_last_year) {
fyPersenLY = ((fy_last_year - fy_actual) / fy_last_year + 1 )
fyPersenLY = ((fy_last_year - fy_actual) / fy_last_year + 1)
} else {
fyPersenLY = ((fy_last_year - fy_actual) / fy_last_year)
}
......@@ -3126,7 +3132,7 @@ export default class SubHolding extends Component {
})
} else if (this.state.report.value === 11) {
let dbCATPQ = [];
let payloadCATPQ = {...payload, report_id: 10, quarter: this.state.quarter.name}
let payloadCATPQ = { ...payload, report_id: 10, quarter: this.state.quarter.name }
api.create().getReportCATPQ(payloadCATPQ).then(response => {
console.log(payloadCATPQ);
console.log(response);
......@@ -3246,7 +3252,7 @@ export default class SubHolding extends Component {
})
} else if (this.state.report.value === 10) {
let dbCATPA = []
let payloadCATPA = {...payload, months: this.state.month.month_id, get_for: "view"}
let payloadCATPA = { ...payload, months: this.state.month.month_id, get_for: "view" }
api.create().getReportCATPA(payloadCATPA).then(response => {
console.log(payloadCATPA);
console.log(response);
......@@ -3538,7 +3544,6 @@ export default class SubHolding extends Component {
const handlePushChild = (items) => {
let indexIDzz = dataTable2.findIndex((val) => val[1] === items.id)
let indexIDSumaChild = dbSumaCF.findIndex((val) => val[0] == items.id)
// console.log(indexIDzz)
if (indexIDzz != -1) {
dataTable3.push([...dataTable2[indexIDzz],
items.cash_flow.january,
......@@ -3553,8 +3558,7 @@ export default class SubHolding extends Component {
items.cash_flow.october,
items.cash_flow.november,
items.cash_flow.december,
items.cash_flow.total_current_year,
...dbSumaCF[indexIDSumaChild]
items.cash_flow.total_current_year
])
}
if (items.children !== null) {
......@@ -3579,8 +3583,7 @@ export default class SubHolding extends Component {
item.cash_flow.october,
item.cash_flow.november,
item.cash_flow.december,
item.cash_flow.total_current_year,
...dbSumaCF[indexIDSuma]
item.cash_flow.total_current_year
])
if (item.children !== null) {
......@@ -3594,8 +3597,9 @@ export default class SubHolding extends Component {
}
})
console.log(dbSumaCF)
console.log(dataTable3)
console.log(dataTable3);
this.setState({ dataTable: dataTable3, previewTable: true, loading: false, previewDownload: true })
} else {
this.setState({ dataTable: [], previewTable: false, loading: false, previewDownload: false })
......@@ -3990,7 +3994,7 @@ export default class SubHolding extends Component {
}
async downloadAllData() {
let {company, periode, month, quarter} = this.state
let { company, periode, month, quarter } = this.state
if (this.state.report.value === 1) {
let res = await fetch(
`${process.env.REACT_APP_URL_MAIN_BE}/public/transaction/db_profit_loss_detail/export_report?submission_id=${this.state.submissionID === null ? "" : this.state.submissionID}&&report_id=${this.state.report.value}&&company_id=${this.state.company.company_id}&&year=${this.state.periode.periode}&&revision=${this.state.revisionType}`
......@@ -4158,7 +4162,7 @@ export default class SubHolding extends Component {
a.download = `Report CAT Performance Appraisal ${company.company_name} ${periode.periode}.xlsx`;
a.click();
}
}else {
} else {
setTimeout(() => {
this.setState({ loading: false })
}, 1000);
......@@ -4216,7 +4220,7 @@ export default class SubHolding extends Component {
if (String(this.state.report.label).toLocaleLowerCase().includes('summary')) {
let index = data.sort((a, b) => a - b).findIndex((val) => val.periode == yearNow)
// console.log(index)
this.setState({periode: data[index]}, () => {
this.setState({ periode: data[index] }, () => {
this.getReportType()
})
} else {
......@@ -4236,7 +4240,7 @@ export default class SubHolding extends Component {
})}
disabled={this.state.intent === 'Home' ? true : false}
disableClearable
style={{ width: 250, marginLeft: 20}}
style={{ width: 250, marginLeft: 20 }}
renderInput={(params) =>
<TextField {...params} label="Period" margin="normal" style={{ marginTop: 7 }}
/>}
......@@ -4265,7 +4269,7 @@ export default class SubHolding extends Component {
this.getReportType()
})}
disableClearable
style={{ width: 250, marginLeft: 20}}
style={{ width: 250, marginLeft: 20 }}
renderInput={(params) => <TextField {...params} label="Months" margin="normal" style={{ marginTop: 7 }} />}
value={this.state.month}
/> : null : null}
......
......@@ -18979,9 +18979,8 @@ export default class TableSubHolding extends Component {
const handleCashend = (tableMeta, col, type) => {
let value = 0
if (String(type).includes('percent')) {
let mtd_actual = tableMeta.rowData[115] == '' ? 0 : Number(tableMeta.rowData[115])
let mtd = tableMeta.rowData[116] == '' ? 0 : Number(tableMeta.rowData[116])
// console.log(mtd)
let mtd_actual = tableMeta.rowData[40] == '' ? 0 : Number(tableMeta.rowData[40])
let mtd = tableMeta.rowData[41] == '' ? 0 : Number(tableMeta.rowData[41])
// let persenMtd = Number(mtd_actual / mtd)
let persenMtd = 0
if (mtd < 0) {
......@@ -18995,9 +18994,10 @@ export default class TableSubHolding extends Component {
persenMtd = Number(mtd_actual / mtd)
}
let ytd_actual = tableMeta.rowData[119 ] == '' ? 0 : Number(tableMeta.rowData[119 ])
let ytd = tableMeta.rowData[120] == '' ? 0 : Number(tableMeta.rowData[120])
let ytd_actual = tableMeta.rowData[44] == '' ? 0 : Number(tableMeta.rowData[44])
let ytd = tableMeta.rowData[45] == '' ? 0 : Number(tableMeta.rowData[45])
// console.log(ytd_actual)
// console.log(ytd);
// let persenYtd = Number(ytd_actual / ytd)
let persenYtd = 0
if (ytd < 0) {
......@@ -19011,8 +19011,8 @@ export default class TableSubHolding extends Component {
persenYtd = Number(ytd_actual/ytd)
}
let quarter_actual = tableMeta.rowData[123] == '' ? 0 : Number(tableMeta.rowData[123])
let quarter = tableMeta.rowData[124] == '' ? 0 : Number(tableMeta.rowData[124])
let quarter_actual = tableMeta.rowData[48] == '' ? 0 : Number(tableMeta.rowData[48])
let quarter = tableMeta.rowData[49] == '' ? 0 : Number(tableMeta.rowData[49])
// let persenQuarter = Number(quarter_actual / quarter)
let persenQuarter = 0
if (quarter < 0) {
......@@ -19026,9 +19026,9 @@ export default class TableSubHolding extends Component {
persenQuarter = quarter_actual / quarter
}
let fy_actual = tableMeta.rowData[127] == '' ? 0 : Number(tableMeta.rowData[127])
let fy = tableMeta.rowData[128] == '' ? 0 : Number(tableMeta.rowData[128])
console.log(fy_actual);
let fy_actual = tableMeta.rowData[52] == '' ? 0 : Number(tableMeta.rowData[52])
let fy = tableMeta.rowData[53] == '' ? 0 : Number(tableMeta.rowData[53])
// console.log(fy_actual);
// let persenFy = Number(fy_actual / fy)
let persenFy = 0
if (fy < 0) {
......@@ -19041,7 +19041,7 @@ export default class TableSubHolding extends Component {
else {
persenFy = fy_actual / fy
}
let ol = tableMeta.rowData[130] == '' ? 0 : Number(tableMeta.rowData[130])
let ol = tableMeta.rowData[55] == '' ? 0 : Number(tableMeta.rowData[55])
let persenOl = 0
if (fy < 0) {
if (ol >= fy) {
......@@ -19054,7 +19054,7 @@ export default class TableSubHolding extends Component {
persenOl = ol / fy
}
value = String(type).includes('MTD') ? persenMtd : String(type).includes('YTD') ? persenYtd : String(type).includes('Quarter') ? persenQuarter : persenFy
value = (value == Infinity || value == -Infinity || isNaN(value) ? 0 : Number(value * 100).toFixed(1))
value = (value == null || value == Infinity || value == -Infinity || isNaN(value) ? 0 : Number(value * 100).toFixed(1))
// value = isNaN(value) || value == 'Infinity' || value == '-Infinity' ? (value == '' || value == 0 ? -0 : 0) : (value== '' || value == 0 ? persenFy * -100 : persenFy * 100)
} else {
let indexRow = tableMeta.rowIndex
......@@ -19171,8 +19171,8 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 115) : Number(tableMeta.rowData[115]).toFixed(1)}
// value={Number(tableMeta.rowData[109]).toFixed(1)}
// value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 40) : Number(tableMeta.rowData[40]).toFixed(1)}
value={Number(tableMeta.rowData[40]).toFixed(1)}
/>
}
/>
......@@ -19195,8 +19195,8 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 116) : Number(tableMeta.rowData[116]).toFixed(1)}
// value={Number(tableMeta.rowData[110]).toFixed(1)}
// value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 41) : Number(tableMeta.rowData[41]).toFixed(1)}
value={Number(tableMeta.rowData[41]).toFixed(1)}
/>
}
/>
......@@ -19222,8 +19222,8 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
suffix={'%'}
// value={Number(tableMeta.rowData[111]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 117, 'percentMTD') : Number(tableMeta.rowData[117]).toFixed(1)}
value={Number(tableMeta.rowData[42]).toFixed(1)}
// value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? Number(handleCashend(tableMeta, 42, 'percentMTD')) : Number(tableMeta.rowData[42]).toFixed(1)}
/>
}
/>
......@@ -19246,8 +19246,8 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 118) : Number(tableMeta.rowData[118]).toFixed(1)}
// value={Number(tableMeta.rowData[112]).toFixed(1)}
// value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 43) : Number(tableMeta.rowData[43]).toFixed(1)}
value={Number(tableMeta.rowData[43]).toFixed(1)}
/>
}
/>
......@@ -19310,8 +19310,8 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 119) : Number(tableMeta.rowData[119]).toFixed(1)}
// value={Number(tableMeta.rowData[113]).toFixed(1)}
// value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 44) : Number(tableMeta.rowData[44]).toFixed(1)}
value={Number(tableMeta.rowData[44]).toFixed(1)}
/>
}
/>
......@@ -19334,8 +19334,8 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 120) : Number(tableMeta.rowData[120]).toFixed(1)}
// value={Number(tableMeta.rowData[114]).toFixed(1)}
// value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 45) : Number(tableMeta.rowData[45]).toFixed(1)}
value={Number(tableMeta.rowData[45]).toFixed(1)}
/>
}
/>
......@@ -19361,8 +19361,8 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
suffix={'%'}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 121, 'percentYTD') : Number(tableMeta.rowData[121]).toFixed(1)}
// value={Number(tableMeta.rowData[115]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 46, 'percentYTD') : Number(tableMeta.rowData[46]).toFixed(1)}
// value={Number(tableMeta.rowData[46]).toFixed(1)}
/>
}
/>
......@@ -19385,8 +19385,8 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 122) : Number(tableMeta.rowData[122]).toFixed(1)}
// value={Number(tableMeta.rowData[116]).toFixed(1)}
// value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 47) : Number(tableMeta.rowData[47]).toFixed(1)}
value={Number(tableMeta.rowData[47]).toFixed(1)}
/>
}
/>
......@@ -19450,8 +19450,8 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 123) : Number(tableMeta.rowData[123]).toFixed(1)}
// value={Number(tableMeta.rowData[117]).toFixed(1)}
// value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 48) : Number(tableMeta.rowData[48]).toFixed(1)}
value={Number(tableMeta.rowData[48]).toFixed(1)}
/>
}
/>
......@@ -19474,8 +19474,8 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 124) : Number(tableMeta.rowData[124]).toFixed(1)}
// value={Number(tableMeta.rowData[118]).toFixed(1)}
// value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 49) : Number(tableMeta.rowData[49]).toFixed(1)}
value={Number(tableMeta.rowData[49]).toFixed(1)}
/>
}
/>
......@@ -19501,8 +19501,8 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
suffix={'%'}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 125, 'percentQuarter') : Number(tableMeta.rowData[125]).toFixed(1)}
// value={Number(tableMeta.rowData[119]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 50, 'percentQuarter') : Number(tableMeta.rowData[50]).toFixed(1)}
// value={Number(tableMeta.rowData[50]).toFixed(1)}
/>
}
/>
......@@ -19525,8 +19525,8 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 126) : Number(tableMeta.rowData[126]).toFixed(1)}
// value={Number(tableMeta.rowData[120]).toFixed(1)}
// value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 51) : Number(tableMeta.rowData[51]).toFixed(1)}
value={Number(tableMeta.rowData[51]).toFixed(1)}
/>
}
/>
......@@ -19594,8 +19594,8 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 127) : Number(tableMeta.rowData[127]).toFixed(1)}
// value={Number(tableMeta.rowData[117]).toFixed(1)}
// value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 52) : Number(tableMeta.rowData[52]).toFixed(1)}
value={Number(tableMeta.rowData[52]).toFixed(1)}
/>
// <NumberFormat
// thousandSeparator={true}
......@@ -19627,8 +19627,8 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 128) : Number(tableMeta.rowData[128]).toFixed(1)}
// value={Number(tableMeta.rowData[122]).toFixed(1)}
// value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 53) : Number(tableMeta.rowData[53]).toFixed(1)}
value={Number(tableMeta.rowData[53]).toFixed(1)}
/>
}
/>
......@@ -19653,7 +19653,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 129, 'percentFY') : Number(tableMeta.rowData[129]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 54, 'percentFY') : Number(tableMeta.rowData[54]).toFixed(1)}
suffix={'%'}
/>
}
......@@ -19677,8 +19677,8 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 130) : Number(tableMeta.rowData[130]).toFixed(1)}
// value={Number(tableMeta.rowData[124]).toFixed(1)}
// value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 55) : Number(tableMeta.rowData[55]).toFixed(1)}
value={Number(tableMeta.rowData[55]).toFixed(1)}
/>
}
/>
......@@ -19703,7 +19703,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 131, 'percentOL') : Number(tableMeta.rowData[131]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 56, 'percentOL') : Number(tableMeta.rowData[56]).toFixed(1)}
suffix={'%'}
/>
}
......@@ -19727,7 +19727,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 132) : Number(tableMeta.rowData[132]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 57) : Number(tableMeta.rowData[57]).toFixed(1)}
/>
}
/>
......@@ -20282,7 +20282,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[39]) === "" ? "" : Number(tableMeta.rowData[39]).toFixed(1)}
value={String(tableMeta.rowData[58]) === "" ? "" : Number(tableMeta.rowData[58]).toFixed(1)}
/>
}
/>
......@@ -20305,7 +20305,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[40]) === "" ? "" : Number(tableMeta.rowData[40]).toFixed(1)}
value={String(tableMeta.rowData[59]) === "" ? "" : Number(tableMeta.rowData[59]).toFixed(1)}
/>
}
/>
......@@ -20328,7 +20328,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[41]) === "" ? "" : Number(tableMeta.rowData[41]).toFixed(1)}
value={String(tableMeta.rowData[60]) === "" ? "" : Number(tableMeta.rowData[60]).toFixed(1)}
/>
}
/>
......@@ -20351,7 +20351,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[42]) === "" ? "" : Number(tableMeta.rowData[42]).toFixed(1)}
value={String(tableMeta.rowData[61]) === "" ? "" : Number(tableMeta.rowData[61]).toFixed(1)}
/>
}
/>
......@@ -20376,7 +20376,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[43]) === "" ? "" : Number(tableMeta.rowData[43]).toFixed(1)}
value={String(tableMeta.rowData[62]) === "" ? "" : Number(tableMeta.rowData[62]).toFixed(1)}
/>
}
/>
......@@ -20399,7 +20399,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[44]) === "" ? "" : Number(tableMeta.rowData[44]).toFixed(1)}
value={String(tableMeta.rowData[63]) === "" ? "" : Number(tableMeta.rowData[63]).toFixed(1)}
/>
}
/>
......@@ -20422,7 +20422,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[45]) === "" ? "" : Number(tableMeta.rowData[45]).toFixed(1)}
value={String(tableMeta.rowData[64]) === "" ? "" : Number(tableMeta.rowData[64]).toFixed(1)}
/>
}
/>
......@@ -20445,7 +20445,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[46]) === "" ? "" : Number(tableMeta.rowData[46]).toFixed(1)}
value={String(tableMeta.rowData[65]) === "" ? "" : Number(tableMeta.rowData[65]).toFixed(1)}
/>
}
/>
......@@ -20470,7 +20470,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[47]) === "" ? "" : Number(tableMeta.rowData[47]).toFixed(1)}
value={String(tableMeta.rowData[66]) === "" ? "" : Number(tableMeta.rowData[66]).toFixed(1)}
/>
}
/>
......@@ -20493,7 +20493,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[48]) === "" ? "" : Number(tableMeta.rowData[48]).toFixed(1)}
value={String(tableMeta.rowData[67]) === "" ? "" : Number(tableMeta.rowData[67]).toFixed(1)}
/>
}
/>
......@@ -20516,7 +20516,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[49]) === "" ? "" : Number(tableMeta.rowData[49]).toFixed(1)}
value={String(tableMeta.rowData[68]) === "" ? "" : Number(tableMeta.rowData[68]).toFixed(1)}
/>
}
/>
......@@ -20539,7 +20539,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[50]) === "" ? "" : Number(tableMeta.rowData[50]).toFixed(1)}
value={String(tableMeta.rowData[69]) === "" ? "" : Number(tableMeta.rowData[69]).toFixed(1)}
/>
}
/>
......@@ -20562,7 +20562,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[51]) === "" ? "" : Number(tableMeta.rowData[51]).toFixed(1)}
value={String(tableMeta.rowData[70]) === "" ? "" : Number(tableMeta.rowData[70]).toFixed(1)}
/>
}
/>
......@@ -20658,7 +20658,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[101]) === "" ? "" : Number(tableMeta.rowData[101]).toFixed(1)}
value={String(tableMeta.rowData[120]) === "" ? "" : Number(tableMeta.rowData[120]).toFixed(1)}
/>
}
/>
......@@ -20681,7 +20681,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[102]) === "" ? "" : Number(tableMeta.rowData[102]).toFixed(1)}
value={String(tableMeta.rowData[121]) === "" ? "" : Number(tableMeta.rowData[121]).toFixed(1)}
/>
}
/>
......@@ -20704,7 +20704,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[103]) === "" ? "" : Number(tableMeta.rowData[103]).toFixed(1)}
value={String(tableMeta.rowData[122]) === "" ? "" : Number(tableMeta.rowData[122]).toFixed(1)}
/>
}
/>
......@@ -20727,7 +20727,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[104]) === "" ? "" : Number(tableMeta.rowData[104]).toFixed(1)}
value={String(tableMeta.rowData[123]) === "" ? "" : Number(tableMeta.rowData[123]).toFixed(1)}
/>
}
/>
......@@ -20752,7 +20752,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[105]) === "" ? "" : Number(tableMeta.rowData[105]).toFixed(1)}
value={String(tableMeta.rowData[124]) === "" ? "" : Number(tableMeta.rowData[124]).toFixed(1)}
/>
}
/>
......@@ -20775,7 +20775,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[106]) === "" ? "" : Number(tableMeta.rowData[106]).toFixed(1)}
value={String(tableMeta.rowData[125]) === "" ? "" : Number(tableMeta.rowData[125]).toFixed(1)}
/>
}
/>
......@@ -20798,7 +20798,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[107]) === "" ? "" : Number(tableMeta.rowData[107]).toFixed(1)}
value={String(tableMeta.rowData[126]) === "" ? "" : Number(tableMeta.rowData[126]).toFixed(1)}
/>
}
/>
......@@ -20821,7 +20821,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[108]) === "" ? "" : Number(tableMeta.rowData[108]).toFixed(1)}
value={String(tableMeta.rowData[127]) === "" ? "" : Number(tableMeta.rowData[127]).toFixed(1)}
/>
}
/>
......@@ -20846,7 +20846,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[109]) === "" ? "" : Number(tableMeta.rowData[109]).toFixed(1)}
value={String(tableMeta.rowData[128]) === "" ? "" : Number(tableMeta.rowData[128]).toFixed(1)}
/>
}
/>
......@@ -20869,7 +20869,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[110]) === "" ? "" : Number(tableMeta.rowData[110]).toFixed(1)}
value={String(tableMeta.rowData[129]) === "" ? "" : Number(tableMeta.rowData[129]).toFixed(1)}
/>
}
/>
......@@ -20892,7 +20892,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[111]) === "" ? "" : Number(tableMeta.rowData[111]).toFixed(1)}
value={String(tableMeta.rowData[130]) === "" ? "" : Number(tableMeta.rowData[130]).toFixed(1)}
/>
}
/>
......@@ -20915,7 +20915,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[112]) === "" ? "" : Number(tableMeta.rowData[112]).toFixed(1)}
value={String(tableMeta.rowData[131]) === "" ? "" : Number(tableMeta.rowData[131]).toFixed(1)}
/>
}
/>
......@@ -20938,7 +20938,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[113]) === "" ? "" : Number(tableMeta.rowData[113]).toFixed(1)}
value={String(tableMeta.rowData[132]) === "" ? "" : Number(tableMeta.rowData[132]).toFixed(1)}
/>
}
/>
......@@ -21035,7 +21035,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[52]) === "" ? "" : Number(tableMeta.rowData[52]).toFixed(1)}
value={String(tableMeta.rowData[71]) === "" ? "" : Number(tableMeta.rowData[71]).toFixed(1)}
/>
}
/>
......@@ -21058,7 +21058,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[53]) === "" ? "" : Number(tableMeta.rowData[53]).toFixed(1)}
value={String(tableMeta.rowData[72]) === "" ? "" : Number(tableMeta.rowData[72]).toFixed(1)}
/>
}
/>
......@@ -21081,7 +21081,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[54]) === "" ? "" : Number(tableMeta.rowData[54]).toFixed(1)}
value={String(tableMeta.rowData[73]) === "" ? "" : Number(tableMeta.rowData[73]).toFixed(1)}
/>
}
/>
......@@ -21104,7 +21104,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[55]) === "" ? "" : Number(tableMeta.rowData[55]).toFixed(1)}
value={String(tableMeta.rowData[74]) === "" ? "" : Number(tableMeta.rowData[74]).toFixed(1)}
/>
}
/>
......@@ -21129,7 +21129,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[56]) === "" ? "" : Number(tableMeta.rowData[56]).toFixed(1)}
value={String(tableMeta.rowData[75]) === "" ? "" : Number(tableMeta.rowData[75]).toFixed(1)}
/>
}
/>
......@@ -21152,7 +21152,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[57]) === "" ? "" : Number(tableMeta.rowData[57]).toFixed(1)}
value={String(tableMeta.rowData[76]) === "" ? "" : Number(tableMeta.rowData[76]).toFixed(1)}
/>
}
/>
......@@ -21175,7 +21175,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[58]) === "" ? "" : Number(tableMeta.rowData[58]).toFixed(1)}
value={String(tableMeta.rowData[77]) === "" ? "" : Number(tableMeta.rowData[77]).toFixed(1)}
/>
}
/>
......@@ -21198,7 +21198,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[59]) === "" ? "" : Number(tableMeta.rowData[59]).toFixed(1)}
value={String(tableMeta.rowData[78]) === "" ? "" : Number(tableMeta.rowData[78]).toFixed(1)}
/>
}
/>
......@@ -21223,7 +21223,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[60]) === "" ? "" : Number(tableMeta.rowData[60]).toFixed(1)}
value={String(tableMeta.rowData[79]) === "" ? "" : Number(tableMeta.rowData[79]).toFixed(1)}
/>
}
/>
......@@ -21246,7 +21246,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[61]) === "" ? "" : Number(tableMeta.rowData[61]).toFixed(1)}
value={String(tableMeta.rowData[80]) === "" ? "" : Number(tableMeta.rowData[80]).toFixed(1)}
/>
}
/>
......@@ -21269,7 +21269,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[62]) === "" ? "" : Number(tableMeta.rowData[62]).toFixed(1)}
value={String(tableMeta.rowData[81]) === "" ? "" : Number(tableMeta.rowData[81]).toFixed(1)}
/>
}
/>
......@@ -21292,7 +21292,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[63]) === "" ? "" : Number(tableMeta.rowData[63]).toFixed(1)}
value={String(tableMeta.rowData[82]) === "" ? "" : Number(tableMeta.rowData[82]).toFixed(1)}
/>
}
/>
......@@ -21315,7 +21315,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[64]) === "" ? "" : Number(tableMeta.rowData[64]).toFixed(1)}
value={String(tableMeta.rowData[83]) === "" ? "" : Number(tableMeta.rowData[83]).toFixed(1)}
/>
}
/>
......@@ -21412,7 +21412,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[65]) === "" ? "" : Number(tableMeta.rowData[65]).toFixed(1)}
value={String(tableMeta.rowData[84]) === "" ? "" : Number(tableMeta.rowData[84]).toFixed(1)}
/>
}
/>
......@@ -21435,7 +21435,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[66]) === "" ? "" : Number(tableMeta.rowData[66]).toFixed(1)}
value={String(tableMeta.rowData[85]) === "" ? "" : Number(tableMeta.rowData[85]).toFixed(1)}
/>
}
/>
......@@ -21458,7 +21458,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[67]) === "" ? "" : Number(tableMeta.rowData[67]).toFixed(1)}
value={String(tableMeta.rowData[86]) === "" ? "" : Number(tableMeta.rowData[86]).toFixed(1)}
/>
}
/>
......@@ -21481,7 +21481,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[68]) === "" ? "" : Number(tableMeta.rowData[68]).toFixed(1)}
value={String(tableMeta.rowData[87]) === "" ? "" : Number(tableMeta.rowData[87]).toFixed(1)}
/>
}
/>
......@@ -21506,7 +21506,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[69]) === "" ? "" : Number(tableMeta.rowData[69]).toFixed(1)}
value={String(tableMeta.rowData[88]) === "" ? "" : Number(tableMeta.rowData[88]).toFixed(1)}
/>
}
/>
......@@ -21529,7 +21529,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[70]) === "" ? "" : Number(tableMeta.rowData[70]).toFixed(1)}
value={String(tableMeta.rowData[89]) === "" ? "" : Number(tableMeta.rowData[89]).toFixed(1)}
/>
}
/>
......@@ -21552,7 +21552,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[71]) === "" ? "" : Number(tableMeta.rowData[71]).toFixed(1)}
value={String(tableMeta.rowData[90]) === "" ? "" : Number(tableMeta.rowData[90]).toFixed(1)}
/>
}
/>
......@@ -21575,7 +21575,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[72]) === "" ? "" : Number(tableMeta.rowData[72]).toFixed(1)}
value={String(tableMeta.rowData[91]) === "" ? "" : Number(tableMeta.rowData[91]).toFixed(1)}
/>
}
/>
......@@ -21600,7 +21600,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[73]) === "" ? "" : Number(tableMeta.rowData[73]).toFixed(1)}
value={String(tableMeta.rowData[92]) === "" ? "" : Number(tableMeta.rowData[92]).toFixed(1)}
/>
}
/>
......@@ -21623,7 +21623,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[74]) === "" ? "" : Number(tableMeta.rowData[74]).toFixed(1)}
value={String(tableMeta.rowData[93]) === "" ? "" : Number(tableMeta.rowData[93]).toFixed(1)}
/>
}
/>
......@@ -21646,7 +21646,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[75]) === "" ? "" : Number(tableMeta.rowData[75]).toFixed(1)}
value={String(tableMeta.rowData[94]) === "" ? "" : Number(tableMeta.rowData[94]).toFixed(1)}
/>
}
/>
......@@ -21669,7 +21669,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[76]) === "" ? "" : Number(tableMeta.rowData[76]).toFixed(1)}
value={String(tableMeta.rowData[95]) === "" ? "" : Number(tableMeta.rowData[95]).toFixed(1)}
/>
}
/>
......@@ -21692,7 +21692,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[77]) === "" ? "" : Number(tableMeta.rowData[77]).toFixed(1)}
value={String(tableMeta.rowData[96]) === "" ? "" : Number(tableMeta.rowData[96]).toFixed(1)}
/>
}
/>
......@@ -21789,7 +21789,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[78]) === "" ? "" : Number(tableMeta.rowData[78]).toFixed(1)}
value={String(tableMeta.rowData[97]) === "" ? "" : Number(tableMeta.rowData[97]).toFixed(1)}
/>
}
/>
......@@ -21812,7 +21812,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[79]) === "" ? "" : Number(tableMeta.rowData[79]).toFixed(1)}
value={String(tableMeta.rowData[98]) === "" ? "" : Number(tableMeta.rowData[98]).toFixed(1)}
/>
}
/>
......@@ -21835,7 +21835,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[80]) === "" ? "" : Number(tableMeta.rowData[80]).toFixed(1)}
value={String(tableMeta.rowData[99]) === "" ? "" : Number(tableMeta.rowData[99]).toFixed(1)}
/>
}
/>
......@@ -21858,7 +21858,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[81]) === "" ? "" : Number(tableMeta.rowData[81]).toFixed(1)}
value={String(tableMeta.rowData[100]) === "" ? "" : Number(tableMeta.rowData[100]).toFixed(1)}
/>
}
/>
......@@ -21883,7 +21883,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[82]) === "" ? "" : Number(tableMeta.rowData[82]).toFixed(1)}
value={String(tableMeta.rowData[101]) === "" ? "" : Number(tableMeta.rowData[101]).toFixed(1)}
/>
}
/>
......@@ -21906,7 +21906,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[83]) === "" ? "" : Number(tableMeta.rowData[83]).toFixed(1)}
value={String(tableMeta.rowData[102]) === "" ? "" : Number(tableMeta.rowData[102]).toFixed(1)}
/>
}
/>
......@@ -21929,7 +21929,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[84]) === "" ? "" : Number(tableMeta.rowData[84]).toFixed(1)}
value={String(tableMeta.rowData[103]) === "" ? "" : Number(tableMeta.rowData[103]).toFixed(1)}
/>
}
/>
......@@ -21952,7 +21952,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[85]) === "" ? "" : Number(tableMeta.rowData[85]).toFixed(1)}
value={String(tableMeta.rowData[104]) === "" ? "" : Number(tableMeta.rowData[104]).toFixed(1)}
/>
}
/>
......@@ -21977,7 +21977,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[86]) === "" ? "" : Number(tableMeta.rowData[86]).toFixed(1)}
value={String(tableMeta.rowData[105]) === "" ? "" : Number(tableMeta.rowData[105]).toFixed(1)}
/>
}
/>
......@@ -22000,7 +22000,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[87]) === "" ? "" : Number(tableMeta.rowData[87]).toFixed(1)}
value={String(tableMeta.rowData[106]) === "" ? "" : Number(tableMeta.rowData[106]).toFixed(1)}
/>
}
/>
......@@ -22023,7 +22023,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[88]) === "" ? "" : Number(tableMeta.rowData[88]).toFixed(1)}
value={String(tableMeta.rowData[107]) === "" ? "" : Number(tableMeta.rowData[107]).toFixed(1)}
/>
}
/>
......@@ -22046,7 +22046,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[89]) === "" ? "" : Number(tableMeta.rowData[89]).toFixed(1)}
value={String(tableMeta.rowData[108]) === "" ? "" : Number(tableMeta.rowData[108]).toFixed(1)}
/>
}
/>
......@@ -22069,7 +22069,7 @@ export default class TableSubHolding extends Component {
type="text"
placeholder=""
disabled={true}
value={String(tableMeta.rowData[90]) === "" ? "" : Number(tableMeta.rowData[90]).toFixed(1)}
value={String(tableMeta.rowData[109]) === "" ? "" : Number(tableMeta.rowData[109]).toFixed(1)}
/>
}
/>
......@@ -22531,7 +22531,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={String(tableMeta.rowData[95]) == "" ? "" : Number(tableMeta.rowData[95]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 100) : Number(tableMeta.rowData[100]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 119) : Number(tableMeta.rowData[119]).toFixed(1)}
/>
}
/>
......@@ -22555,7 +22555,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={String(tableMeta.rowData[94]) == "" ? "" : Number(tableMeta.rowData[94]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 99) : Number(tableMeta.rowData[99]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 118) : Number(tableMeta.rowData[118]).toFixed(1)}
/>
}
/>
......@@ -22579,7 +22579,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={String(tableMeta.rowData[93]) == "" ? "" : Number(tableMeta.rowData[93]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 98) : Number(tableMeta.rowData[98]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 117) : Number(tableMeta.rowData[117]).toFixed(1)}
/>
}
/>
......@@ -22603,7 +22603,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={String(tableMeta.rowData[92]) == "" ? "" : Number(tableMeta.rowData[92]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 97) : Number(tableMeta.rowData[97]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 116) : Number(tableMeta.rowData[116]).toFixed(1)}
/>
}
/>
......@@ -22627,7 +22627,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={String(tableMeta.rowData[91]) == "" ? "" : Number(tableMeta.rowData[91]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 96) : Number(tableMeta.rowData[96]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 115) : Number(tableMeta.rowData[115]).toFixed(1)}
/>
}
/>
......@@ -22653,7 +22653,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={String(tableMeta.rowData[90]) == "" ? "" : Number(tableMeta.rowData[90]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 95) : Number(tableMeta.rowData[95]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 114) : Number(tableMeta.rowData[114]).toFixed(1)}
/>
}
/>
......@@ -22677,7 +22677,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={String(tableMeta.rowData[89]) == "" ? "" : Number(tableMeta.rowData[89]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 94) : Number(tableMeta.rowData[94]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 113) : Number(tableMeta.rowData[113]).toFixed(1)}
/>
}
/>
......@@ -22701,7 +22701,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={String(tableMeta.rowData[88]) == "" ? "" : Number(tableMeta.rowData[88]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 93) : Number(tableMeta.rowData[93]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 112) : Number(tableMeta.rowData[112]).toFixed(1)}
/>
}
/>
......@@ -22725,7 +22725,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={String(tableMeta.rowData[87]) == "" ? "" : Number(tableMeta.rowData[87]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 92) : Number(tableMeta.rowData[92]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 111) : Number(tableMeta.rowData[111]).toFixed(1)}
/>
}
/>
......@@ -22749,7 +22749,7 @@ export default class TableSubHolding extends Component {
placeholder=""
disabled={true}
// value={String(tableMeta.rowData[86]) == "" ? "" : Number(tableMeta.rowData[86]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 91) : Number(tableMeta.rowData[91]).toFixed(1)}
value={String(tableMeta.rowData[5]).toLocaleLowerCase() == 'cash at the end of the period' ? handleCashend(tableMeta, 110) : Number(tableMeta.rowData[110]).toFixed(1)}
/>
}
/>
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