Subversion Repositories SmartDukaan

Rev

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

Rev 12897 Rev 15032
Line 187... Line 187...
187
								if(!nextLine[10].isEmpty())
187
								if(!nextLine[10].isEmpty())
188
									amazonfbainventorysnapshot.setAvailability(Long.parseLong(nextLine[10]));
188
									amazonfbainventorysnapshot.setAvailability(Long.parseLong(nextLine[10]));
189
								else{
189
								else{
190
									amazonfbainventorysnapshot.setAvailability(0);
190
									amazonfbainventorysnapshot.setAvailability(0);
191
								}
191
								}
-
 
192
								try{
192
								amazonfbainventorysnapshot.setItem_id(Long.parseLong(nextLine[0].replaceAll("FBA","")));
193
								amazonfbainventorysnapshot.setItem_id(Long.parseLong(nextLine[0].replaceAll("FBA","")));
-
 
194
								}
-
 
195
								catch(Exception e){
-
 
196
                                    continue;
-
 
197
                                }
193
								amazonfbainventorysnapshot.setLocation(AmazonFCWarehouseLocation.Mumbai);
198
								amazonfbainventorysnapshot.setLocation(AmazonFCWarehouseLocation.Mumbai);
194
								if(nextLine[12].length()>0){
199
								if(nextLine[12].length()>0){
195
									amazonfbainventorysnapshot.setReserved(Long.parseLong(nextLine[12]));
200
									amazonfbainventorysnapshot.setReserved(Long.parseLong(nextLine[12]));
196
								}
201
								}
197
								else{
202
								else{
Line 233... Line 238...
233
                                if(!nextLine[10].isEmpty())
238
                                if(!nextLine[10].isEmpty())
234
                                    amazonfbainventorysnapshot.setAvailability(Long.parseLong(nextLine[10]));
239
                                    amazonfbainventorysnapshot.setAvailability(Long.parseLong(nextLine[10]));
235
                                else{
240
                                else{
236
                                    amazonfbainventorysnapshot.setAvailability(0);
241
                                    amazonfbainventorysnapshot.setAvailability(0);
237
                                }
242
                                }
-
 
243
                                try{
238
                                amazonfbainventorysnapshot.setItem_id(Long.parseLong(nextLine[0].replaceAll("FBG","")));
244
                                amazonfbainventorysnapshot.setItem_id(Long.parseLong(nextLine[0].replaceAll("FBG","")));
-
 
245
                                }
-
 
246
                                catch(Exception e){
-
 
247
                                    continue;
-
 
248
                                }
239
                                amazonfbainventorysnapshot.setLocation(AmazonFCWarehouseLocation.Gurgaon);
249
                                amazonfbainventorysnapshot.setLocation(AmazonFCWarehouseLocation.Gurgaon);
240
                                if(nextLine[12].length()>0){
250
                                if(nextLine[12].length()>0){
241
                                    amazonfbainventorysnapshot.setReserved(Long.parseLong(nextLine[12]));
251
                                    amazonfbainventorysnapshot.setReserved(Long.parseLong(nextLine[12]));
242
                                }
252
                                }
243
                                else{
253
                                else{