| Line 91... |
Line 91... |
| 91 |
private static final int COURIER_INDEX = 8;
|
91 |
private static final int COURIER_INDEX = 8;
|
| 92 |
private static final int CUST_MOBILE_INDEX = 13;
|
92 |
private static final int CUST_MOBILE_INDEX = 13;
|
| 93 |
private static final int EBAY_LISTINGID_INDEX = 14;
|
93 |
private static final int EBAY_LISTINGID_INDEX = 14;
|
| 94 |
private static final int AWB_INDEX = 15;
|
94 |
private static final int AWB_INDEX = 15;
|
| 95 |
private static final int WAREHOUSE_ID_INDEX = 17;
|
95 |
private static final int WAREHOUSE_ID_INDEX = 17;
|
| 96 |
private static final int LISTING_PRICE_INDEX = 18;
|
96 |
private static final int OVERRIDE_BILLING_PRICE_INDEX = 18;
|
| 97 |
|
97 |
|
| 98 |
|
98 |
|
| 99 |
private static final int EBAY_GATEWAY_ID = 16;
|
99 |
private static final int EBAY_GATEWAY_ID = 16;
|
| 100 |
|
100 |
|
| 101 |
private static final String bluedart = "BLUE DART";
|
101 |
private static final String bluedart = "BLUE DART";
|
| Line 187... |
Line 187... |
| 187 |
CatalogService.Client catalogClient = new CatalogClient().getClient();
|
187 |
CatalogService.Client catalogClient = new CatalogClient().getClient();
|
| 188 |
EbayItem ebayItem = catalogClient.getEbayItem(ebayListingId);
|
188 |
EbayItem ebayItem = catalogClient.getEbayItem(ebayListingId);
|
| 189 |
double listingPrice = 0;
|
189 |
double listingPrice = 0;
|
| 190 |
double overriddenPrice = 0;
|
190 |
double overriddenPrice = 0;
|
| 191 |
double totalPrice = 0;
|
191 |
double totalPrice = 0;
|
| 192 |
Cell overriddenPriceCell = row.getCell(LISTING_PRICE_INDEX);
|
192 |
Cell overriddenPriceCell = row.getCell(OVERRIDE_BILLING_PRICE_INDEX);
|
| 193 |
if(overriddenPriceCell != null && overriddenPriceCell .getCellType() != Cell.CELL_TYPE_BLANK) {
|
193 |
if(overriddenPriceCell != null && overriddenPriceCell .getCellType() != Cell.CELL_TYPE_BLANK) {
|
| 194 |
overriddenPrice = row.getCell(LISTING_PRICE_INDEX).getNumericCellValue();
|
194 |
overriddenPrice = row.getCell(OVERRIDE_BILLING_PRICE_INDEX).getNumericCellValue();
|
| 195 |
}
|
195 |
}
|
| 196 |
|
196 |
|
| 197 |
long quantity = new Double(row.getCell(QUANTITY_INDEX).getNumericCellValue()).longValue();
|
197 |
long quantity = new Double(row.getCell(QUANTITY_INDEX).getNumericCellValue()).longValue();
|
| 198 |
String totalPriceString = row.getCell(AMOUNT_INDEX).getStringCellValue();
|
198 |
String totalPriceString = row.getCell(AMOUNT_INDEX).getStringCellValue();
|
| 199 |
if(overriddenPrice>=1) {
|
199 |
if(overriddenPrice>=1) {
|
| Line 272... |
Line 272... |
| 272 |
t_order.getLineitems().get(0).setNlc(vendorItemPricing.getNlc());
|
272 |
t_order.getLineitems().get(0).setNlc(vendorItemPricing.getNlc());
|
| 273 |
} catch (InventoryServiceException e) {
|
273 |
} catch (InventoryServiceException e) {
|
| 274 |
addActionError("Error in updating WarehouseId for row number " + rowId);
|
274 |
addActionError("Error in updating WarehouseId for row number " + rowId);
|
| 275 |
setErrorMsg(getErrorMsg() + "<br>Error in updating WarehouseId for row number " + rowId);
|
275 |
setErrorMsg(getErrorMsg() + "<br>Error in updating WarehouseId for row number " + rowId);
|
| 276 |
logger.error("Error in updating WarehouseId for row number " + rowId,e);
|
276 |
logger.error("Error in updating WarehouseId for row number " + rowId,e);
|
| 277 |
return "authsuccess";
|
277 |
continue;
|
| 278 |
}
|
278 |
}
|
| 279 |
|
279 |
|
| 280 |
String provider = row.getCell(COURIER_INDEX).getStringCellValue();
|
280 |
String provider = row.getCell(COURIER_INDEX).getStringCellValue();
|
| 281 |
if(provider.equals(bluedart)) {
|
281 |
if(provider.equals(bluedart)) {
|
| 282 |
t_order.setLogistics_provider_id(8);
|
282 |
t_order.setLogistics_provider_id(8);
|
| Line 403... |
Line 403... |
| 403 |
Collection<String> actionErrors = getActionErrors();
|
403 |
Collection<String> actionErrors = getActionErrors();
|
| 404 |
if(actionErrors != null && !actionErrors.isEmpty()){
|
404 |
if(actionErrors != null && !actionErrors.isEmpty()){
|
| 405 |
for (String str : actionErrors) {
|
405 |
for (String str : actionErrors) {
|
| 406 |
errorMsg += "<BR/>" + str;
|
406 |
errorMsg += "<BR/>" + str;
|
| 407 |
}
|
407 |
}
|
| 408 |
if(rowId>1) {
|
- |
|
| 409 |
errorMsg += "<BR/>" + "Error while processing rowNumber : " + rowId;
|
- |
|
| 410 |
}
|
- |
|
| 411 |
return true;
|
408 |
return true;
|
| 412 |
}
|
409 |
}
|
| 413 |
return false;
|
410 |
return false;
|
| 414 |
}
|
411 |
}
|
| 415 |
|
412 |
|