Commit 2a79ef3e authored by fahrur huzain's avatar fahrur huzain

issue CAT RO MB

parent bec1eec7
...@@ -616,7 +616,7 @@ export default class CorporateAnnualTarget extends Component { ...@@ -616,7 +616,7 @@ export default class CorporateAnnualTarget extends Component {
} else { } else {
stateFR = false stateFR = false
} }
if (this.state.defaultCurrencyUpload?.id == 2) { // if (this.state.defaultCurrencyUpload?.id == 2) {
data.push({ data.push({
"item_report_id": i[1] == "" || i[1] == null ? 0 : i[1], "item_report_id": i[1] == "" || i[1] == null ? 0 : i[1],
"item_report": String(i[6]), "item_report": String(i[6]),
...@@ -644,35 +644,35 @@ export default class CorporateAnnualTarget extends Component { ...@@ -644,35 +644,35 @@ export default class CorporateAnnualTarget extends Component {
"strategic": String(i[28]), "strategic": String(i[28]),
"pic": String(i[29]) "pic": String(i[29])
}) })
} else { // } else {
data.push({ // data.push({
"item_report_id": i[1] == "" || i[1] == null ? 0 : i[1], // "item_report_id": i[1] == "" || i[1] == null ? 0 : i[1],
"item_report": String(i[6]), // "item_report": String(i[6]),
"weight": String(i[7]), // "weight": String(i[7]),
"uom": String(i[8]), // "uom": String(i[8]),
"kpi_type": i[9] == null ? "" : i[9].value, // "kpi_type": i[9] == null ? "" : i[9].value,
"max_ach": i[10] == null ? "" : i[10].value, // "max_ach": i[10] == null ? "" : i[10].value,
"formula": i[11] == null ? "" : i[11].value, // "formula": i[11] == null ? "" : i[11].value,
"total_actual_before": String(i[12]) == "" ? "0.0" : String(i[12]), // "total_actual_before": String(i[12]) == "" ? "0.0" : String(i[12]),
"january": i[13].value != undefined ? String(fixNumber(Number(i[13].value), 1)) : String(i[13]), // "january": i[13].value != undefined ? String(fixNumber(Number(i[13].value), 1)) : String(i[13]),
"february": i[14].value != undefined ? String(fixNumber(Number(i[14].value), 1)) : String(i[14]), // "february": i[14].value != undefined ? String(fixNumber(Number(i[14].value), 1)) : String(i[14]),
"march": i[15].value != undefined ? String(fixNumber(Number(i[15].value), 1)) : String(i[15]), // "march": i[15].value != undefined ? String(fixNumber(Number(i[15].value), 1)) : String(i[15]),
"april": i[16].value != undefined ? String(fixNumber(Number(i[16].value), 1)) : String(i[16]), // "april": i[16].value != undefined ? String(fixNumber(Number(i[16].value), 1)) : String(i[16]),
"may": i[17].value != undefined ? String(fixNumber(Number(i[17].value), 1)) : String(i[17]), // "may": i[17].value != undefined ? String(fixNumber(Number(i[17].value), 1)) : String(i[17]),
"june": i[18].value != undefined ? String(fixNumber(Number(i[18].value), 1)) : String(i[18]), // "june": i[18].value != undefined ? String(fixNumber(Number(i[18].value), 1)) : String(i[18]),
"july": i[19].value != undefined ? String(fixNumber(Number(i[19].value), 1)) : String(i[19]), // "july": i[19].value != undefined ? String(fixNumber(Number(i[19].value), 1)) : String(i[19]),
"august": i[20].value != undefined ? String(fixNumber(Number(i[20].value), 1)) : String(i[20]), // "august": i[20].value != undefined ? String(fixNumber(Number(i[20].value), 1)) : String(i[20]),
"september": i[21].value != undefined ? String(fixNumber(Number(i[21].value), 1)) : String(i[21]), // "september": i[21].value != undefined ? String(fixNumber(Number(i[21].value), 1)) : String(i[21]),
"october": i[22].value != undefined ? String(fixNumber(Number(i[22].value), 1)) : String(i[22]), // "october": i[22].value != undefined ? String(fixNumber(Number(i[22].value), 1)) : String(i[22]),
"november": i[23].value != undefined ? String(fixNumber(Number(i[23].value), 1)) : String(i[23]), // "november": i[23].value != undefined ? String(fixNumber(Number(i[23].value), 1)) : String(i[23]),
"december": i[24].value != undefined ? String(fixNumber(Number(i[24].value), 1)) : String(i[24]), // "december": i[24].value != undefined ? String(fixNumber(Number(i[24].value), 1)) : String(i[24]),
"total_current_year": String(fixNumber(Number(i[25]), 1)) == "" ? "0.0" : String(fixNumber(Number(i[25]), 1)), // "total_current_year": String(fixNumber(Number(i[25]), 1)) == "" ? "0.0" : String(fixNumber(Number(i[25]), 1)),
"total_next_year": String(fixNumber(Number(i[26]), 1)) == "" ? "0.0" : String(fixNumber(Number(i[26]), 1)), // "total_next_year": String(fixNumber(Number(i[26]), 1)) == "" ? "0.0" : String(fixNumber(Number(i[26]), 1)),
"total_more_year": String(fixNumber(Number(i[27]), 1)) == "" ? "0.0" : String(fixNumber(Number(i[27]), 1)), // "total_more_year": String(fixNumber(Number(i[27]), 1)) == "" ? "0.0" : String(fixNumber(Number(i[27]), 1)),
"strategic": String(i[28]), // "strategic": String(i[28]),
"pic": String(i[29]) // "pic": String(i[29])
}) // })
} // }
}) })
let body = { let body = {
......
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