| Line 297... |
Line 297... |
| 297 |
SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");
|
297 |
SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");
|
| 298 |
Date date_key = dateFormat.parse(dateFormat.format(date));
|
298 |
Date date_key = dateFormat.parse(dateFormat.format(date));
|
| 299 |
Long itemid;
|
299 |
Long itemid;
|
| 300 |
AmazonFCWarehouseLocation fcLocation;
|
300 |
AmazonFCWarehouseLocation fcLocation;
|
| 301 |
if(amazonOrder.getOrderItem().get(0).getSKU().startsWith("FBA")){
|
301 |
if(amazonOrder.getOrderItem().get(0).getSKU().startsWith("FBA")){
|
| - |
|
302 |
try{
|
| 302 |
itemid = Long.parseLong(amazonOrder.getOrderItem().get(0).getSKU().replaceAll("FBA",""));
|
303 |
itemid = Long.parseLong(amazonOrder.getOrderItem().get(0).getSKU().replaceAll("FBA",""));
|
| - |
|
304 |
}
|
| - |
|
305 |
catch(Exception ex){
|
| - |
|
306 |
continue;
|
| - |
|
307 |
}
|
| 303 |
fcLocation = AmazonFCWarehouseLocation.Mumbai;
|
308 |
fcLocation = AmazonFCWarehouseLocation.Mumbai;
|
| 304 |
}
|
309 |
}
|
| 305 |
else if(amazonOrder.getOrderItem().get(0).getSKU().startsWith("FBB")){
|
310 |
else if(amazonOrder.getOrderItem().get(0).getSKU().startsWith("FBB")){
|
| - |
|
311 |
try{
|
| 306 |
itemid = Long.parseLong(amazonOrder.getOrderItem().get(0).getSKU().replaceAll("FBB",""));
|
312 |
itemid = Long.parseLong(amazonOrder.getOrderItem().get(0).getSKU().replaceAll("FBB",""));
|
| - |
|
313 |
}
|
| - |
|
314 |
catch(Exception ex){
|
| - |
|
315 |
continue;
|
| - |
|
316 |
}
|
| 307 |
fcLocation = AmazonFCWarehouseLocation.Bangalore;
|
317 |
fcLocation = AmazonFCWarehouseLocation.Bangalore;
|
| 308 |
}
|
318 |
}
|
| 309 |
else{
|
319 |
else{
|
| 310 |
//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());
|
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());
|
| 311 |
continue;
|
321 |
continue;
|