Subversion Repositories SmartDukaan

Rev

Rev 13435 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 13435 Rev 23454
Line 267... Line 267...
267
	            		fulfillmentWarehouse = inventoryClient.getWarehouse(new Double(row.getCell(WAREHOUSE_ID_INDEX).getNumericCellValue()).longValue());
267
	            		fulfillmentWarehouse = inventoryClient.getWarehouse(new Double(row.getCell(WAREHOUSE_ID_INDEX).getNumericCellValue()).longValue());
268
	            		
268
	            		
269
	            	} else if (ebayItem.getDefaultWarehouseId()!=0 ){
269
	            	} else if (ebayItem.getDefaultWarehouseId()!=0 ){
270
	            		fulfillmentWarehouse = inventoryClient.getWarehouse(ebayItem.getDefaultWarehouseId());
270
	            		fulfillmentWarehouse = inventoryClient.getWarehouse(ebayItem.getDefaultWarehouseId());
271
	            	} else {
271
	            	} else {
272
	            		List<Long> itemAvailability = inventoryClient.getItemAvailabilityAtLocation(ebayItem.getItemId(), 1);
272
	            		List<Long> itemAvailability = inventoryClient.getItemAvailabilityAtLocation(ebayItem.getItemId(), 1, -1);
273
	            		fulfillmentWarehouse = inventoryClient.getWarehouse(itemAvailability.get(0));
273
	            		fulfillmentWarehouse = inventoryClient.getWarehouse(itemAvailability.get(0));
274
	            	}
274
	            	}
275
	            	t_order.setFulfilmentWarehouseId(fulfillmentWarehouse.getId());
275
	            	t_order.setFulfilmentWarehouseId(fulfillmentWarehouse.getId());
276
					long billingWarehouseId = 0;
276
					long billingWarehouseId = 0;
277
					if(fulfillmentWarehouse.getBillingWarehouseId()== 0) {
277
					if(fulfillmentWarehouse.getBillingWarehouseId()== 0) {