diff --git a/projects/common/src/fm/services/item.service.ts b/projects/common/src/fm/services/item.service.ts index a81dd0d..56f6f3b 100644 --- a/projects/common/src/fm/services/item.service.ts +++ b/projects/common/src/fm/services/item.service.ts @@ -98,9 +98,10 @@ export class ItemService { return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/`, { params: params }); } - getItemListCount(itemType: string, startDate?: Date, endDate?: Date): Observable { + getItemListCount(itemType: string, startDate?: Date, endDate?: Date, crs?:string): Observable { let params = new HttpParams(); params = params.append("it", itemType); + if (crs) params = params.append("crs", crs); if (startDate) params = params.append("sDate", startDate.toISOString()); if (endDate) params = params.append("eDate", endDate.toISOString()); return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/count`, { params: params });