getStrongAlcoholReports(selectedItems?): Observable<ReportModel> {
let selecteditemstest = [];
let apiParams;
if (selectedItems) {
for (let code of selectedItems) {
for (let codesarr of code.codes) {
selecteditemstest.push(codesarr);
apiParams = selecteditemstest.join('&codes=');
}
}
return this.http.get<ReportModel>(this.listOfStrongAlcoholReports, { params: { codes: apiParams } });
} else {
return this.http.get<ReportModel>(this.listOfStrongAlcoholReports, { params: { codes: '200&codes=262' } });
}
}