From e939a787babdd6afa2f341fc3ff5f754e71b345a Mon Sep 17 00:00:00 2001 From: Willem Dantuma Date: Mon, 31 Jul 2023 19:36:57 +0200 Subject: [PATCH] AW-5365 add tags 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 5042e82..1554d6e 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,crs?:string): Observable { + getItemList(itemType?: string, dataFilter?: any, level?: number, atItemLocationItemCode?: string, indexed?: boolean, validToday?: boolean,tags?:string,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 (tags) params = params.append("t", tags); if (crs) params = params.append("crs", crs); return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/`, { params: params }); }