Subversion Repositories SmartDukaan

Rev

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

Rev 10174 Rev 10176
Line 178... Line 178...
178
		} catch (TTransportException e) {
178
		} catch (TTransportException e) {
179
			e.printStackTrace();
179
			e.printStackTrace();
180
		}
180
		}
181
		long stock=0;
181
		long stock=0;
182
		int i=0;
182
		int i=0;
183
		long available,reserve,heldforsource,totalheld,allocable,holdinventory,defaultinventory,actualstock = 0,orders,heldorders,allocation;
183
		long available,reserve,heldforsource,totalheld,allocable,holdinventory,defaultinventory,actualstock = 0,orders,heldorders;
-
 
184
		float allocation;
184
		StringBuffer inventoryItems =new StringBuffer();
185
		StringBuffer inventoryItems =new StringBuffer();
185
		StringBuffer backInStockItems =new StringBuffer();
186
		StringBuffer backInStockItems =new StringBuffer();
186
		StringBuffer outOfStockItems =new StringBuffer();
187
		StringBuffer outOfStockItems =new StringBuffer();
187
		String tableHeader = "<html><table border=\"1\" align=\"center\"><tr>" 
188
		String tableHeader = "<html><table border=\"1\" align=\"center\"><tr>" 
188
			+ "<td><b>" + "Product Name" +"</b></td>"
189
			+ "<td><b>" + "Product Name" +"</b></td>"
Line 198... Line 199...
198
		Item item;
199
		Item item;
199
		StringBuffer feedResponse=  new StringBuffer();
200
		StringBuffer feedResponse=  new StringBuffer();
200
		List<FlipkartInventorySnapshot> inventorysnapshotlist = new ArrayList<FlipkartInventorySnapshot>();
201
		List<FlipkartInventorySnapshot> inventorysnapshotlist = new ArrayList<FlipkartInventorySnapshot>();
201
		for(Entry<Long, FlipkartInventoryItem> entry:flipkartItemsInventoryMap.entrySet()){
202
		for(Entry<Long, FlipkartInventoryItem> entry:flipkartItemsInventoryMap.entrySet()){
202
			if(snapdealItemsMap.containsKey(entry.getKey()) && snapdealItemsMap.get(entry.getKey()).isIsListedOnSnapdeal()){
203
			if(snapdealItemsMap.containsKey(entry.getKey()) && snapdealItemsMap.get(entry.getKey()).isIsListedOnSnapdeal()){
203
				allocation=1/3;
204
				allocation = (float) 0.67;
204
			}
205
			}
205
			else{
206
			else{
206
				allocation=2/3;
207
				allocation = (float) 0.33;
207
			}
208
			}
208
			actualstock=0;
209
			actualstock=0;
209
			orders=0;
210
			orders=0;
210
			stock=0;
211
			stock=0;
211
			heldorders=0;
212
			heldorders=0;