| Line 78... |
Line 78... |
| 78 |
columnCustomerInfo.addElement(new Paragraph(StringUtils.capitalize(customer.getAddress().getLine1()) + ", " + StringUtils.capitalize(customer.getAddress().getLine2()), FONT_NORMAL));
|
78 |
columnCustomerInfo.addElement(new Paragraph(StringUtils.capitalize(customer.getAddress().getLine1()) + ", " + StringUtils.capitalize(customer.getAddress().getLine2()), FONT_NORMAL));
|
| 79 |
columnCustomerInfo.addElement(new Paragraph(StringUtils.capitalize(customer.getAddress().getCity()) + ", " + StringUtils.capitalize(customer.getAddress().getState()) + "(" + customerAddressStateCode + ")" + "\n" + customer.getAddress().getPinCode(), FONT_NORMAL));
|
79 |
columnCustomerInfo.addElement(new Paragraph(StringUtils.capitalize(customer.getAddress().getCity()) + ", " + StringUtils.capitalize(customer.getAddress().getState()) + "(" + customerAddressStateCode + ")" + "\n" + customer.getAddress().getPinCode(), FONT_NORMAL));
|
| 80 |
columnCustomerInfo.addElement(new Paragraph(customer.getMobileNumber(), FONT_NORMAL));
|
80 |
columnCustomerInfo.addElement(new Paragraph(customer.getMobileNumber(), FONT_NORMAL));
|
| 81 |
columnCustomerInfo.setBorder(Rectangle.NO_BORDER);
|
81 |
columnCustomerInfo.setBorder(Rectangle.NO_BORDER);
|
| 82 |
PdfPCell columnRetailerInfo = new PdfPCell();
|
82 |
PdfPCell columnRetailerInfo = new PdfPCell();
|
| 83 |
//columnRetailerInfo.addElement(new Paragraph("Invoice No:"));
|
- |
|
| 84 |
columnRetailerInfo.addElement(new Paragraph(StringUtils.capitalize(retailer.getBusinessName()), FONT_BOLD));
|
83 |
columnRetailerInfo.addElement(new Paragraph(StringUtils.capitalize(retailer.getBusinessName()), FONT_BOLD));
|
| 85 |
// columnRetailerInfo.addElement(new Paragraph("Plot No. 485, Udyog Vihar Phase V, Gurgoan-122016", FONT_BOLD));
|
- |
|
| 86 |
columnRetailerInfo.addElement(new Paragraph(StringUtils.capitalize(retailer.getAddress().getLine1()) + ", " + StringUtils.capitalize(retailer.getAddress().getLine2()) + ", " + StringUtils.capitalize(retailer.getAddress().getCity()) + "-" + retailer.getAddress().getPinCode() + ", " + retailer.getAddress().getState() + "(" + (stageGst? customerAddressStateCode : retailerAddressStateCode) + ")", FONT_BOLD));
|
84 |
columnRetailerInfo.addElement(new Paragraph(StringUtils.capitalize(retailer.getAddress().getLine1()) + ", " + StringUtils.capitalize(retailer.getAddress().getLine2()) + ", " + StringUtils.capitalize(retailer.getAddress().getCity()) + "-" + retailer.getAddress().getPinCode() + ", " + retailer.getAddress().getState() + "(" + (stageGst? customerAddressStateCode : retailerAddressStateCode) + ")", FONT_BOLD));
|
| 87 |
columnRetailerInfo.addElement(new Paragraph("Contact No.- "+retailer.getMobileNumber(), FONT_BOLD));
|
85 |
columnRetailerInfo.addElement(new Paragraph("Contact No.- "+retailer.getMobileNumber(), FONT_BOLD));
|
| 88 |
columnRetailerInfo.addElement(new Paragraph("GST NO. " + retailer.getGstNumber(), FONT_BOLD));
|
86 |
columnRetailerInfo.addElement(new Paragraph("GST NO. " + retailer.getGstNumber(), FONT_BOLD));
|
| 89 |
columnRetailerInfo.setBorder(Rectangle.NO_BORDER);
|
87 |
columnRetailerInfo.setBorder(Rectangle.NO_BORDER);
|
| - |
|
88 |
|
| 90 |
PdfPTable tableInvoiceDateRetailer = new PdfPTable(1);
|
89 |
PdfPTable tableInvoiceDateRetailer = new PdfPTable(1);
|
| 91 |
tableInvoiceDateRetailer.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
90 |
tableInvoiceDateRetailer.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
| - |
|
91 |
|
| 92 |
PdfPTable tableInvoiceDate = new PdfPTable(2);
|
92 |
PdfPTable tableInvoiceDate = new PdfPTable(2);
|
| 93 |
tableInvoiceDate.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
93 |
tableInvoiceDate.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
| - |
|
94 |
|
| 94 |
PdfPCell invoiceNumberKey = new PdfPCell(new Paragraph("Invoice No:", FONT_NORMAL));
|
95 |
PdfPCell invoiceNumberKey = new PdfPCell(new Paragraph("Invoice No:", FONT_NORMAL));
|
| 95 |
invoiceNumberKey.setBorder(Rectangle.NO_BORDER);
|
96 |
invoiceNumberKey.setBorder(Rectangle.NO_BORDER);
|
| - |
|
97 |
|
| 96 |
PdfPCell invoiceNumberValue = new PdfPCell(new Paragraph(pdfModel.getInvoiceNumber(), FONT_NORMAL));
|
98 |
PdfPCell invoiceNumberValue = new PdfPCell(new Paragraph(pdfModel.getInvoiceNumber(), FONT_NORMAL));
|
| 97 |
invoiceNumberValue.setBorder(Rectangle.NO_BORDER);
|
99 |
invoiceNumberValue.setBorder(Rectangle.NO_BORDER);
|
| - |
|
100 |
|
| 98 |
PdfPCell dateKey = new PdfPCell(new Paragraph("Date:", FONT_NORMAL));
|
101 |
PdfPCell dateKey = new PdfPCell(new Paragraph("Date:", FONT_NORMAL));
|
| 99 |
dateKey.setBorder(Rectangle.NO_BORDER);
|
102 |
dateKey.setBorder(Rectangle.NO_BORDER);
|
| 100 |
LocalDateTime now = LocalDateTime.now();
|
- |
|
| - |
|
103 |
|
| 101 |
//PdfPCell dateValue = new PdfPCell(new Paragraph("May 22, 2017", FONT_NORMAL));
|
104 |
PdfPCell dateValue = new PdfPCell(new Paragraph(pdfModel.getInvoiceDate(), FONT_NORMAL));
|
| 102 |
PdfPCell dateValue = new PdfPCell(new Paragraph(now.getMonth().name() + now.getDayOfMonth() + ", " + now.getYear(), FONT_NORMAL));
|
- |
|
| 103 |
dateValue.setBorder(Rectangle.NO_BORDER);
|
105 |
dateValue.setBorder(Rectangle.NO_BORDER);
|
| 104 |
tableInvoiceDate.addCell(invoiceNumberKey);
|
106 |
tableInvoiceDate.addCell(invoiceNumberKey);
|
| 105 |
//tableInvoiceDate.addCell(blankCell);
|
107 |
//tableInvoiceDate.addCell(blankCell);
|
| 106 |
tableInvoiceDate.addCell(invoiceNumberValue);
|
108 |
tableInvoiceDate.addCell(invoiceNumberValue);
|
| 107 |
tableInvoiceDate.addCell(dateKey);
|
109 |
tableInvoiceDate.addCell(dateKey);
|