Subversion Repositories SmartDukaan

Rev

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

Rev 11448 Rev 11649
Line 296... Line 296...
296
				logisticsClient = logisticsServiceClient.getClient();
296
				logisticsClient = logisticsServiceClient.getClient();
297
			} 
297
			} 
298
			System.out.println("sku at flipkart " + entry.getValue().getSkuAtflipkart());
298
			System.out.println("sku at flipkart " + entry.getValue().getSkuAtflipkart());
299
			System.out.println("shipping time " + logisticinfo.getShippingTime());
299
			System.out.println("shipping time " + logisticinfo.getShippingTime());
300
			System.out.println("stock " + stock);
300
			System.out.println("stock " + stock);
-
 
301
			if(logisticinfo.getShippingTime() > 5 && stock > 0){
301
			jsonRequest.append("{\"skuId\":"+"\""+entry.getValue().getSkuAtflipkart()+
302
				jsonRequest.append("{\"skuId\":"+"\""+entry.getValue().getSkuAtflipkart()+
-
 
303
						"\","+"\"attributeValues\""+":"+
-
 
304
						"{\"procurement_sla\""+":"+"\""+"0"+
-
 
305
						"\","+"\"stock_count\""+":"+"\""+"0"+"\""+"}}");
-
 
306
			}
-
 
307
			else{
-
 
308
				jsonRequest.append("{\"skuId\":"+"\""+entry.getValue().getSkuAtflipkart()+
302
					"\","+"\"attributeValues\""+":"+
309
						"\","+"\"attributeValues\""+":"+
303
					"{\"procurement_sla\""+":"+"\""+logisticinfo.getShippingTime()+
310
						"{\"procurement_sla\""+":"+"\""+logisticinfo.getShippingTime()+
304
					"\","+"\"stock_count\""+":"+"\""+stock+"\""+"}}");
311
						"\","+"\"stock_count\""+":"+"\""+stock+"\""+"}}");
-
 
312
			}
305
			FlipkartInventorySnapshot inventorySnapshot = new FlipkartInventorySnapshot();
313
			FlipkartInventorySnapshot inventorySnapshot = new FlipkartInventorySnapshot();
306
			inventorySnapshot.setItem_id(entry.getKey());
314
			inventorySnapshot.setItem_id(entry.getKey());
307
			inventorySnapshot.setAvailability(stock);
315
			inventorySnapshot.setAvailability(stock);
308
			if(stock > 0){
316
			if(stock > 0){
309
				inventorySnapshot.setIs_oos(false);
317
				inventorySnapshot.setIs_oos(false);