From 288e507e6c330d72fa4cf803106d3d4676e79eab Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Mon, 31 Jul 2023 19:14:13 +0200 Subject: [PATCH] AW-5365 add crs parameter --- 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 e0ef352..5042e82 100644 --- a/projects/common/src/fm/services/item.service.ts +++ b/projects/common/src/fm/services/item.service.ts @@ -73,7 +73,7 @@ export class ItemService { return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/${code}/${itemType}`); } - getItemList(itemType?: string, dataFilter?: any, level?: number, atItemLocationItemCode?: string, indexed?: boolean, validToday?: boolean): Observable { + getItemList(itemType?: string, dataFilter?: any, level?: number, atItemLocationItemCode?: string, indexed?: boolean, validToday?: boolean,crs?:string): Observable { let params = new HttpParams(); if(itemType) params = params.append("it", itemType); if(dataFilter) params = params.append("df", JSON.stringify(dataFilter)); @@ -81,6 +81,7 @@ export class ItemService { if(indexed) params = params.append("ind",indexed?"true":"false"); if (level) params = params.append("lvl", level.toFixed()); if (validToday) params = params.append("vt", validToday ? "true" : "false"); + if (crs) params = params.append("crs", crs); return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/`, { params: params }); }