Subversion Repositories SmartDukaan

Rev

Rev 4788 | Rev 5554 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4788 Rev 5185
Line 317... Line 317...
317
	public Map<Long, String> getWarehouses(){
317
	public Map<Long, String> getWarehouses(){
318
		Map<Long, String> warehouseMap = new HashMap<Long, String>();
318
		Map<Long, String> warehouseMap = new HashMap<Long, String>();
319
		try{
319
		try{
320
			CatalogClient csc = new CatalogClient();
320
			CatalogClient csc = new CatalogClient();
321
			in.shop2020.model.v1.catalog.InventoryService.Client catalogClient= csc.getClient();
321
			in.shop2020.model.v1.catalog.InventoryService.Client catalogClient= csc.getClient();
322
			List<Warehouse> warehouses = catalogClient.getAllWarehouses(true);
322
			List<Warehouse> warehouses = catalogClient.getShippingLocations();
323
			for(Warehouse warehouse : warehouses){
323
			for(Warehouse warehouse : warehouses){
324
				// FIXME Remove the hardcoding
-
 
325
				if(warehouse.getId() == 1 || warehouse.getId() == 2){
-
 
326
					continue;
-
 
327
				}
-
 
328
				warehouseMap.put(warehouse.getId(), warehouse.getDisplayName());
324
				warehouseMap.put(warehouse.getId(), warehouse.getDisplayName());
329
			}
325
			}
330
		}catch(Exception e){
326
		}catch(Exception e){
331
			logger.error("Error getting the list of warehouses", e);
327
			logger.error("Error getting the list of warehouses", e);
332
		}
328
		}