Subversion Repositories SmartDukaan

Rev

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

Rev 21854 Rev 23081
Line 124... Line 124...
124
		poTable.addCell(poSummaryTable);
124
		poTable.addCell(poSummaryTable);
125
		poTable.addCell(getSalutationTable(supplier));
125
		poTable.addCell(getSalutationTable(supplier));
126
		poTable.addCell(getPoDetailsTable(purchaseOrder, supplier, binfo));
126
		poTable.addCell(getPoDetailsTable(purchaseOrder, supplier, binfo));
127
		poTable.addCell(getBillToTable(purchaseOrder));
127
		poTable.addCell(getBillToTable(purchaseOrder));
128
		// poTable.addCell(getCFormCell(purchaseOrder.getTaxType()));
128
		// poTable.addCell(getCFormCell(purchaseOrder.getTaxType()));
-
 
129
		
-
 
130
		if(supplier.isSetTnc()) {
-
 
131
			poTable.addCell(getTncTable(supplier.getTnc()));
-
 
132
		}
129
 
133
 
130
		return poTable;
134
		return poTable;
131
	}
135
	}
132
 
136
 
133
	/*
137
	/*
Line 325... Line 329...
325
		cell.setRowspan(2);
329
		cell.setRowspan(2);
326
		cell.setHorizontalAlignment(Element.ALIGN_CENTER);
330
		cell.setHorizontalAlignment(Element.ALIGN_CENTER);
327
		cell.setVerticalAlignment(Element.ALIGN_MIDDLE);
331
		cell.setVerticalAlignment(Element.ALIGN_MIDDLE);
328
		return cell;
332
		return cell;
329
	}
333
	}
-
 
334
	private static PdfPTable getTncTable(String tnc) {
-
 
335
		PdfPTable tncTable = new PdfPTable(new float[] { 1f });
-
 
336
		tncTable.addCell(new Phrase("Terms & Conditions", helveticaBold8));
-
 
337
		tncTable.addCell(new Phrase(tnc, helvetica8));
-
 
338
		return tncTable;
330
	
339
	}
331
	private static PdfPTable getBillToTable(PurchaseOrder po) {
340
	private static PdfPTable getBillToTable(PurchaseOrder po) {
332
		// TODO Write this code in a proper configurable way
341
		// TODO Write this code in a proper configurable way
333
		String address = "";
342
		String address = "";
334
		String gstin = "";
343
		String gstin = "";
335
		String contactPerson = "Neeraj Gupta";
344
		String contactPerson = "Neeraj Gupta";