Commit 27043682 authored by fahrur huzain's avatar fahrur huzain

issue CAT OLPA

parent 3a5a6869
......@@ -404,18 +404,18 @@ export default class CorporateAnnualTargetRO extends Component {
"kpi_type": i[8] == null ? "" : i[8].value,
"max_ach": i[9] == null ? "" : i[9].value,
"formula": i[10] == null ? "" : i[10].value,
"january": stateFR ? i[0] == 3 ? String(i[11]) : String(Number(i[11]?.formula[0].value)/1000) : String(i[11]),
"february": stateFR ? i[0] == 3 ? String(i[12]) : String(Number(i[12]?.formula[0].value)/1000) : String(i[12]),
"march": stateFR ? i[0] == 3 ? String(i[13]) : String(Number(i[13]?.formula[0].value)/1000) : String(i[13]),
"april": stateFR ? i[0] == 3 ? String(i[14]) : String(Number(i[14]?.formula[0].value)/1000) : String(i[14]),
"may": stateFR ? i[0] == 3 ? String(i[15]) : String(Number(i[15]?.formula[0].value)/1000) : String(i[15]),
"june": stateFR ? i[0] == 3 ? String(i[16]) : String(Number(i[16]?.formula[0].value)/1000) : String(i[16]),
"july": stateFR ? i[0] == 3 ? String(i[17]) : String(Number(i[17]?.formula[0].value)/1000) : String(i[17]),
"august": stateFR ? i[0] == 3 ? String(i[18]) : String(Number(i[18]?.formula[0].value)/1000) : String(i[18]),
"september": stateFR ? i[0] == 3 ? String(i[19]) : String(Number(i[19]?.formula[0].value)/1000) : String(i[19]),
"october": stateFR ? i[0] == 3 ? String(i[20]) : String(Number(i[20]?.formula[0].value)/1000) : String(i[20]),
"november": stateFR ? i[0] == 3 ? String(i[21]) : String(Number(i[21]?.formula[0].value)/1000) : String(i[21]),
"december": stateFR ? i[0] == 3 ? String(i[22]) : String(Number(i[22]?.formula[1].value)/1000) : String(i[22]),
"january": stateFR ? i[0] == 3 ? String(i[11]) :(i[5] == "ROIC" ? String(i[11].value): String(Number(i[11]?.formula[0].value)/1000)) : String(i[11]),
"february": stateFR ? i[0] == 3 ? String(i[12]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[12]?.formula[0].value)/1000)) : String(i[12]),
"march": stateFR ? i[0] == 3 ? String(i[13]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[13]?.formula[0].value)/1000)) : String(i[13]),
"april": stateFR ? i[0] == 3 ? String(i[14]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[14]?.formula[0].value)/1000)) : String(i[14]),
"may": stateFR ? i[0] == 3 ? String(i[15]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[15]?.formula[0].value)/1000)) : String(i[15]),
"june": stateFR ? i[0] == 3 ? String(i[16]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[16]?.formula[0].value)/1000)) : String(i[16]),
"july": stateFR ? i[0] == 3 ? String(i[17]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[17]?.formula[0].value)/1000)) : String(i[17]),
"august": stateFR ? i[0] == 3 ? String(i[18]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[18]?.formula[0].value)/1000)) : String(i[18]),
"september": stateFR ? i[0] == 3 ? String(i[19]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[19]?.formula[0].value)/1000)) : String(i[19]),
"october": stateFR ? i[0] == 3 ? String(i[20]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[20]?.formula[0].value)/1000)) : String(i[20]),
"november": stateFR ? i[0] == 3 ? String(i[21]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[21]?.formula[0].value)/1000)) : String(i[21]),
"december": stateFR ? i[0] == 3 ? String(i[22]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[22]?.formula[1].value)/1000)) : String(i[22]),
"total_current_year": String(Number(i[23])) == "" ? "0.0" : String(Number(i[23])),
"strategic": String(i[24]),
"pic": String(i[25])
......@@ -430,18 +430,18 @@ export default class CorporateAnnualTargetRO extends Component {
"kpi_type": i[8] == null ? "" : i[8].value,
"max_ach": i[9] == null ? "" : i[9].value,
"formula": i[10] == null ? "" : i[10].value,
"january": stateFR ? i[0] == 3 ? String(i[11]) : String(Number(i[11]?.formula[0].value)/1000) : String(i[11]),
"february": stateFR ? i[0] == 3 ? String(i[12]) : String(Number(i[12]?.formula[0].value)/1000) : String(i[12]),
"march": stateFR ? i[0] == 3 ? String(i[13]) : String(Number(i[13]?.formula[0].value)/1000) : String(i[13]),
"april": stateFR ? i[0] == 3 ? String(i[14]) : String(Number(i[14]?.formula[0].value)/1000) : String(i[14]),
"may": stateFR ? i[0] == 3 ? String(i[15]) : String(Number(i[15]?.formula[0].value)/1000) : String(i[15]),
"june": stateFR ? i[0] == 3 ? String(i[16]) : String(Number(i[16]?.formula[0].value)/1000) : String(i[16]),
"july": stateFR ? i[0] == 3 ? String(i[17]) : String(Number(i[17]?.formula[0].value)/1000) : String(i[17]),
"august": stateFR ? i[0] == 3 ? String(i[18]) : String(Number(i[18]?.formula[0].value)/1000) : String(i[18]),
"september": stateFR ? i[0] == 3 ? String(i[19]) : String(Number(i[19]?.formula[0].value)/1000) : String(i[19]),
"october": stateFR ? i[0] == 3 ? String(i[20]) : String(Number(i[20]?.formula[0].value)/1000) : String(i[20]),
"november": stateFR ? i[0] == 3 ? String(i[21]) : String(Number(i[21]?.formula[0].value)/1000) : String(i[21]),
"december": stateFR ? i[0] == 3 ? String(i[22]) : String(Number(i[22]?.formula[1].value)/1000) : String(i[22]),
"january": stateFR ? i[0] == 3 ? String(i[11]) :(i[5] == "ROIC" ? String(i[11].value): String(Number(i[11]?.formula[0].value)/1000)) : String(i[11]),
"february": stateFR ? i[0] == 3 ? String(i[12]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[12]?.formula[0].value)/1000)) : String(i[12]),
"march": stateFR ? i[0] == 3 ? String(i[13]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[13]?.formula[0].value)/1000)) : String(i[13]),
"april": stateFR ? i[0] == 3 ? String(i[14]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[14]?.formula[0].value)/1000)) : String(i[14]),
"may": stateFR ? i[0] == 3 ? String(i[15]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[15]?.formula[0].value)/1000)) : String(i[15]),
"june": stateFR ? i[0] == 3 ? String(i[16]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[16]?.formula[0].value)/1000)) : String(i[16]),
"july": stateFR ? i[0] == 3 ? String(i[17]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[17]?.formula[0].value)/1000)) : String(i[17]),
"august": stateFR ? i[0] == 3 ? String(i[18]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[18]?.formula[0].value)/1000)) : String(i[18]),
"september": stateFR ? i[0] == 3 ? String(i[19]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[19]?.formula[0].value)/1000)) : String(i[19]),
"october": stateFR ? i[0] == 3 ? String(i[20]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[20]?.formula[0].value)/1000)) : String(i[20]),
"november": stateFR ? i[0] == 3 ? String(i[21]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[21]?.formula[0].value)/1000)) : String(i[21]),
"december": stateFR ? i[0] == 3 ? String(i[22]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[22]?.formula[1].value)/1000)) : String(i[22]),
"total_current_year": String(Number(i[23])) == "" ? "0.0" : String(Number(i[23])),
"strategic": String(i[24]),
"pic": String(i[25])
......@@ -674,18 +674,18 @@ export default class CorporateAnnualTargetRO extends Component {
"kpi_type": i[8] == null ? "" : i[8].value,
"max_ach": i[9] == null ? "" : i[9].value,
"formula_ytd": i[10] == null ? "" : i[10].value,
"january": stateFR ? i[0] == 3 ? String(i[11]) : String(Number(i[11]?.formula[0].value)/1000) : String(i[11]),
"february": stateFR ? i[0] == 3 ? String(i[12]) : String(Number(i[12]?.formula[0].value)/1000) : String(i[12]),
"march": stateFR ? i[0] == 3 ? String(i[13]) : String(Number(i[13]?.formula[0].value)/1000) : String(i[13]),
"april": stateFR ? i[0] == 3 ? String(i[14]) : String(Number(i[14]?.formula[0].value)/1000) : String(i[14]),
"may": stateFR ? i[0] == 3 ? String(i[15]) : String(Number(i[15]?.formula[0].value)/1000) : String(i[15]),
"june": stateFR ? i[0] == 3 ? String(i[16]) : String(Number(i[16]?.formula[0].value)/1000) : String(i[16]),
"july": stateFR ? i[0] == 3 ? String(i[17]) : String(Number(i[17]?.formula[0].value)/1000) : String(i[17]),
"august": stateFR ? i[0] == 3 ? String(i[18]) : String(Number(i[18]?.formula[0].value)/1000) : String(i[18]),
"september": stateFR ? i[0] == 3 ? String(i[19]) : String(Number(i[19]?.formula[0].value)/1000) : String(i[19]),
"october": stateFR ? i[0] == 3 ? String(i[20]) : String(Number(i[20]?.formula[0].value)/1000) : String(i[20]),
"november": stateFR ? i[0] == 3 ? String(i[21]) : String(Number(i[21]?.formula[0].value)/1000) : String(i[21]),
"december": stateFR ? i[0] == 3 ? String(i[22]) : String(Number(i[22]?.formula[1].value)/1000) : String(i[22]),
"january": stateFR ? i[0] == 3 ? String(i[11]) :(i[5] == "ROIC" ? String(i[11].value): String(Number(i[11]?.formula[0].value)/1000)) : String(i[11]),
"february": stateFR ? i[0] == 3 ? String(i[12]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[12]?.formula[0].value)/1000)) : String(i[12]),
"march": stateFR ? i[0] == 3 ? String(i[13]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[13]?.formula[0].value)/1000)) : String(i[13]),
"april": stateFR ? i[0] == 3 ? String(i[14]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[14]?.formula[0].value)/1000)) : String(i[14]),
"may": stateFR ? i[0] == 3 ? String(i[15]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[15]?.formula[0].value)/1000)) : String(i[15]),
"june": stateFR ? i[0] == 3 ? String(i[16]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[16]?.formula[0].value)/1000)) : String(i[16]),
"july": stateFR ? i[0] == 3 ? String(i[17]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[17]?.formula[0].value)/1000)) : String(i[17]),
"august": stateFR ? i[0] == 3 ? String(i[18]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[18]?.formula[0].value)/1000)) : String(i[18]),
"september": stateFR ? i[0] == 3 ? String(i[19]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[19]?.formula[0].value)/1000)) : String(i[19]),
"october": stateFR ? i[0] == 3 ? String(i[20]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[20]?.formula[0].value)/1000)) : String(i[20]),
"november": stateFR ? i[0] == 3 ? String(i[21]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[21]?.formula[0].value)/1000)) : String(i[21]),
"december": stateFR ? i[0] == 3 ? String(i[22]) : (i[5] == "ROIC" ? String(i[11].value): String(Number(i[22]?.formula[1].value)/1000)) : String(i[22]),
"total_current_year": String(Number(i[23])) == "" ? "0.0" : String(Number(i[23])),
"strategic": i[24] == null ? "" : String(i[24]),
"pic": String(i[25])
......
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