| Line 59... |
Line 59... |
| 59 |
TimeZone zone= TimeZone.getTimeZone("GMT");
|
59 |
TimeZone zone= TimeZone.getTimeZone("GMT");
|
| 60 |
istFormatter.setTimeZone(zone);
|
60 |
istFormatter.setTimeZone(zone);
|
| 61 |
Date date = istFormatter.parse(nextLine[2]);
|
61 |
Date date = istFormatter.parse(nextLine[2]);
|
| 62 |
SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");
|
62 |
SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy");
|
| 63 |
Date date_key = dateFormat.parse(dateFormat.format(date));
|
63 |
Date date_key = dateFormat.parse(dateFormat.format(date));
|
| 64 |
if(date_key.equals(dateFormat.parse("02/01/2014"))){
|
64 |
if(date_key.equals(dateFormat.parse("02/01/2014")) && nextLine[11].equals("FBA13465")){
|
| 65 |
System.out.println("Order Details " + nextLine[0]+" "+date_key+" "+ nextLine[11] +" " + nextLine[14] + " " + nextLine[4] + " " + nextLine[13] );
|
65 |
System.out.println("Order Details " + nextLine[0]+" "+date_key+" "+ nextLine[11] +" " + nextLine[14] + " " + nextLine[4] + " " + nextLine[13] );
|
| 66 |
}
|
66 |
}
|
| 67 |
Long itemid = Long.parseLong(nextLine[11].replaceAll("FBA",""));
|
67 |
Long itemid = Long.parseLong(nextLine[11].replaceAll("FBA",""));
|
| 68 |
Integer qty=0;
|
68 |
Integer qty=0;
|
| 69 |
if(nextLine[14].length()!=0){
|
69 |
if(nextLine[14].length()!=0){
|
| Line 86... |
Line 86... |
| 86 |
if(nextLine[4].equalsIgnoreCase("Cancelled") || nextLine[13].equalsIgnoreCase("Cancelled")){
|
86 |
if(nextLine[4].equalsIgnoreCase("Cancelled") || nextLine[13].equalsIgnoreCase("Cancelled")){
|
| 87 |
itemSale = (float) 0;
|
87 |
itemSale = (float) 0;
|
| 88 |
itemDiscount = (float) 0;
|
88 |
itemDiscount = (float) 0;
|
| 89 |
qty = 0;
|
89 |
qty = 0;
|
| 90 |
}
|
90 |
}
|
| 91 |
if(date_key.equals(dateFormat.parse("02/01/2014"))){
|
91 |
if(date_key.equals(dateFormat.parse("02/01/2014")) && itemid==13465){
|
| 92 |
System.out.println("Order Details after parsing " + nextLine[0]+" "+date_key+" "+ itemid +" " + qty);
|
92 |
System.out.println("Order Details after parsing " + nextLine[0]+" "+date_key+" "+ itemid +" " + qty);
|
| 93 |
}
|
93 |
}
|
| 94 |
if(orderDateItemIdFbaSaleSnapshotMap.containsKey(date_key)){
|
94 |
if(orderDateItemIdFbaSaleSnapshotMap.containsKey(date_key)){
|
| 95 |
Map<Long,FbaSalesSnapshot> ItemIdFbaSaleSnapshotMap;
|
95 |
Map<Long,FbaSalesSnapshot> ItemIdFbaSaleSnapshotMap;
|
| 96 |
if(orderDateItemIdFbaSaleSnapshotMap.get(date_key).containsKey(itemid)){
|
96 |
if(orderDateItemIdFbaSaleSnapshotMap.get(date_key).containsKey(itemid)){
|