Subversion Repositories SmartDukaan

Rev

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

Rev 11471 Rev 11501
Line 591... Line 591...
591
						AmazonFCWarehouseLocation location;
591
						AmazonFCWarehouseLocation location;
592
						Long item_id = null;
592
						Long item_id = null;
593
						for(Entry<String, FbaSalesSnapshot> entry1 :entry.getValue().entrySet()){
593
						for(Entry<String, FbaSalesSnapshot> entry1 :entry.getValue().entrySet()){
594
							if(entry1.getKey().startsWith("FBA")){
594
							if(entry1.getKey().startsWith("FBA")){
595
								location = AmazonFCWarehouseLocation.Mumbai;
595
								location = AmazonFCWarehouseLocation.Mumbai;
-
 
596
								try{
596
								item_id = Long.parseLong(entry1.getKey().replaceAll("FBA",""));
597
									item_id = Long.parseLong(entry1.getKey().replaceAll("FBA",""));
-
 
598
								}
-
 
599
								catch(Exception ex){
-
 
600
									continue;
-
 
601
								}
597
							}
602
							}
598
							else if(entry1.getKey().startsWith("FBB")){
603
							else if(entry1.getKey().startsWith("FBB")){
599
								location = AmazonFCWarehouseLocation.Bangalore;
604
								location = AmazonFCWarehouseLocation.Bangalore;
-
 
605
								try{
600
								item_id = Long.parseLong(entry1.getKey().replaceAll("FBB",""));
606
									item_id = Long.parseLong(entry1.getKey().replaceAll("FBB",""));
-
 
607
								}
-
 
608
								catch(Exception ex){
-
 
609
									continue;
-
 
610
								}
601
							}
611
							}
602
							else{
612
							else{
603
								System.out.println("Skipping Item ID " + entry1.getKey() +" date : "+orderDate);
613
								System.out.println("Skipping Item ID " + entry1.getKey() +" date : "+orderDate);
604
								continue;
614
								continue;
605
							}
615
							}