| Line 135... |
Line 135... |
| 135 |
//End:-Added By Manish Sharma for FedEx Integration - Shipment Creation on 21-Aug-2013
|
135 |
//End:-Added By Manish Sharma for FedEx Integration - Shipment Creation on 21-Aug-2013
|
| 136 |
private static final Font helvetica8 = FontFactory.getFont(FontFactory.HELVETICA, 8);
|
136 |
private static final Font helvetica8 = FontFactory.getFont(FontFactory.HELVETICA, 8);
|
| 137 |
private static final Font helvetica10 = FontFactory.getFont(FontFactory.HELVETICA, 10);
|
137 |
private static final Font helvetica10 = FontFactory.getFont(FontFactory.HELVETICA, 10);
|
| 138 |
private static final Font helvetica12 = FontFactory.getFont(FontFactory.HELVETICA, 12);
|
138 |
private static final Font helvetica12 = FontFactory.getFont(FontFactory.HELVETICA, 12);
|
| 139 |
private static final Font helvetica16 = FontFactory.getFont(FontFactory.HELVETICA, 16);
|
139 |
private static final Font helvetica16 = FontFactory.getFont(FontFactory.HELVETICA, 16);
|
| 140 |
private static final Font helvetica28 = FontFactory.getFont(FontFactory.HELVETICA, 28);
|
140 |
private static final Font helvetica22 = FontFactory.getFont(FontFactory.HELVETICA, 22);
|
| 141 |
|
141 |
|
| 142 |
private static final Font helveticaBold8 = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 8);
|
142 |
private static final Font helveticaBold8 = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 8);
|
| 143 |
private static final Font helveticaBold12 = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 12);
|
143 |
private static final Font helveticaBold12 = FontFactory.getFont(FontFactory.HELVETICA_BOLD, 12);
|
| 144 |
|
144 |
|
| 145 |
private static final String delhiPincodePrefix = "11";
|
145 |
private static final String delhiPincodePrefix = "11";
|
| Line 466... |
Line 466... |
| 466 |
|
466 |
|
| 467 |
private PdfPTable getProviderTable(Order order, Provider provider, Font barCodeFont) {
|
467 |
private PdfPTable getProviderTable(Order order, Provider provider, Font barCodeFont) {
|
| 468 |
PdfPTable providerInfoTable = new PdfPTable(1);
|
468 |
PdfPTable providerInfoTable = new PdfPTable(1);
|
| 469 |
providerInfoTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
469 |
providerInfoTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
| 470 |
if(order.isLogisticsCod()){
|
470 |
if(order.isLogisticsCod()){
|
| 471 |
PdfPCell deliveryTypeCell = new PdfPCell(new Phrase("COD ", helvetica28));
|
471 |
PdfPCell deliveryTypeCell = new PdfPCell(new Phrase("COD ", helvetica22));
|
| 472 |
deliveryTypeCell.setHorizontalAlignment(Element.ALIGN_RIGHT);
|
472 |
deliveryTypeCell.setHorizontalAlignment(Element.ALIGN_RIGHT);
|
| 473 |
deliveryTypeCell.setBorder(Rectangle.NO_BORDER);
|
473 |
deliveryTypeCell.setBorder(Rectangle.NO_BORDER);
|
| 474 |
providerInfoTable.addCell(deliveryTypeCell);
|
474 |
providerInfoTable.addCell(deliveryTypeCell);
|
| 475 |
}
|
475 |
}
|
| 476 |
|
476 |
|
| Line 484... |
Line 484... |
| 484 |
formIdCell = new PdfPCell(new Paragraph(order.getAirwaybill_no()+" Form id-0305", helvetica6));
|
484 |
formIdCell = new PdfPCell(new Paragraph(order.getAirwaybill_no()+" Form id-0305", helvetica6));
|
| 485 |
}
|
485 |
}
|
| 486 |
else{
|
486 |
else{
|
| 487 |
formIdCell = new PdfPCell(new Paragraph(order.getAirwaybill_no()+" Form id-0467", helvetica6));
|
487 |
formIdCell = new PdfPCell(new Paragraph(order.getAirwaybill_no()+" Form id-0467", helvetica6));
|
| 488 |
}
|
488 |
}
|
| 489 |
formIdCell.setPaddingTop(5.0f);
|
489 |
formIdCell.setPaddingTop(1.0f);
|
| 490 |
formIdCell.setVerticalAlignment(Element.ALIGN_MIDDLE);
|
490 |
formIdCell.setVerticalAlignment(Element.ALIGN_MIDDLE);
|
| 491 |
formIdCell.setBorder(Rectangle.NO_BORDER);
|
491 |
formIdCell.setBorder(Rectangle.NO_BORDER);
|
| 492 |
}
|
492 |
}
|
| 493 |
|
493 |
|
| 494 |
|
494 |
|
| Line 886... |
Line 886... |
| 886 |
|
886 |
|
| 887 |
private PdfPCell getInvoiceTableHeader(int colspan) {
|
887 |
private PdfPCell getInvoiceTableHeader(int colspan) {
|
| 888 |
PdfPCell invoiceTableHeader = new PdfPCell(new Phrase("Order Details:", helveticaBold12));
|
888 |
PdfPCell invoiceTableHeader = new PdfPCell(new Phrase("Order Details:", helveticaBold12));
|
| 889 |
invoiceTableHeader.setBorder(Rectangle.NO_BORDER);
|
889 |
invoiceTableHeader.setBorder(Rectangle.NO_BORDER);
|
| 890 |
invoiceTableHeader.setColspan(colspan);
|
890 |
invoiceTableHeader.setColspan(colspan);
|
| 891 |
invoiceTableHeader.setPaddingTop(5);
|
891 |
invoiceTableHeader.setPaddingTop(1);
|
| 892 |
return invoiceTableHeader;
|
892 |
return invoiceTableHeader;
|
| 893 |
}
|
893 |
}
|
| 894 |
|
894 |
|
| 895 |
private void populateBottomInvoiceTable(Order order, PdfPTable invoiceTable, double rate) {
|
895 |
private void populateBottomInvoiceTable(Order order, PdfPTable invoiceTable, double rate) {
|
| 896 |
for (LineItem lineitem : order.getLineitems()) {
|
896 |
for (LineItem lineitem : order.getLineitems()) {
|