Subversion Repositories SmartDukaan

Rev

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

Rev 11172 Rev 11196
Line 428... Line 428...
428
					List<AmazonFbaInventorySnapshot> fbaInventorySnapshotlist =  inventoryClient.getAllAmazonFbaItemInventory();
428
					List<AmazonFbaInventorySnapshot> fbaInventorySnapshotlist =  inventoryClient.getAllAmazonFbaItemInventory();
429
					String prefix;
429
					String prefix;
430
					for(Date date:dates){
430
					for(Date date:dates){
431
						if(fbaInventorySnapshotlist!=null){
431
						if(fbaInventorySnapshotlist!=null){
432
							for(AmazonFbaInventorySnapshot amazonFbaInventory:fbaInventorySnapshotlist){
432
							for(AmazonFbaInventorySnapshot amazonFbaInventory:fbaInventorySnapshotlist){
433
								if(amazonFbaInventory.getLocation().name().equals(AmazonFCWarehouseLocation.Bangalore.name())){
433
								if(amazonFbaInventory.getLocation().getValue()==AmazonFCWarehouseLocation.Bangalore.getValue()){
434
									prefix = "FBB";
434
									prefix = "FBB";
435
								}
435
								}
436
								else if(amazonFbaInventory.getLocation().name().equals(AmazonFCWarehouseLocation.Mumbai.name())){
436
								else if(amazonFbaInventory.getLocation().getValue()==AmazonFCWarehouseLocation.Mumbai.getValue()){
437
									prefix = "FBA";
437
									prefix = "FBA";
438
								}
438
								}
439
								else{
439
								else{
440
									continue;
440
									continue;
441
								}
441
								}
Line 595... Line 595...
595
							catch(TTransportException e){
595
							catch(TTransportException e){
596
								inventoryClient = inventoryServiceClient.getClient();
596
								inventoryClient = inventoryServiceClient.getClient();
597
								iteminventory = inventoryClient.getAmazonFbaItemInventory(item_id);
597
								iteminventory = inventoryClient.getAmazonFbaItemInventory(item_id);
598
							}
598
							}
599
							for(AmazonFbaInventorySnapshot inv:iteminventory){
599
							for(AmazonFbaInventorySnapshot inv:iteminventory){
600
								if(inv.getLocation().equals(location)){
600
								if(inv.getLocation().getValue()==location.getValue()){
601
									inventory = inv.getAvailability(); 
601
									inventory = inv.getAvailability(); 
602
								}
602
								}
603
							}
603
							}
604
							if(inventory==0 && entry1.getValue().getTotalOrderCount()==0){
604
							if(inventory==0 && entry1.getValue().getTotalOrderCount()==0){
605
								oos=true;
605
								oos=true;