Commit a8180a64 authored by syadziy's avatar syadziy

issue weight budget CAT

parent aaff5b64
...@@ -172,7 +172,7 @@ export default class CorporateAnnualTarget extends Component { ...@@ -172,7 +172,7 @@ export default class CorporateAnnualTarget extends Component {
item.level, item.level,
"", "",
item.description, item.description,
item.type_report_id == 1 ? `${Number(item.weight) * 100}%` : (String(Number(String(item.cat.weight).substr(0, String(item.cat.weight).length - 1)).toFixed(1)) + '%'), item.type_report_id == 1 ? `${Number(item.weight) * 100}%` : (String(item.cat.weight).includes('%') ? (String(Number(String(item.cat.weight).substr(0, String(item.cat.weight).length - 1)).toFixed(1)) + '%') : ((String(Number(item.cat.weight).toFixed(1)) + '%') + '%')),
parentTrue ? item.cat.uom : item.uom, parentTrue ? item.cat.uom : item.uom,
parentTrue ? item.cat.kpi_type == "" ? null : { value: item.cat.kpi_type } : item.kpi_type == "" ? null : { value: item.kpi_type }, parentTrue ? item.cat.kpi_type == "" ? null : { value: item.cat.kpi_type } : item.kpi_type == "" ? null : { value: item.kpi_type },
parentTrue ? item.cat.max_ach == "" ? null : { value: titleCase(item.cat.max_ach) } : item.max_ach == "" ? null : { value: titleCase(item.max_ach) }, parentTrue ? item.cat.max_ach == "" ? null : { value: titleCase(item.cat.max_ach) } : item.max_ach == "" ? null : { value: titleCase(item.max_ach) },
...@@ -876,7 +876,7 @@ export default class CorporateAnnualTarget extends Component { ...@@ -876,7 +876,7 @@ export default class CorporateAnnualTarget extends Component {
"cat": data "cat": data
} }
console.log(JSON.stringify(payload)); console.log(JSON.stringify(payload));
this.deleteReport(payload) // this.deleteReport(payload)
} }
deleteReport(payloadBro) { deleteReport(payloadBro) {
......
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