Subversion Repositories SmartDukaan

Rev

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

Rev 7014 Rev 7057
Line 593... Line 593...
593
		invoiceTable.addCell(new Phrase("Rate (Rs)", helveticaBold8));
593
		invoiceTable.addCell(new Phrase("Rate (Rs)", helveticaBold8));
594
		invoiceTable.addCell(new Phrase("Amount (Rs)", helveticaBold8));
594
		invoiceTable.addCell(new Phrase("Amount (Rs)", helveticaBold8));
595
		LineItem lineItem = order.getLineitems().get(0);
595
		LineItem lineItem = order.getLineitems().get(0);
596
		double orderAmount = order.getTotal_amount();
596
		double orderAmount = order.getTotal_amount();
597
		double rate = lineItem.getVatRate();
597
		double rate = lineItem.getVatRate();
598
		double salesTax = (rate * orderAmount)/(100 + rate);
598
		double salesTax = (rate * (orderAmount - order.getInsuranceAmount()))/(100 + rate);
599
 
599
 
600
		populateBottomInvoiceTable(order, invoiceTable, rate);
600
		populateBottomInvoiceTable(order, invoiceTable, rate);
601
 
601
 
602
		PdfPCell salesTaxCell = getPriceCell(salesTax);
602
		PdfPCell salesTaxCell = getPriceCell(salesTax);
603
 
603