Subversion Repositories SmartDukaan

Rev

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

Rev 19260 Rev 19276
Line 663... Line 663...
663
	private PdfPTable getPackagingInfoTable(List<Order> orderList) throws CatalogServiceException, TException{
663
	private PdfPTable getPackagingInfoTable(List<Order> orderList) throws CatalogServiceException, TException{
664
		PdfPTable finalTable = new PdfPTable(1);
664
		PdfPTable finalTable = new PdfPTable(1);
665
		finalTable.setWidthPercentage(90.0f);
665
		finalTable.setWidthPercentage(90.0f);
666
		finalTable.setSpacingBefore(5.0f);
666
		finalTable.setSpacingBefore(5.0f);
667
		finalTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
667
		finalTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
-
 
668
		finalTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
668
		finalTable.setSplitLate(false);
669
		finalTable.setSplitLate(false);
669
		PdfPTable customerAddresTable = new PdfPTable(1);
670
		PdfPTable customerAddresTable = new PdfPTable(1);
670
		customerAddresTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
671
		customerAddresTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
-
 
672
		customerAddresTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
671
		customerAddresTable.addCell(new Phrase("Customer Details: "+orderList.get(0).getCustomer_name() +" "+orderList.get(0).getCustomer_address1()
673
		customerAddresTable.addCell(new Phrase("Customer Details: "+orderList.get(0).getCustomer_name() +" "+orderList.get(0).getCustomer_address1()
672
				+orderList.get(0).getCustomer_address2() +" "+orderList.get(0).getCustomer_city() + "," + orderList.get(0).getCustomer_state()
674
				+orderList.get(0).getCustomer_address2() +" "+orderList.get(0).getCustomer_city() + "," + orderList.get(0).getCustomer_state()
673
				+" -"+orderList.get(0).getCustomer_pincode(), helvetica8));
675
				+" -"+orderList.get(0).getCustomer_pincode(), helvetica8));
674
		PdfPTable packagingTable = new PdfPTable(new float[]{0.1f, 0.1f, 0.1f, 0.2f, 0.2f, 0.1f, 0.07f, 0.08f, 0.1f});
676
		PdfPTable packagingTable = new PdfPTable(new float[]{0.1f, 0.1f, 0.1f, 0.2f, 0.2f, 0.1f, 0.07f, 0.08f, 0.1f});
675
		packagingTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
677
		packagingTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
-
 
678
		packagingTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
676
		packagingTable.addCell(new Phrase("ItemId", helveticaBold8));
679
		packagingTable.addCell(new Phrase("ItemId", helveticaBold8));
677
		packagingTable.addCell(new Phrase("BIN Id", helveticaBold8));
680
		packagingTable.addCell(new Phrase("BIN Id", helveticaBold8));
678
		packagingTable.addCell(new Phrase("SubOrder Id", helveticaBold8));
681
		packagingTable.addCell(new Phrase("SubOrder Id", helveticaBold8));
679
		packagingTable.addCell(new Phrase("Item Desc", helveticaBold8));
682
		packagingTable.addCell(new Phrase("Item Desc", helveticaBold8));
680
		packagingTable.addCell(new Phrase("Sr Nos", helveticaBold8));
683
		packagingTable.addCell(new Phrase("Sr Nos", helveticaBold8));
Line 1008... Line 1011...
1008
		invoiceTable.addCell(new Phrase("Paymode", helvetica8));
1011
		invoiceTable.addCell(new Phrase("Paymode", helvetica8));
1009
		invoiceTable.addCell(new Phrase("Product Name", helvetica8));
1012
		invoiceTable.addCell(new Phrase("Product Name", helvetica8));
1010
		invoiceTable.addCell(new Phrase("Quantity", helvetica8));
1013
		invoiceTable.addCell(new Phrase("Quantity", helvetica8));
1011
		invoiceTable.addCell(new Phrase("Rate", helvetica8));
1014
		invoiceTable.addCell(new Phrase("Rate", helvetica8));
1012
		invoiceTable.addCell(new Phrase("Amount", helvetica8));
1015
		invoiceTable.addCell(new Phrase("Amount", helvetica8));
1013
		invoiceTable.setHeaderRows(1);
1016
		invoiceTable.setHeaderRows(2);
1014
		double totalAmount = 0.0;
1017
		double totalAmount = 0.0;
1015
		double totalShippingCost = 0.0;
1018
		double totalShippingCost = 0.0;
1016
		double insuranceAmount = 0.0;
1019
		double insuranceAmount = 0.0;
1017
		double advanceAmount = 0.0;
1020
		double advanceAmount = 0.0;
1018
		double totalGvAmount = 0.0;
1021
		double totalGvAmount = 0.0;
Line 1646... Line 1649...
1646
		invoiceTable.addCell(new Phrase("Rate (Rs)", helveticaBold8));
1649
		invoiceTable.addCell(new Phrase("Rate (Rs)", helveticaBold8));
1647
		invoiceTable.addCell(new Phrase("Amount (Rs)", helveticaBold8));
1650
		invoiceTable.addCell(new Phrase("Amount (Rs)", helveticaBold8));
1648
		invoiceTable.addCell(new Phrase("Tax Rate%", helveticaBold8));
1651
		invoiceTable.addCell(new Phrase("Tax Rate%", helveticaBold8));
1649
		invoiceTable.addCell(new Phrase("Tax (Rs)", helveticaBold8));
1652
		invoiceTable.addCell(new Phrase("Tax (Rs)", helveticaBold8));
1650
		invoiceTable.addCell(new Phrase("Item Total (Rs)", helveticaBold8));
1653
		invoiceTable.addCell(new Phrase("Item Total (Rs)", helveticaBold8));
1651
		invoiceTable.setHeaderRows(1);
1654
		invoiceTable.setHeaderRows(2);
1652
		double totalAmount = 0.0;
1655
		double totalAmount = 0.0;
1653
		double insuranceAmount = 0.0;
1656
		double insuranceAmount = 0.0;
1654
		double totalShippingCost = 0.0;
1657
		double totalShippingCost = 0.0;
1655
		int i=1;
1658
		int i=1;
1656
		if("Bulk".equalsIgnoreCase(invoiceFormat)){
1659
		if("Bulk".equalsIgnoreCase(invoiceFormat)){