| Line 1... |
Line 1... |
| 1 |
package in.shop2020.support.services;
|
1 |
package in.shop2020.support.services;
|
| 2 |
|
2 |
|
| 3 |
import in.shop2020.logistics.DeliveryType;
|
3 |
import in.shop2020.logistics.DeliveryType;
|
| 4 |
import in.shop2020.logistics.LogisticsServiceException;
|
4 |
import in.shop2020.logistics.LogisticsServiceException;
|
| 5 |
import in.shop2020.logistics.Provider;
|
5 |
import in.shop2020.logistics.Provider;
|
| - |
|
6 |
import in.shop2020.logistics.ProviderDetails;
|
| 6 |
import in.shop2020.model.v1.inventory.InventoryServiceException;
|
7 |
import in.shop2020.model.v1.inventory.InventoryServiceException;
|
| 7 |
import in.shop2020.model.v1.inventory.Warehouse;
|
8 |
import in.shop2020.model.v1.inventory.Warehouse;
|
| 8 |
import in.shop2020.model.v1.order.LineItem;
|
9 |
import in.shop2020.model.v1.order.LineItem;
|
| 9 |
import in.shop2020.model.v1.order.Order;
|
10 |
import in.shop2020.model.v1.order.Order;
|
| 10 |
import in.shop2020.model.v1.order.OrderStatus;
|
11 |
import in.shop2020.model.v1.order.OrderStatus;
|
| Line 110... |
Line 111... |
| 110 |
headerRow.createCell(16).setCellValue("Packet Weight(in Kg)");
|
111 |
headerRow.createCell(16).setCellValue("Packet Weight(in Kg)");
|
| 111 |
headerRow.createCell(17).setCellValue("Product Name");
|
112 |
headerRow.createCell(17).setCellValue("Product Name");
|
| 112 |
headerRow.createCell(18).setCellValue("Pickup Location");
|
113 |
headerRow.createCell(18).setCellValue("Pickup Location");
|
| 113 |
headerRow.createCell(19).setCellValue("Customer A/C Code");
|
114 |
headerRow.createCell(19).setCellValue("Customer A/C Code");
|
| 114 |
|
115 |
|
| 115 |
String accountNo;
|
116 |
String accountNo = "";
|
| - |
|
117 |
DeliveryType dt = DeliveryType.PREPAID;
|
| 116 |
if(isCod)
|
118 |
if (isCod) {
|
| 117 |
accountNo = provider.getDetails().get(DeliveryType.COD).getAccountNo();
|
119 |
dt = DeliveryType.COD;
|
| 118 |
else
|
120 |
}
|
| - |
|
121 |
|
| 119 |
accountNo = provider.getDetails().get(DeliveryType.PREPAID).getAccountNo();
|
122 |
for (ProviderDetails detail : provider.getDetails()) {
|
| - |
|
123 |
if(in.shop2020.model.v1.inventory.WarehouseLocation.findByValue((int) detail.getLogisticLocation()) == warehouse.getLogisticsLocation() && detail.getDeliveryType() == dt) {
|
| - |
|
124 |
accountNo = detail.getAccountNo();
|
| - |
|
125 |
}
|
| 120 |
|
126 |
}
|
| 121 |
Date awbDate = new Date();
|
127 |
Date awbDate = new Date();
|
| 122 |
String location = removeNewLines(warehouse.getLocation());
|
128 |
String location = removeNewLines(warehouse.getLocation());
|
| 123 |
|
129 |
|
| 124 |
int serialNo = 0;
|
130 |
int serialNo = 0;
|
| 125 |
for(int i = 0; i<orders.size(); i++){
|
131 |
for(int i = 0; i<orders.size(); i++){
|