| Line 578... |
Line 578... |
| 578 |
invoiceTable.addCell(new Phrase("Sl. No.", helveticaBold8));
|
578 |
invoiceTable.addCell(new Phrase("Sl. No.", helveticaBold8));
|
| 579 |
invoiceTable.addCell(new Phrase("Description", helveticaBold8));
|
579 |
invoiceTable.addCell(new Phrase("Description", helveticaBold8));
|
| 580 |
invoiceTable.addCell(new Phrase("Quantity", helveticaBold8));
|
580 |
invoiceTable.addCell(new Phrase("Quantity", helveticaBold8));
|
| 581 |
invoiceTable.addCell(new Phrase("Rate (Rs)", helveticaBold8));
|
581 |
invoiceTable.addCell(new Phrase("Rate (Rs)", helveticaBold8));
|
| 582 |
invoiceTable.addCell(new Phrase("Amount (Rs)", helveticaBold8));
|
582 |
invoiceTable.addCell(new Phrase("Amount (Rs)", helveticaBold8));
|
| 583 |
|
583 |
LineItem lineItem = order.getLineitems().get(0);
|
| 584 |
double orderAmount = order.getTotal_amount();
|
584 |
double orderAmount = order.getTotal_amount();
|
| 585 |
double rate = getTaxRate(order.getLineitems().get(0).getUnit_price());
|
585 |
double rate = lineItem.getVatRate();
|
| 586 |
double salesTax = (rate * orderAmount)/(100 + rate);
|
586 |
double salesTax = (rate * orderAmount)/(100 + rate);
|
| 587 |
|
587 |
|
| 588 |
populateBottomInvoiceTable(order, invoiceTable, rate);
|
588 |
populateBottomInvoiceTable(order, invoiceTable, rate);
|
| 589 |
|
589 |
|
| 590 |
PdfPCell salesTaxCell = getPriceCell(salesTax);
|
590 |
PdfPCell salesTaxCell = getPriceCell(salesTax);
|