From 53c60427f18dac5f84d77092ed09382ea78d0f8d Mon Sep 17 00:00:00 2001 From: Peter Bastiani Date: Mon, 16 Sep 2024 13:58:54 +0200 Subject: [PATCH] AW6241 Support src in item count --- projects/common/src/fm/services/item.service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 });