| Line 1051... |
Line 1051... |
| 1051 |
|
1051 |
|
| 1052 |
|
1052 |
|
| 1053 |
PdfPTable logoTable = new PdfPTable(2);
|
1053 |
PdfPTable logoTable = new PdfPTable(2);
|
| 1054 |
addLogoTable(logoTable,order);
|
1054 |
addLogoTable(logoTable,order);
|
| 1055 |
|
1055 |
|
| 1056 |
PdfPCell retailInvoiceTitleCell = new PdfPCell(phrase);
|
- |
|
| 1057 |
retailInvoiceTitleCell.setHorizontalAlignment(Element.ALIGN_CENTER);
|
- |
|
| 1058 |
retailInvoiceTitleCell.setBorder(Rectangle.NO_BORDER);
|
- |
|
| 1059 |
|
1056 |
|
| 1060 |
Paragraph sorlAddress = new Paragraph(ourAddress + "\n Contact No.- +91-9811247808" + "\nTIN NO. " + tinNo, new Font(FontFamily.TIMES_ROMAN, 8f, Element.ALIGN_CENTER));
|
1057 |
Paragraph sorlAddress = new Paragraph(ourAddress + "\n Contact No.- +91-9811247808" + "\nTIN NO. " + tinNo, new Font(FontFamily.TIMES_ROMAN, 8f, Element.ALIGN_CENTER));
|
| 1061 |
PdfPCell sorlAddressCell = new PdfPCell(sorlAddress);
|
1058 |
PdfPCell sorlAddressCell = new PdfPCell(sorlAddress);
|
| 1062 |
sorlAddressCell.addElement(sorlAddress);
|
1059 |
sorlAddressCell.addElement(sorlAddress);
|
| 1063 |
sorlAddressCell.setHorizontalAlignment(Element.ALIGN_LEFT);
|
1060 |
sorlAddressCell.setHorizontalAlignment(Element.ALIGN_LEFT);
|
| Line 1074... |
Line 1071... |
| 1074 |
phrase = new Phrase("TAX INVOICE", helveticaBold12);
|
1071 |
phrase = new Phrase("TAX INVOICE", helveticaBold12);
|
| 1075 |
}
|
1072 |
}
|
| 1076 |
} else {
|
1073 |
} else {
|
| 1077 |
phrase = new Phrase("RETAIL INVOICE", helveticaBold12);
|
1074 |
phrase = new Phrase("RETAIL INVOICE", helveticaBold12);
|
| 1078 |
}
|
1075 |
}
|
| - |
|
1076 |
|
| - |
|
1077 |
PdfPCell retailInvoiceTitleCell = new PdfPCell(phrase);
|
| - |
|
1078 |
retailInvoiceTitleCell.setHorizontalAlignment(Element.ALIGN_CENTER);
|
| - |
|
1079 |
retailInvoiceTitleCell.setBorder(Rectangle.NO_BORDER);
|
| - |
|
1080 |
|
| 1079 |
PdfPTable orderDetails = getOrderDetails(order, provider);
|
1081 |
PdfPTable orderDetails = getOrderDetails(order, provider);
|
| 1080 |
|
1082 |
|
| 1081 |
PdfPTable addrAndOrderDetailsTable = new PdfPTable(new float[]{0.5f, 0.1f, 0.4f});
|
1083 |
PdfPTable addrAndOrderDetailsTable = new PdfPTable(new float[]{0.5f, 0.1f, 0.4f});
|
| 1082 |
addrAndOrderDetailsTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
1084 |
addrAndOrderDetailsTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
| 1083 |
addrAndOrderDetailsTable.addCell(customerAddress);
|
1085 |
addrAndOrderDetailsTable.addCell(customerAddress);
|