Subversion Repositories SmartDukaan

Rev

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

Rev 12619 Rev 12883
Line 314... Line 314...
314
									catch(Exception ex){
314
									catch(Exception ex){
315
										continue;
315
										continue;
316
									}
316
									}
317
									fcLocation = AmazonFCWarehouseLocation.Bangalore;
317
									fcLocation = AmazonFCWarehouseLocation.Bangalore;
318
								}
318
								}
-
 
319
								else if(amazonOrder.getOrderItem().get(0).getSKU().startsWith("FBG")){
-
 
320
									try{
-
 
321
										itemid = Long.parseLong(amazonOrder.getOrderItem().get(0).getSKU().replaceAll("FBG",""));
-
 
322
									}
-
 
323
									catch(Exception ex){
-
 
324
										continue;
-
 
325
									}
-
 
326
									fcLocation = AmazonFCWarehouseLocation.Gurgaon;
-
 
327
								}
319
								else{
328
								else{
320
									//System.out.println("Skipping Order not FBB or FBA" + amazonOrder.getAmazonOrderID()+" "+date_key+" "+ amazonOrder.getOrderItem().get(0).getSKU()  +" " + amazonOrder.getOrderItem().get(0).getItemStatus() + " " + amazonOrder.getOrderItem().get(0).getQuantity());
329
									//System.out.println("Skipping Order not FBB or FBA" + amazonOrder.getAmazonOrderID()+" "+date_key+" "+ amazonOrder.getOrderItem().get(0).getSKU()  +" " + amazonOrder.getOrderItem().get(0).getItemStatus() + " " + amazonOrder.getOrderItem().get(0).getQuantity());
321
									continue;
330
									continue;
322
								}
331
								}
323
								Integer qty=0;
332
								Integer qty=0;
Line 456... Line 465...
456
								}
465
								}
457
								else if(amazonFbaInventory.getLocation().getValue()==AmazonFCWarehouseLocation.Mumbai.getValue()){
466
								else if(amazonFbaInventory.getLocation().getValue()==AmazonFCWarehouseLocation.Mumbai.getValue()){
458
									prefix = "FBA";
467
									prefix = "FBA";
459
									location = AmazonFCWarehouseLocation.Mumbai;
468
									location = AmazonFCWarehouseLocation.Mumbai;
460
								}
469
								}
-
 
470
								else if(amazonFbaInventory.getLocation().getValue()==AmazonFCWarehouseLocation.Gurgaon.getValue()){
-
 
471
									prefix = "FBG";
-
 
472
									location = AmazonFCWarehouseLocation.Gurgaon;
-
 
473
								}
-
 
474
								
461
								else{
475
								else{
462
									continue;
476
									continue;
463
								}
477
								}
464
								if(orderDateItemIdFbaSaleSnapshotMap.containsKey(date) ){
478
								if(orderDateItemIdFbaSaleSnapshotMap.containsKey(date) ){
465
									if(!orderDateItemIdFbaSaleSnapshotMap.get(date).containsKey(prefix+String.valueOf(amazonFbaInventory.getItem_id()))){
479
									if(!orderDateItemIdFbaSaleSnapshotMap.get(date).containsKey(prefix+String.valueOf(amazonFbaInventory.getItem_id()))){
Line 509... Line 523...
509
									nextLine[1] = nextLine[1].replaceAll("FBA",""); 
523
									nextLine[1] = nextLine[1].replaceAll("FBA",""); 
510
								}
524
								}
511
								else if(nextLine[1].length()> 0 && nextLine[1].startsWith("FBB")){
525
								else if(nextLine[1].length()> 0 && nextLine[1].startsWith("FBB")){
512
									nextLine[1] = nextLine[1].replaceAll("FBB","");
526
									nextLine[1] = nextLine[1].replaceAll("FBB","");
513
								}
527
								}
-
 
528
								else if(nextLine[1].length()> 0 && nextLine[1].startsWith("FBG")){
-
 
529
									nextLine[1] = nextLine[1].replaceAll("FBG","");
-
 
530
								}
514
								else{
531
								else{
515
									continue;
532
									continue;
516
								}
533
								}
517
								Long item_id;
534
								Long item_id;
518
								try{
535
								try{