Subversion Repositories SmartDukaan

Rev

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

Rev 20950 Rev 20985
Line 1213... Line 1213...
1213
			invoiceTable.addCell(getRupeesCell(false));
1213
			invoiceTable.addCell(getRupeesCell(false));
1214
			invoiceTable.addCell(getPriceCell(totalGvAmount));
1214
			invoiceTable.addCell(getPriceCell(totalGvAmount));
1215
		}
1215
		}
1216
		if(totalWalletAmount>0){
1216
		if(totalWalletAmount>0){
1217
			totalWalletAmount = 0-totalWalletAmount;
1217
			totalWalletAmount = 0-totalWalletAmount;
1218
			invoiceTable.addCell(getGvAmountCell(3));      
1218
			invoiceTable.addCell(getWalletAmountCell(3));      
1219
			invoiceTable.addCell(getRupeesCell(false));
1219
			invoiceTable.addCell(getRupeesCell(false));
1220
			invoiceTable.addCell(getPriceCell(totalWalletAmount));
1220
			invoiceTable.addCell(getPriceCell(totalWalletAmount));
1221
		}
1221
		}
1222
		
1222
		
1223
		invoiceTable.addCell(getTotalCell(3));      
1223
		invoiceTable.addCell(getTotalCell(3));      
Line 2008... Line 2008...
2008
	private PdfPCell getGvAmountCell(int colspan) {
2008
	private PdfPCell getGvAmountCell(int colspan) {
2009
		PdfPCell codChargesCell = new PdfPCell(new Phrase("GV Amount", helvetica8));
2009
		PdfPCell codChargesCell = new PdfPCell(new Phrase("GV Amount", helvetica8));
2010
		codChargesCell.setColspan(colspan);
2010
		codChargesCell.setColspan(colspan);
2011
		return codChargesCell;
2011
		return codChargesCell;
2012
	}
2012
	}
-
 
2013
	
-
 
2014
	private PdfPCell getWalletAmountCell(int colspan) {
-
 
2015
		PdfPCell codChargesCell = new PdfPCell(new Phrase("Wallet Amount", helvetica8));
-
 
2016
		codChargesCell.setColspan(colspan);
-
 
2017
		return codChargesCell;
-
 
2018
	}
2013
 
2019
 
2014
	private PdfPCell getTotalCell(int colspan) {
2020
	private PdfPCell getTotalCell(int colspan) {
2015
		PdfPCell totalCell = new PdfPCell(new Phrase("Grand Total", helveticaBold8));
2021
		PdfPCell totalCell = new PdfPCell(new Phrase("Grand Total", helveticaBold8));
2016
		totalCell.setColspan(colspan);
2022
		totalCell.setColspan(colspan);
2017
		totalCell.setHorizontalAlignment(Element.ALIGN_RIGHT);
2023
		totalCell.setHorizontalAlignment(Element.ALIGN_RIGHT);