Subversion Repositories SmartDukaan

Rev

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

Rev 21844 Rev 21854
Line 214... Line 214...
214
	}
214
	}
215
 
215
 
216
	private static PdfPTable getPoDetailsTable(PurchaseOrder purchaseOrder, Supplier supplier, BuyerInfo binfo)
216
	private static PdfPTable getPoDetailsTable(PurchaseOrder purchaseOrder, Supplier supplier, BuyerInfo binfo)
217
			throws CatalogServiceException, TException {
217
			throws CatalogServiceException, TException {
218
		float[] widths;
218
		float[] widths;
219
		TaxType taxType = TaxType.SGST;
219
		TaxType taxType = purchaseOrder.getTaxType();
220
		if(taxType.equals(TaxType.SGST)){
220
		if(taxType.equals(TaxType.SGST)){
221
			widths = new float[] { 0.05f, 0.25f, 0.09f, 0.1f, 0.09f, 0.09f, 0.09f, 0.07f, 0.1f, 0.07f, 0.1f };
221
			widths = new float[] { 0.05f, 0.25f, 0.09f, 0.1f, 0.09f, 0.09f, 0.09f, 0.07f, 0.1f, 0.07f, 0.1f };
222
		} else {
222
		} else {
223
			widths = new float[] { 0.1f, 0.27f, 0.1f, 0.1f, 0.1f, 0.1f, 0.1f, 0.08f, 0.1f };
223
			widths = new float[] { 0.1f, 0.27f, 0.1f, 0.1f, 0.1f, 0.1f, 0.1f, 0.08f, 0.1f };
224
		}
224
		}
Line 260... Line 260...
260
			detailsTable.addCell(cell2);
260
			detailsTable.addCell(cell2);
261
		} else {
261
		} else {
262
			PdfPCell cell3 = new PdfPCell(new Phrase("IGST", helveticaBold8));
262
			PdfPCell cell3 = new PdfPCell(new Phrase("IGST", helveticaBold8));
263
			cell3.setHorizontalAlignment(Element.ALIGN_CENTER);
263
			cell3.setHorizontalAlignment(Element.ALIGN_CENTER);
264
			cell3.setRowspan(2);
264
			cell3.setRowspan(2);
-
 
265
			detailsTable.addCell(cell3);
265
		}
266
		}
266
		
267
		
267
		if(taxType.equals(TaxType.SGST)) {
268
		if(taxType.equals(TaxType.SGST)) {
268
			detailsTable.addCell(new Phrase("Rate(%)", helveticaBold8));
269
			detailsTable.addCell(new Phrase("Rate(%)", helveticaBold8));
269
			detailsTable.addCell(new Phrase("Amount", helveticaBold8));
270
			detailsTable.addCell(new Phrase("Amount", helveticaBold8));