Compare commits

..

No commits in common. "7b2dbc177718d1a4b5b16725a4661cc610ee0cda" and "a3a09507a6acbf2113e5895a5e908a0a15f2ffaf" have entirely different histories.

2 changed files with 2 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{
"name": "farmmaps-lib-app",
"version": "2.1.1",
"version": "2.0.5",
"scripts": {
"ng": "ng",
"start": "ng serve",

View File

@ -83,8 +83,7 @@ export class ItemService {
return this.httpClient.get<IItem[]>(`${this.ApiEndpoint()}/api/v1/items/`, { params: params });
}
getChildItemList(parentcode: string, itemType: string, dataFilter?: any, level: number = 1, deep: boolean = true,
startDate?: Date, endDate?: Date): Observable<IItem[]> {
getChildItemList(parentcode: string, itemType: string, dataFilter?: any, level: number = 1, deep: boolean = true): Observable<IItem[]> {
var params = new HttpParams();
if(itemType != null) {
params = params.append("it", itemType);
@ -94,8 +93,6 @@ export class ItemService {
}
params = params.append("lvl", level.toString());
params = params.append("deep", deep.toString());
if (startDate) params = params.append("sDate", startDate.toISOString());
if (endDate) params = params.append("eDate", endDate.toISOString());
return this.httpClient.get<IItem[]>(`${this.ApiEndpoint()}/api/v1/items/${parentcode}/children`, { params: params });
}