Subversion Repositories SmartDukaan

Rev

Rev 4801 | Rev 5387 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4801 Rev 4951
Line 520... Line 520...
520
        invoiceTable.addCell(new Phrase("Quantity", helveticaBold8));
520
        invoiceTable.addCell(new Phrase("Quantity", helveticaBold8));
521
        invoiceTable.addCell(new Phrase("Rate (Rs)", helveticaBold8));
521
        invoiceTable.addCell(new Phrase("Rate (Rs)", helveticaBold8));
522
        invoiceTable.addCell(new Phrase("Amount (Rs)", helveticaBold8));
522
        invoiceTable.addCell(new Phrase("Amount (Rs)", helveticaBold8));
523
        
523
        
524
        double orderAmount = order.getTotal_amount();
524
        double orderAmount = order.getTotal_amount();
525
        double rate = getTaxRate(orderAmount);
525
        double rate = getTaxRate(order.getLineitems().get(0).getUnit_price());
526
        double salesTax = (rate * orderAmount)/(100 + rate);
526
        double salesTax = (rate * orderAmount)/(100 + rate);
527
        
527
        
528
        populateBottomInvoiceTable(order, invoiceTable, rate);
528
        populateBottomInvoiceTable(order, invoiceTable, rate);
529
        
529
        
530
        PdfPCell salesTaxCell = getPriceCell(salesTax);
530
        PdfPCell salesTaxCell = getPriceCell(salesTax);