| Line 637... |
Line 637... |
| 637 |
supplierCell.addElement(new Paragraph("State: " + retailer.getAddress().getState()
|
637 |
supplierCell.addElement(new Paragraph("State: " + retailer.getAddress().getState()
|
| 638 |
+ " | Code: " + stateCode, MS_NORMAL));
|
638 |
+ " | Code: " + stateCode, MS_NORMAL));
|
| 639 |
headerTable.addCell(supplierCell);
|
639 |
headerTable.addCell(supplierCell);
|
| 640 |
|
640 |
|
| 641 |
boolean isChallan = titleText.contains("CHALLAN");
|
641 |
boolean isChallan = titleText.contains("CHALLAN");
|
| - |
|
642 |
boolean isCreditNote = titleText.contains("CREDIT");
|
| 642 |
String docLabel = isChallan ? "Challan No:" : "Invoice No:";
|
643 |
String docLabel = isCreditNote ? "CN No:" : (isChallan ? "Challan No:" : "Invoice No:");
|
| 643 |
String sectionLabel = isChallan ? "CHALLAN DETAILS" : "INVOICE DETAILS";
|
644 |
String sectionLabel = isCreditNote ? "CREDIT NOTE DETAILS" : (isChallan ? "CHALLAN DETAILS" : "INVOICE DETAILS");
|
| 644 |
PdfPCell invoiceCell = new PdfPCell();
|
645 |
PdfPCell invoiceCell = new PdfPCell();
|
| 645 |
invoiceCell.setBorder(Rectangle.NO_BORDER);
|
646 |
invoiceCell.setBorder(Rectangle.NO_BORDER);
|
| 646 |
invoiceCell.setPadding(4f);
|
647 |
invoiceCell.setPadding(4f);
|
| 647 |
invoiceCell.setPaddingRight(0f);
|
648 |
invoiceCell.setPaddingRight(0f);
|
| 648 |
invoiceCell.addElement(msRightPara(sectionLabel, MS_SECTION));
|
649 |
invoiceCell.addElement(msRightPara(sectionLabel, MS_SECTION));
|