Subversion Repositories SmartDukaan

Rev

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

Rev 11172 Rev 11497
Line 211... Line 211...
211
								}
211
								}
212
								allamazoninventory.add(amazonfbainventorysnapshot); 
212
								allamazoninventory.add(amazonfbainventorysnapshot); 
213
 
213
 
214
							}
214
							}
215
							else if(nextLine[0].startsWith("FBB")){
215
							else if(nextLine[0].startsWith("FBB")){
-
 
216
 
216
								AmazonFbaInventorySnapshot amazonfbainventorysnapshot = new AmazonFbaInventorySnapshot() ;
217
								AmazonFbaInventorySnapshot amazonfbainventorysnapshot = new AmazonFbaInventorySnapshot() ;
-
 
218
								try{
217
								amazonfbainventorysnapshot.setAvailability(Long.parseLong(nextLine[10]));
219
									amazonfbainventorysnapshot.setAvailability(Long.parseLong(nextLine[10]));
218
								amazonfbainventorysnapshot.setItem_id(Long.parseLong(nextLine[0].replaceAll("FBB","")));
220
									amazonfbainventorysnapshot.setItem_id(Long.parseLong(nextLine[0].replaceAll("FBB","")));
219
								amazonfbainventorysnapshot.setLocation(AmazonFCWarehouseLocation.Bangalore);
221
									amazonfbainventorysnapshot.setLocation(AmazonFCWarehouseLocation.Bangalore);
220
								amazonfbainventorysnapshot.setReserved(Long.parseLong(nextLine[12]));
222
									amazonfbainventorysnapshot.setReserved(Long.parseLong(nextLine[12]));
221
								amazonfbainventorysnapshot.setUnfulfillable(Long.parseLong(nextLine[11]));
223
									amazonfbainventorysnapshot.setUnfulfillable(Long.parseLong(nextLine[11]));
222
								amazonfbainventorysnapshot.setInbound(Long.parseLong(nextLine[16]));
224
									amazonfbainventorysnapshot.setInbound(Long.parseLong(nextLine[16]));
-
 
225
								}
-
 
226
								catch(Exception ex){
-
 
227
									continue;
-
 
228
								}
223
								allamazoninventory.add(amazonfbainventorysnapshot); 
229
								allamazoninventory.add(amazonfbainventorysnapshot); 
224
							}
230
							}
225
						}
231
						}
226
						new InventoryClient().getClient().addOrUpdateAllAmazonFbaInventory(allamazoninventory);
232
						new InventoryClient().getClient().addOrUpdateAllAmazonFbaInventory(allamazoninventory);
227
					} catch (IOException e) {
233
					} catch (IOException e) {