| Line 283... |
Line 283... |
| 283 |
dispatchTable.addCell(customerTable);
|
283 |
dispatchTable.addCell(customerTable);
|
| 284 |
dispatchTable.addCell(new Phrase(" "));
|
284 |
dispatchTable.addCell(new Phrase(" "));
|
| 285 |
dispatchTable.addCell(providerInfoTable);
|
285 |
dispatchTable.addCell(providerInfoTable);
|
| 286 |
|
286 |
|
| 287 |
PdfPTable invoiceTable = getTopInvoiceTable(order, shippingLocation.getTinNumber());
|
287 |
PdfPTable invoiceTable = getTopInvoiceTable(order, shippingLocation.getTinNumber());
|
| - |
|
288 |
PdfPTable addressTable = new PdfPTable(1);
|
| - |
|
289 |
addressTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
| - |
|
290 |
addressTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_LEFT);
|
| - |
|
291 |
|
| 288 |
PdfPCell addressCell = getAddressCell(shippingLocation.getLocation() +
|
292 |
PdfPCell addressCell = getAddressCell(shippingLocation.getLocation() +
|
| 289 |
"\nPIN " + shippingLocation.getPincode() + "\n\n");
|
293 |
"\nPIN " + shippingLocation.getPincode() + "\n\n");
|
| 290 |
|
294 |
|
| 291 |
PdfPTable chargesTable = new PdfPTable(1);
|
295 |
PdfPTable chargesTable = new PdfPTable(1);
|
| 292 |
chargesTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
296 |
chargesTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
| Line 337... |
Line 341... |
| 337 |
"limits the liability of FedEx for loss, delay or damage to the consignment." +
|
341 |
"limits the liability of FedEx for loss, delay or damage to the consignment." +
|
| 338 |
" Visit http://www.fedex.com/in/domestic/services/terms to view the conitions of Carriage" ,
|
342 |
" Visit http://www.fedex.com/in/domestic/services/terms to view the conitions of Carriage" ,
|
| 339 |
new Font(FontFamily.TIMES_ROMAN, 8f)));
|
343 |
new Font(FontFamily.TIMES_ROMAN, 8f)));
|
| 340 |
}
|
344 |
}
|
| 341 |
|
345 |
|
| - |
|
346 |
addressTable.addCell(new Phrase("If undelivered, return to:", helvetica10));
|
| - |
|
347 |
addressTable.addCell(addressCell);
|
| - |
|
348 |
|
| 342 |
PdfPTable addressAndNoteTable = new PdfPTable(new float[]{0.3f, 0.7f});
|
349 |
PdfPTable addressAndNoteTable = new PdfPTable(new float[]{0.3f, 0.7f});
|
| 343 |
addressAndNoteTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
350 |
addressAndNoteTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
| 344 |
addressAndNoteTable.addCell(addressCell);
|
351 |
addressAndNoteTable.addCell(addressTable);
|
| 345 |
addressAndNoteTable.addCell(chargesTable);
|
352 |
addressAndNoteTable.addCell(chargesTable);
|
| 346 |
|
353 |
|
| 347 |
titleBarTable.addCell(logoTable);
|
354 |
titleBarTable.addCell(logoTable);
|
| 348 |
titleBarTable.addCell(titleCell);
|
355 |
titleBarTable.addCell(titleCell);
|
| 349 |
titleBarTable.addCell(" ");
|
356 |
titleBarTable.addCell(" ");
|
| Line 579... |
Line 586... |
| 579 |
PdfPTable taxTable = new PdfPTable(1);
|
586 |
PdfPTable taxTable = new PdfPTable(1);
|
| 580 |
Phrase phrase = null;
|
587 |
Phrase phrase = null;
|
| 581 |
taxTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
588 |
taxTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
| 582 |
taxTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
|
589 |
taxTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
|
| 583 |
|
590 |
|
| 584 |
PdfPTable logoTitleAndOurAddressTable = new PdfPTable(new float[]{0.4f, 0.6f});
|
591 |
PdfPTable logoTitleAndOurAddressTable = new PdfPTable(new float[]{0.4f, 0.3f, 0.3f});
|
| 585 |
logoTitleAndOurAddressTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
592 |
logoTitleAndOurAddressTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
| 586 |
PdfPTable titleAndSolrAddressTable= new PdfPTable(1);
|
- |
|
| 587 |
titleAndSolrAddressTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
- |
|
| 588 |
titleAndSolrAddressTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
|
593 |
logoTitleAndOurAddressTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
|
| - |
|
594 |
|
| 589 |
|
595 |
|
| 590 |
PdfPTable logoTable = new PdfPTable(2);
|
596 |
PdfPTable logoTable = new PdfPTable(2);
|
| 591 |
addLogoTable(logoTable,order);
|
597 |
addLogoTable(logoTable,order);
|
| 592 |
|
598 |
|
| 593 |
if (order.getOrderType().equals(OrderType.B2B)) {
|
599 |
if (order.getOrderType().equals(OrderType.B2B)) {
|
| Line 600... |
Line 606... |
| 600 |
retailInvoiceTitleCell.setBorder(Rectangle.NO_BORDER);
|
606 |
retailInvoiceTitleCell.setBorder(Rectangle.NO_BORDER);
|
| 601 |
|
607 |
|
| 602 |
Paragraph sorlAddress = new Paragraph(ourAddress + "\nTIN NO. " + tinNo, new Font(FontFamily.TIMES_ROMAN, 8f, Element.ALIGN_CENTER));
|
608 |
Paragraph sorlAddress = new Paragraph(ourAddress + "\nTIN NO. " + tinNo, new Font(FontFamily.TIMES_ROMAN, 8f, Element.ALIGN_CENTER));
|
| 603 |
PdfPCell sorlAddressCell = new PdfPCell(sorlAddress);
|
609 |
PdfPCell sorlAddressCell = new PdfPCell(sorlAddress);
|
| 604 |
sorlAddressCell.addElement(sorlAddress);
|
610 |
sorlAddressCell.addElement(sorlAddress);
|
| 605 |
sorlAddressCell.setHorizontalAlignment(Element.ALIGN_CENTER);
|
611 |
sorlAddressCell.setHorizontalAlignment(Element.ALIGN_LEFT);
|
| 606 |
|
612 |
|
| 607 |
PdfPTable customerAddress = getCustomerAddressTable(order, null, true, helvetica8, true);
|
613 |
PdfPTable customerAddress = getCustomerAddressTable(order, null, true, helvetica8, true);
|
| 608 |
PdfPTable orderDetails = getOrderDetails(order, provider);
|
614 |
PdfPTable orderDetails = getOrderDetails(order, provider);
|
| 609 |
|
615 |
|
| 610 |
PdfPTable addrAndOrderDetailsTable = new PdfPTable(new float[]{0.5f, 0.1f, 0.4f});
|
616 |
PdfPTable addrAndOrderDetailsTable = new PdfPTable(new float[]{0.5f, 0.1f, 0.4f});
|
| Line 619... |
Line 625... |
| 619 |
PdfPCell disclaimerCell = new PdfPCell(new Phrase("Goods once sold will not be taken back.\nAll disputes subject to Delhi Jurisdiction.\nThis is a Computer generated Invoice.", helvetica8));
|
625 |
PdfPCell disclaimerCell = new PdfPCell(new Phrase("Goods once sold will not be taken back.\nAll disputes subject to Delhi Jurisdiction.\nThis is a Computer generated Invoice.", helvetica8));
|
| 620 |
disclaimerCell.setHorizontalAlignment(Element.ALIGN_LEFT);
|
626 |
disclaimerCell.setHorizontalAlignment(Element.ALIGN_LEFT);
|
| 621 |
disclaimerCell.setBorder(Rectangle.NO_BORDER);
|
627 |
disclaimerCell.setBorder(Rectangle.NO_BORDER);
|
| 622 |
|
628 |
|
| 623 |
|
629 |
|
| 624 |
titleAndSolrAddressTable.addCell(retailInvoiceTitleCell);
|
- |
|
| 625 |
titleAndSolrAddressTable.addCell(sorlAddress);
|
- |
|
| 626 |
|
- |
|
| 627 |
logoTitleAndOurAddressTable.addCell(logoTable);
|
630 |
logoTitleAndOurAddressTable.addCell(logoTable);
|
| - |
|
631 |
logoTitleAndOurAddressTable.addCell(retailInvoiceTitleCell);
|
| 628 |
logoTitleAndOurAddressTable.addCell(titleAndSolrAddressTable);
|
632 |
logoTitleAndOurAddressTable.addCell(sorlAddress);
|
| 629 |
|
633 |
|
| 630 |
taxTable.addCell(logoTitleAndOurAddressTable);
|
634 |
taxTable.addCell(logoTitleAndOurAddressTable);
|
| 631 |
taxTable.addCell(addrAndOrderDetailsTable);
|
635 |
taxTable.addCell(addrAndOrderDetailsTable);
|
| 632 |
taxTable.addCell(invoiceTable);
|
636 |
taxTable.addCell(invoiceTable);
|
| 633 |
taxTable.addCell(disclaimerCell);
|
637 |
taxTable.addCell(disclaimerCell);
|