| Line 173... |
Line 173... |
| 173 |
|
173 |
|
| 174 |
return baosPDF;
|
174 |
return baosPDF;
|
| 175 |
}
|
175 |
}
|
| 176 |
|
176 |
|
| 177 |
|
177 |
|
| 178 |
public ByteArrayOutputStream generateManifestFile(long providerId, long storeId, List<Long> orderIds) {
|
178 |
public ByteArrayOutputStream generateManifestFile(long providerId, long storeId, List<Long> orderIds, List<String> awbs) {
|
| 179 |
ByteArrayOutputStream baosPDF = null;
|
179 |
ByteArrayOutputStream baosPDF = null;
|
| 180 |
in.shop2020.model.v1.order.TransactionService.Client txnClient = tsc.getClient();
|
180 |
in.shop2020.model.v1.order.TransactionService.Client txnClient = tsc.getClient();
|
| 181 |
in.shop2020.logistics.LogisticsService.Client logisticsClient = lsc.getClient();
|
181 |
in.shop2020.logistics.LogisticsService.Client logisticsClient = lsc.getClient();
|
| 182 |
|
182 |
|
| 183 |
List<OrderStatus> statuses = new ArrayList<OrderStatus>();
|
183 |
List<OrderStatus> statuses = new ArrayList<OrderStatus>();
|
| Line 242... |
Line 242... |
| 242 |
for(LineItem lineItem: lineItems)
|
242 |
for(LineItem lineItem: lineItems)
|
| 243 |
weight += lineItem.getTotal_weight();
|
243 |
weight += lineItem.getTotal_weight();
|
| 244 |
|
244 |
|
| 245 |
ordersTable.addCell(new Phrase(serialNo + "", helvetica8));
|
245 |
ordersTable.addCell(new Phrase(serialNo + "", helvetica8));
|
| 246 |
ordersTable.addCell(new Phrase(order.getId() + "", helvetica8));
|
246 |
ordersTable.addCell(new Phrase(order.getId() + "", helvetica8));
|
| 247 |
ordersTable.addCell(new Phrase(order.getAirwaybill_no(), helvetica8));
|
247 |
ordersTable.addCell(new Phrase(awbs.get(orderIds.indexOf(order.getId())), helvetica8));
|
| 248 |
ordersTable.addCell(new Phrase(weightFormat.format(weight), helvetica8));
|
248 |
ordersTable.addCell(new Phrase(weightFormat.format(weight), helvetica8));
|
| 249 |
}
|
249 |
}
|
| 250 |
|
250 |
|
| 251 |
table.addCell(addressCell);
|
251 |
table.addCell(addressCell);
|
| 252 |
table.addCell(new Phrase("Courier Name: " + provider.getName(), helvetica8));
|
252 |
table.addCell(new Phrase("Courier Name: " + provider.getName(), helvetica8));
|