| Line 340... |
Line 340... |
| 340 |
try {
|
340 |
try {
|
| 341 |
LogisticsService.Client logisticsClient = new LogisticsClient().getClient();
|
341 |
LogisticsService.Client logisticsClient = new LogisticsClient().getClient();
|
| 342 |
LogisticsInfo logisticsInfo = logisticsClient.getLogisticsInfo(order.getCustomer_pincode(),
|
342 |
LogisticsInfo logisticsInfo = logisticsClient.getLogisticsInfo(order.getCustomer_pincode(),
|
| 343 |
new Double(order.getLineitems().get(0).getItem_id()).longValue(), DeliveryType.PREPAID, PickUpType.COURIER);
|
343 |
new Double(order.getLineitems().get(0).getItem_id()).longValue(), DeliveryType.PREPAID, PickUpType.COURIER);
|
| 344 |
if(logisticsInfo.getProviderId()<7) {
|
344 |
if(logisticsInfo.getProviderId()<7) {
|
| 345 |
String airwaybillNo= logisticsClient.getEmptyAWB(logisticsInfo.getProviderId(), DeliveryType.PREPAID);
|
345 |
String airwaybillNo= logisticsClient.getEmptyAWB(logisticsInfo.getProviderId(), order.getLogisticsTransactionId());
|
| 346 |
order.setAirwaybill_no(airwaybillNo);
|
346 |
order.setAirwaybill_no(airwaybillNo);
|
| 347 |
order.setTracking_id(airwaybillNo);
|
347 |
order.setTracking_id(airwaybillNo);
|
| 348 |
}
|
348 |
}
|
| 349 |
order.setLogistics_provider_id(logisticsInfo.getProviderId());
|
349 |
order.setLogistics_provider_id(logisticsInfo.getProviderId());
|
| 350 |
} catch (Exception e) {
|
350 |
} catch (Exception e) {
|