Subversion Repositories SmartDukaan

Rev

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

Rev 9739 Rev 9740
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
						//System.out.println("Order Details " + nextLine[0]+" "+date_key+" "+ nextLine[11] +" " + nextLine[13] + " " + nextLine[14]);
65
							System.out.println("Order Details " + nextLine[0]+" "+date_key+" "+ nextLine[11] +" " + nextLine[13] + " " + nextLine[14] + " " + nextLine[4] + " " + nextLine[13] );
-
 
66
						}
65
						Long itemid = Long.parseLong(nextLine[11].replaceAll("FBA",""));
67
						Long itemid = Long.parseLong(nextLine[11].replaceAll("FBA",""));
66
						Integer qty=0;
68
						Integer qty=0;
67
						if(nextLine[14].length()!=0){
69
						if(nextLine[14].length()!=0){
68
							qty = new Integer(nextLine[14]);
70
							qty = new Integer(nextLine[14]);
69
						}
71
						}
Line 84... Line 86...
84
						if(nextLine[4].equalsIgnoreCase("Cancelled") || nextLine[13].equalsIgnoreCase("Cancelled")){
86
						if(nextLine[4].equalsIgnoreCase("Cancelled") || nextLine[13].equalsIgnoreCase("Cancelled")){
85
							itemSale = (float) 0; 
87
							itemSale = (float) 0; 
86
							itemDiscount = (float) 0;
88
							itemDiscount = (float) 0;
87
							qty = 0;
89
							qty = 0;
88
						}
90
						}
-
 
91
						if(date_key.equals(dateFormat.parse("02/01/2014"))){
-
 
92
							System.out.println("Order Details " + nextLine[0]+" "+date_key+" "+ itemid +" " + qty);
-
 
93
						}
89
						if(orderDateItemIdFbaSaleSnapshotMap.containsKey(date_key)){
94
						if(orderDateItemIdFbaSaleSnapshotMap.containsKey(date_key)){
90
							Map<Long,FbaSalesSnapshot> ItemIdFbaSaleSnapshotMap;
95
							Map<Long,FbaSalesSnapshot> ItemIdFbaSaleSnapshotMap;
91
							if(orderDateItemIdFbaSaleSnapshotMap.get(date_key).containsKey(itemid)){
96
							if(orderDateItemIdFbaSaleSnapshotMap.get(date_key).containsKey(itemid)){
92
								FbaSalesSnapshot fbaSalesSnapshot = orderDateItemIdFbaSaleSnapshotMap.get(date_key).get(itemid);
97
								FbaSalesSnapshot fbaSalesSnapshot = orderDateItemIdFbaSaleSnapshotMap.get(date_key).get(itemid);
93
								if(itemDiscount!=0){
98
								if(itemDiscount!=0){