Решение для данного вопроса
if(fullXML.Report.ds[i].i){
for(var j=0;j<fullXML.Report.ds[i].i.length;j++){
let calls = fullXML.Report.ds[i].i[j]['$'].f
if (parseFloat (calls) > 0){
detallization.tel[i].callsAll.push({
date:fullXML.Report.ds[i].i[j]['$'].d,
oneService:fullXML.Report.ds[i].i[j]['$'].n,
priceService:fullXML.Report.ds[i].i[j]['$'].f,
time:fullXML.Report.ds[i].i[j]['$'].du,
})
}
}
}
|