Subversion Repositories SmartDukaan

Rev

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

Rev 8449 Rev 8451
Line 177... Line 177...
177
			count=1;
177
			count=1;
178
			while ((nextLine = inventoryhealthreportreader.readNext()) != null ) {
178
			while ((nextLine = inventoryhealthreportreader.readNext()) != null ) {
179
				if(count!=1){
179
				if(count!=1){
180
					//System.out.println(nextLine[1] +" "+ nextLine[31] +" " + nextLine[32] + " " + nextLine[34]);
180
					//System.out.println(nextLine[1] +" "+ nextLine[31] +" " + nextLine[32] + " " + nextLine[34]);
181
					Long item_id = Long.parseLong(nextLine[1].replaceAll("FBA",""));
181
					Long item_id = Long.parseLong(nextLine[1].replaceAll("FBA",""));
182
					Double ourPrice = Double.parseDouble(nextLine[30]);
182
					Double ourPrice = null;
183
					Double salePrice = Double.parseDouble(nextLine[31]);
183
					Double minFBAPrice= null;
184
					Double minFBAPrice = Double.parseDouble(nextLine[32]);
184
					Double minMFNPrice= null;
-
 
185
					Double salePrice= null; 
-
 
186
					
-
 
187
					if(nextLine[30].length() >0){
185
					Double minMFNPrice = Double.parseDouble(nextLine[34]);
188
						ourPrice = Double.parseDouble(nextLine[30]);
186
					itemIdOurPriceMap.put(item_id,ourPrice); 
189
						itemIdOurPriceMap.put(item_id,ourPrice);
-
 
190
					}
-
 
191
					if(nextLine[31].length() >0){
-
 
192
						salePrice = Double.parseDouble(nextLine[31]);
187
					itemIdSalePriceMap.put(item_id,salePrice);
193
						itemIdSalePriceMap.put(item_id,salePrice);
-
 
194
					}
-
 
195
					if(nextLine[32].length() >0){
-
 
196
						minFBAPrice = Double.parseDouble(nextLine[32]);
188
					itemIdminFBAPriceMap.put(item_id,minFBAPrice);
197
						itemIdminFBAPriceMap.put(item_id,minFBAPrice);
-
 
198
					}
-
 
199
					if(nextLine[32].length() >0){
-
 
200
						minMFNPrice = Double.parseDouble(nextLine[34]);
189
					itemIdminMFNPriceMap.put(item_id,minMFNPrice);
201
						itemIdminMFNPriceMap.put(item_id,minMFNPrice);
-
 
202
					}
190
				}
203
				}
191
				count++;
204
				count++;
192
			}
205
			}
193
			boolean oos;
206
			boolean oos;
194
			for (Entry<Date, Map<Long, FbaSalesSnapshot>> entry : orderDateItemIdFbaSaleSnapshotMap.entrySet()){
207
			for (Entry<Date, Map<Long, FbaSalesSnapshot>> entry : orderDateItemIdFbaSaleSnapshotMap.entrySet()){