Subversion Repositories SmartDukaan

Rev

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

Rev 23081 Rev 23828
Line 316... Line 316...
316
			}
316
			}
317
 
317
 
318
			totalUnits += lineitem.getQuantity();
318
			totalUnits += lineitem.getQuantity();
319
			total += totalAmount;
319
			total += totalAmount;
320
		}
320
		}
-
 
321
		if(purchaseOrder.getTaxType().equals(TaxType.SGST)) {
-
 
322
			
-
 
323
			detailsTable.addCell(getTotalCell(3));
-
 
324
			detailsTable.addCell(new Phrase(String.format("%.0f", totalUnits), helvetica8));
-
 
325
			detailsTable.addCell(getTotalAmountCell(7, total));
-
 
326
		} else {
321
		detailsTable.addCell(getTotalCell(2));
327
			detailsTable.addCell(getTotalCell(2));
322
		detailsTable.addCell(new Phrase(String.format("%.0f", totalUnits), helvetica8));
328
			detailsTable.addCell(new Phrase(String.format("%.0f", totalUnits), helvetica8));
323
		detailsTable.addCell(getTotalAmountCell(6, total));
329
			detailsTable.addCell(getTotalAmountCell(6, total));
-
 
330
		}
324
		return detailsTable;
331
		return detailsTable;
325
	}
332
	}
326
 
333
 
327
	private static PdfPCell getHeaderCell(String headerName) {
334
	private static PdfPCell getHeaderCell(String headerName) {
328
		PdfPCell cell = new PdfPCell(new Phrase(headerName, helveticaBold8));
335
		PdfPCell cell = new PdfPCell(new Phrase(headerName, helveticaBold8));