Add dataFilter to children/count
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	FarmMaps.Develop/FarmMapsLib/pipeline/head This commit looks good
				
			This commit is contained in:
		@@ -94,9 +94,12 @@ export class ItemService {
 | 
				
			|||||||
    return this.httpClient.get<IItem[]>(`${this.ApiEndpoint()}/api/v1/items/${parentcode}/children`, { params: params });
 | 
					    return this.httpClient.get<IItem[]>(`${this.ApiEndpoint()}/api/v1/items/${parentcode}/children`, { params: params });
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  getChildItemListCount(parentcode: string, itemType: string): Observable<Number> {
 | 
					  getChildItemListCount(parentcode: string, itemType: string,dataFilter?: any): Observable<Number> {
 | 
				
			||||||
    var params = new HttpParams();
 | 
					    var params = new HttpParams();
 | 
				
			||||||
    params = params.append("it", itemType);
 | 
					    params = params.append("it", itemType);
 | 
				
			||||||
 | 
					    if (dataFilter != null) {
 | 
				
			||||||
 | 
					      params = params.append("df", JSON.stringify(dataFilter));
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
    return this.httpClient.get<Number>(`${this.ApiEndpoint()}/api/v1/items/${parentcode}/children/count`, { params: params });
 | 
					    return this.httpClient.get<Number>(`${this.ApiEndpoint()}/api/v1/items/${parentcode}/children/count`, { params: params });
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user