| Line 612... |
Line 612... |
| 612 |
}
|
612 |
}
|
| 613 |
|
613 |
|
| 614 |
|
614 |
|
| 615 |
if(logisticsTxnIdOrdersMap!=null && logisticsTxnIdOrdersMap.size()>0){
|
615 |
if(logisticsTxnIdOrdersMap!=null && logisticsTxnIdOrdersMap.size()>0){
|
| 616 |
for(String logisticsTxnId : logisticsTxnIdOrdersMap.keySet()){
|
616 |
for(String logisticsTxnId : logisticsTxnIdOrdersMap.keySet()){
|
| 617 |
document.newPage();
|
- |
|
| 618 |
List<Order> ordersList = logisticsTxnIdOrdersMap.get(logisticsTxnId);
|
617 |
List<Order> ordersList = logisticsTxnIdOrdersMap.get(logisticsTxnId);
|
| 619 |
PdfPTable headerTable = new PdfPTable(1);
|
618 |
PdfPTable headerTable = new PdfPTable(1);
|
| 620 |
headerTable.addCell(getInvoiceTableHeader(0,ordersList.get(0).getLogisticsTransactionId()));
|
619 |
headerTable.addCell(getInvoiceTableHeader(0,ordersList.get(0).getLogisticsTransactionId()));
|
| 621 |
PdfPTable packagingTable = getPackagingInfoTable(ordersList);
|
620 |
PdfPTable packagingTable = getPackagingInfoTable(ordersList);
|
| 622 |
PdfPTable signTable = new PdfPTable(new float[]{0.1f, 0.8f, 0.1f});
|
621 |
PdfPTable signTable = new PdfPTable(new float[]{0.1f, 0.8f, 0.1f});
|
| 623 |
signTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
622 |
signTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
| Line 655... |
Line 654... |
| 655 |
}
|
654 |
}
|
| 656 |
|
655 |
|
| 657 |
|
656 |
|
| 658 |
private PdfPTable getPackagingInfoTable(List<Order> orderList) throws CatalogServiceException, TException{
|
657 |
private PdfPTable getPackagingInfoTable(List<Order> orderList) throws CatalogServiceException, TException{
|
| 659 |
PdfPTable finalTable = new PdfPTable(1);
|
658 |
PdfPTable finalTable = new PdfPTable(1);
|
| - |
|
659 |
finalTable.setWidthPercentage(90.0f);
|
| - |
|
660 |
finalTable.setSpacingBefore(5.0f);
|
| - |
|
661 |
finalTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
|
| 660 |
PdfPTable customerAddresTable = new PdfPTable(1);
|
662 |
PdfPTable customerAddresTable = new PdfPTable(1);
|
| - |
|
663 |
customerAddresTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
|
| 661 |
customerAddresTable.addCell(new Phrase("Customer Details: "+orderList.get(0).getCustomer_name() +" "+orderList.get(0).getCustomer_address1()
|
664 |
customerAddresTable.addCell(new Phrase("Customer Details: "+orderList.get(0).getCustomer_name() +" "+orderList.get(0).getCustomer_address1()
|
| 662 |
+orderList.get(0).getCustomer_address2() +" "+orderList.get(0).getCustomer_city() + "," + orderList.get(0).getCustomer_state()
|
665 |
+orderList.get(0).getCustomer_address2() +" "+orderList.get(0).getCustomer_city() + "," + orderList.get(0).getCustomer_state()
|
| 663 |
+" -"+orderList.get(0).getCustomer_pincode(), helvetica8));
|
666 |
+" -"+orderList.get(0).getCustomer_pincode(), helvetica8));
|
| 664 |
PdfPTable packagingTable = new PdfPTable(new float[]{0.05f, 0.1f, 0.1f, 0.25f, 0.15f, 0.1f, 0.1f, 0.05f, 0.1f});
|
667 |
PdfPTable packagingTable = new PdfPTable(new float[]{0.1f, 0.1f, 0.1f, 0.2f, 0.2f, 0.1f, 0.07f, 0.08f, 0.1f});
|
| 665 |
packagingTable.setSplitLate(false);
|
668 |
packagingTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
|
| 666 |
packagingTable.addCell(new Phrase("ItemId", helveticaBold8));
|
669 |
packagingTable.addCell(new Phrase("ItemId", helveticaBold8));
|
| 667 |
packagingTable.addCell(new Phrase("BIN Id", helveticaBold8));
|
670 |
packagingTable.addCell(new Phrase("BIN Id", helveticaBold8));
|
| 668 |
packagingTable.addCell(new Phrase("SubOrder Id", helveticaBold8));
|
671 |
packagingTable.addCell(new Phrase("SubOrder Id", helveticaBold8));
|
| 669 |
packagingTable.addCell(new Phrase("Item Desc", helveticaBold8));
|
672 |
packagingTable.addCell(new Phrase("Item Desc", helveticaBold8));
|
| 670 |
packagingTable.addCell(new Phrase("Sr Nos", helveticaBold8));
|
673 |
packagingTable.addCell(new Phrase("Sr Nos", helveticaBold8));
|
| 671 |
packagingTable.addCell(new Phrase("Rate", helveticaBold8));
|
674 |
packagingTable.addCell(new Phrase("Rate", helveticaBold8));
|
| 672 |
packagingTable.addCell(new Phrase("Pack Size", helveticaBold8));
|
675 |
packagingTable.addCell(new Phrase("Pack\nSize", helveticaBold8));
|
| 673 |
packagingTable.addCell(new Phrase("Qty", helveticaBold8));
|
676 |
packagingTable.addCell(new Phrase("Qty", helveticaBold8));
|
| 674 |
packagingTable.addCell(new Phrase("Total Pcs.", helveticaBold8));
|
677 |
packagingTable.addCell(new Phrase("Total Pcs.", helveticaBold8));
|
| 675 |
|
678 |
|
| 676 |
Map<Long, Item> itemMap = new HashMap<Long, Item>();
|
679 |
Map<Long, Item> itemMap = new HashMap<Long, Item>();
|
| 677 |
|
680 |
|