diff --git a/projects/common/src/fm/services/item.service.ts b/projects/common/src/fm/services/item.service.ts index c857ff7..6563803 100644 --- a/projects/common/src/fm/services/item.service.ts +++ b/projects/common/src/fm/services/item.service.ts @@ -81,7 +81,7 @@ export class ItemService { getItemList(itemType?: string, dataFilter?: any, level?: number, atItemLocationItemCode?: string, indexed?: boolean, validToday?: boolean,tags?:string,crs?:string, startDate?: Date, endDate?: Date, - skip?: number, take?: number, sourceTask?: string): Observable { + skip?: number, take?: number, sourceTask?: string, exactMatchStartOrEndDate?: boolean): Observable { let params = new HttpParams(); if(itemType) params = params.append("it", itemType); if(dataFilter) params = params.append("df", JSON.stringify(dataFilter)); @@ -93,20 +93,23 @@ export class ItemService { if (crs) params = params.append("crs", crs); if (startDate) params = params.append("sDate", startDate.toISOString()); if (endDate) params = params.append("eDate", endDate.toISOString()); + if (endDate) params = params.append("eDate", endDate.toISOString()); if (sourceTask) params = params.append("sourceTask", sourceTask); if(skip) params = params.append("skip", skip); if(take) params = params.append("take", take); + if(exactMatchStartOrEndDate) params = params.append("exactMatchStartOrEndDate", exactMatchStartOrEndDate); return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/`, { params: params }); } getItemListCount(itemType: string, startDate?: Date, endDate?: Date, sourceTask?: string, - indexed?: boolean): Observable { + indexed?: boolean, exactMatchStartOrEndDate?: boolean): Observable { let params = new HttpParams(); params = params.append("it", itemType); if (sourceTask) params = params.append("sourceTask", sourceTask); if (startDate) params = params.append("sDate", startDate.toISOString()); if (endDate) params = params.append("eDate", endDate.toISOString()); if(indexed) params = params.append("ind",indexed?"true":"false"); + if(exactMatchStartOrEndDate) params = params.append("exactMatchStartOrEndDate", exactMatchStartOrEndDate); return this.httpClient.get(`${this.ApiEndpoint()}/api/v1/items/count`, { params: params }); }