| Line 291... |
Line 291... |
| 291 |
|
291 |
|
| 292 |
PdfPTable chargesTable = new PdfPTable(1);
|
292 |
PdfPTable chargesTable = new PdfPTable(1);
|
| 293 |
chargesTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
293 |
chargesTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
| 294 |
chargesTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
|
294 |
chargesTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
|
| 295 |
if(order.isLogisticsCod()){
|
295 |
if(order.isLogisticsCod()){
|
| 296 |
chargesTable.addCell(new Phrase("AMOUNT TO BE COLLECTED : Rs " + order.getTotal_amount(), helveticaBold12));
|
296 |
chargesTable.addCell(new Phrase("AMOUNT TO BE COLLECTED : Rs " + (order.getTotal_amount()-order.getGvAmount()), helveticaBold12));
|
| 297 |
chargesTable.addCell(new Phrase("RTO ADDRESS:DEL/HPW/111116"));
|
297 |
chargesTable.addCell(new Phrase("RTO ADDRESS:DEL/HPW/111116"));
|
| 298 |
} else {
|
298 |
} else {
|
| 299 |
chargesTable.addCell(new Phrase("Do not pay any extra charges to the Courier."));
|
299 |
chargesTable.addCell(new Phrase("Do not pay any extra charges to the Courier."));
|
| 300 |
}
|
300 |
}
|
| 301 |
|
301 |
|
| Line 385... |
Line 385... |
| 385 |
invoiceTable.addCell(new Phrase("Amount", helvetica8));
|
385 |
invoiceTable.addCell(new Phrase("Amount", helvetica8));
|
| 386 |
populateTopInvoiceTable(order, invoiceTable);
|
386 |
populateTopInvoiceTable(order, invoiceTable);
|
| 387 |
|
387 |
|
| 388 |
invoiceTable.addCell(getTotalCell(4));
|
388 |
invoiceTable.addCell(getTotalCell(4));
|
| 389 |
invoiceTable.addCell(getRupeesCell());
|
389 |
invoiceTable.addCell(getRupeesCell());
|
| 390 |
invoiceTable.addCell(getTotalAmountCell(order.getTotal_amount()));
|
390 |
invoiceTable.addCell(getTotalAmountCell(order.getTotal_amount()-order.getGvAmount()));
|
| 391 |
|
391 |
|
| 392 |
PdfPCell tinCell = new PdfPCell(new Phrase("TIN NO. " + tinNo, helvetica8));
|
392 |
PdfPCell tinCell = new PdfPCell(new Phrase("TIN NO. " + tinNo, helvetica8));
|
| 393 |
tinCell.setColspan(6);
|
393 |
tinCell.setColspan(6);
|
| 394 |
tinCell.setPadding(2);
|
394 |
tinCell.setPadding(2);
|
| 395 |
invoiceTable.addCell(tinCell);
|
395 |
invoiceTable.addCell(tinCell);
|