Subversion Repositories SmartDukaan

Rev

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

Rev 20818 Rev 20943
Line 758... Line 758...
758
		packagingTable.addCell(new Phrase(grandTotalPieces+"", helveticaBold8));
758
		packagingTable.addCell(new Phrase(grandTotalPieces+"", helveticaBold8));
759
		finalTable.addCell(customerAddresTable);
759
		finalTable.addCell(customerAddresTable);
760
		finalTable.addCell(packagingTable);
760
		finalTable.addCell(packagingTable);
761
		return finalTable;
761
		return finalTable;
762
	}
762
	}
-
 
763
	
-
 
764
	private double getTotalAmountToCollect(List<Order> orderList){
-
 
765
		Order order = orderList.get(0);
-
 
766
		double totalAmount = 0.0;
-
 
767
		if(order.isSetNet_payable_amount()){
-
 
768
			for (Order o: orderList){
-
 
769
				totalAmount = totalAmount + o.getNet_payable_amount();
-
 
770
			}
-
 
771
		}
-
 
772
		else{
-
 
773
			for (Order o: orderList){
-
 
774
				totalAmount = totalAmount + o.getTotal_amount() +o.getShippingCost()-o.getGvAmount()-o.getAdvanceAmount() -o.getWallet_amount();
-
 
775
			}
-
 
776
		}
-
 
777
		return totalAmount;
-
 
778
	}
-
 
779
	
-
 
780
	private boolean isCod(List<Order> orderList){
-
 
781
		Order order = orderList.get(0);
-
 
782
		double totalAmount = 0.0;
-
 
783
		if (order.isCod()){
-
 
784
			if(order.isSetNet_payable_amount()){
-
 
785
				for (Order o: orderList){
-
 
786
					totalAmount = totalAmount + o.getNet_payable_amount();
-
 
787
				}
-
 
788
				if (totalAmount == 0){
-
 
789
					return false;
-
 
790
				}
-
 
791
			}
-
 
792
			return true;
-
 
793
		}
-
 
794
		else{
-
 
795
			return false;
-
 
796
		}
-
 
797
	}
763
 
798
 
764
	private PdfPTable getDispatchAdviceTable(List<Order> orderList, Provider provider, float barcodeFontSize, String destCode, boolean withBill, String invoiceFormat) throws TException{
799
	private PdfPTable getDispatchAdviceTable(List<Order> orderList, Provider provider, float barcodeFontSize, String destCode, boolean withBill, String invoiceFormat) throws TException{
765
		Order order = orderList.get(0);
800
		Order order = orderList.get(0);
766
		Font barCodeFont = getBarCodeFont(provider, barcodeFontSize);
801
		Font barCodeFont = getBarCodeFont(provider, barcodeFontSize);
767
		
802
		
768
		double totalAmount = 0.0;
803
		double totalAmount = getTotalAmountToCollect(orderList);
769
		double totalWeight = 0.0;
804
		double totalWeight = 0.0;
-
 
805
		boolean cashOnDelivery = isCod(orderList);
770
		
806
		
771
		for (Order o: orderList){
807
		for (Order o: orderList){
772
			totalAmount = totalAmount + o.getTotal_amount() +o.getShippingCost()-o.getGvAmount()-o.getAdvanceAmount();
-
 
773
			totalWeight = totalWeight + o.getTotal_weight();
808
			totalWeight = totalWeight + o.getTotal_weight();
774
		}
809
		}
775
 
810
 
776
		PdfPTable table = new PdfPTable(1);
811
		PdfPTable table = new PdfPTable(1);
777
		table.setSplitLate(false);
812
		table.setSplitLate(false);
Line 783... Line 818...
783
		PdfPTable logoTable = new PdfPTable(2);
818
		PdfPTable logoTable = new PdfPTable(2);
784
		addLogoTable(logoTable,order); 
819
		addLogoTable(logoTable,order); 
785
		
820
		
786
		PdfPCell titleCell = getTitleCell();
821
		PdfPCell titleCell = getTitleCell();
787
		PdfPTable customerTable = getCustomerAddressTable(order, destCode, false, helvetica12, false, false);
822
		PdfPTable customerTable = getCustomerAddressTable(order, destCode, false, helvetica12, false, false);
788
		PdfPTable providerInfoTable = getProviderTable(order, provider, barCodeFont, totalWeight);
823
		PdfPTable providerInfoTable = getProviderTable(order, provider, barCodeFont, totalWeight, cashOnDelivery);
789
 
824
 
790
		PdfPTable dispatchTable = new PdfPTable(new float[]{0.5f, 0.1f, 0.4f});
825
		PdfPTable dispatchTable = new PdfPTable(new float[]{0.5f, 0.1f, 0.4f});
791
		dispatchTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
826
		dispatchTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
792
		dispatchTable.addCell(customerTable);
827
		dispatchTable.addCell(customerTable);
793
		dispatchTable.addCell(new Phrase(" "));
828
		dispatchTable.addCell(new Phrase(" "));
Line 802... Line 837...
802
				" - " + addressInfo.getPin() + "\nContact No.- +91-"+addressInfo.getContact_number() + "\n\n");
837
				" - " + addressInfo.getPin() + "\nContact No.- +91-"+addressInfo.getContact_number() + "\n\n");
803
 
838
 
804
		PdfPTable chargesTable = new PdfPTable(1);
839
		PdfPTable chargesTable = new PdfPTable(1);
805
		chargesTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
840
		chargesTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
806
		chargesTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
841
		chargesTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
807
		if(order.isLogisticsCod()){
842
		if(cashOnDelivery){
808
			chargesTable.addCell(new Phrase("AMOUNT TO BE COLLECTED : Rs " + (totalAmount), helveticaBold12));
843
			chargesTable.addCell(new Phrase("AMOUNT TO BE COLLECTED : Rs " + (totalAmount), helveticaBold12));
809
			//chargesTable.addCell(new Phrase("RTO ADDRESS:DEL/HPW/111116"));
844
			//chargesTable.addCell(new Phrase("RTO ADDRESS:DEL/HPW/111116"));
810
			//Start:-Added By Manish Sharma for FedEx Integration - Shipment Creation on 21-Aug-2013
845
			//Start:-Added By Manish Sharma for FedEx Integration - Shipment Creation on 21-Aug-2013
811
			if(order.getLogistics_provider_id()==7L || order.getLogistics_provider_id()==46L){
846
			if(order.getLogistics_provider_id()==7L || order.getLogistics_provider_id()==46L){
812
				in.shop2020.model.v1.order.TransactionService.Client tclient = tsc.getClient();
847
				in.shop2020.model.v1.order.TransactionService.Client tclient = tsc.getClient();
Line 915... Line 950...
915
		titleCell.setHorizontalAlignment(Element.ALIGN_CENTER);
950
		titleCell.setHorizontalAlignment(Element.ALIGN_CENTER);
916
		titleCell.setBorder(Rectangle.NO_BORDER);
951
		titleCell.setBorder(Rectangle.NO_BORDER);
917
		return titleCell;
952
		return titleCell;
918
	}
953
	}
919
 
954
 
920
	private PdfPTable getProviderTable(Order order, Provider provider, Font barCodeFont, double totalWeight) throws TException {
955
	private PdfPTable getProviderTable(Order order, Provider provider, Font barCodeFont, double totalWeight, boolean cashOnDelivery) throws TException {
921
		PdfPTable providerInfoTable = new PdfPTable(1);
956
		PdfPTable providerInfoTable = new PdfPTable(1);
922
		providerInfoTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
957
		providerInfoTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
923
		
958
		
924
		if (provider.getId() ==1L){
959
		if (provider.getId() ==1L){
925
			PdfPCell spnCell = new PdfPCell(new Phrase("SPN : 09650099008S", helvetica12));
960
			PdfPCell spnCell = new PdfPCell(new Phrase("SPN : 09650099008S", helvetica12));
926
			spnCell.setHorizontalAlignment(Element.ALIGN_LEFT);
961
			spnCell.setHorizontalAlignment(Element.ALIGN_LEFT);
927
			spnCell.setBorder(Rectangle.NO_BORDER);
962
			spnCell.setBorder(Rectangle.NO_BORDER);
928
			providerInfoTable.addCell(spnCell);
963
			providerInfoTable.addCell(spnCell);
929
		}
964
		}
930
		
965
		
931
		if(order.isLogisticsCod()){
966
		if(cashOnDelivery){
932
			PdfPCell deliveryTypeCell = new PdfPCell(new Phrase("COD   ", helvetica22));
967
			PdfPCell deliveryTypeCell = new PdfPCell(new Phrase("COD   ", helvetica22));
933
			deliveryTypeCell.setHorizontalAlignment(Element.ALIGN_RIGHT);
968
			deliveryTypeCell.setHorizontalAlignment(Element.ALIGN_RIGHT);
934
			deliveryTypeCell.setBorder(Rectangle.NO_BORDER);
969
			deliveryTypeCell.setBorder(Rectangle.NO_BORDER);
935
			providerInfoTable.addCell(deliveryTypeCell);
970
			providerInfoTable.addCell(deliveryTypeCell);
936
		}
971
		}
Line 939... Line 974...
939
		PdfPCell providerNameCell = new PdfPCell(new Phrase(provider.getName(), helveticaBold12));
974
		PdfPCell providerNameCell = new PdfPCell(new Phrase(provider.getName(), helveticaBold12));
940
		providerNameCell.setHorizontalAlignment(Element.ALIGN_LEFT);
975
		providerNameCell.setHorizontalAlignment(Element.ALIGN_LEFT);
941
		providerNameCell.setBorder(Rectangle.NO_BORDER);
976
		providerNameCell.setBorder(Rectangle.NO_BORDER);
942
		PdfPCell formIdCell= null;
977
		PdfPCell formIdCell= null;
943
		if(order.getLogistics_provider_id()==7L || order.getLogistics_provider_id()==46L){
978
		if(order.getLogistics_provider_id()==7L || order.getLogistics_provider_id()==46L){
944
			if(order.isCod()){
979
			if(cashOnDelivery){
945
				formIdCell = new PdfPCell(new Paragraph(order.getAirwaybill_no()+" Form id-0305", helvetica6));
980
				formIdCell = new PdfPCell(new Paragraph(order.getAirwaybill_no()+" Form id-0305", helvetica6));
946
			}
981
			}
947
			else{
982
			else{
948
				formIdCell = new PdfPCell(new Paragraph(order.getAirwaybill_no()+" Form id-0467", helvetica6));
983
				formIdCell = new PdfPCell(new Paragraph(order.getAirwaybill_no()+" Form id-0467", helvetica6));
949
			}
984
			}
Line 996... Line 1031...
996
		} catch(Exception e) {
1031
		} catch(Exception e) {
997
		    logger.error("Unable to get warehouse for id : " + order.getWarehouse_id(), e);
1032
		    logger.error("Unable to get warehouse for id : " + order.getWarehouse_id(), e);
998
		    //TODO throw e;
1033
		    //TODO throw e;
999
		}
1034
		}
1000
		DeliveryType dt =  DeliveryType.PREPAID;
1035
		DeliveryType dt =  DeliveryType.PREPAID;
1001
        if (order.isLogisticsCod()) {
1036
        if (cashOnDelivery) {
1002
            dt = DeliveryType.COD;
1037
            dt = DeliveryType.COD;
1003
        }
1038
        }
1004
        //Start:-Added By Manish Sharma for FedEx Integration - Shipment Creation on 21-Aug-2013
1039
        //Start:-Added By Manish Sharma for FedEx Integration - Shipment Creation on 21-Aug-2013
1005
        if(order.getLogistics_provider_id()!=7L && order.getLogistics_provider_id()!=46L){
1040
        if(order.getLogistics_provider_id()!=7L && order.getLogistics_provider_id()!=46L){
1006
	        for (ProviderDetails detail : provider.getDetails()) {
1041
	        for (ProviderDetails detail : provider.getDetails()) {
Line 1058... Line 1093...
1058
		if("Bulk".equalsIgnoreCase(invoiceFormat)){
1093
		if("Bulk".equalsIgnoreCase(invoiceFormat)){
1059
			invoiceTable.addCell(new Phrase("Sr No", helvetica8));
1094
			invoiceTable.addCell(new Phrase("Sr No", helvetica8));
1060
		}else{
1095
		}else{
1061
			invoiceTable.addCell(new Phrase("Order No", helvetica8));
1096
			invoiceTable.addCell(new Phrase("Order No", helvetica8));
1062
		}
1097
		}
1063
		invoiceTable.addCell(new Phrase("Paymode", helvetica8));
1098
		//invoiceTable.addCell(new Phrase("Paymode", helvetica8));
1064
		invoiceTable.addCell(new Phrase("Product Name", helvetica8));
1099
		invoiceTable.addCell(new Phrase("Product Name", helvetica8));
1065
		invoiceTable.addCell(new Phrase("Quantity", helvetica8));
1100
		invoiceTable.addCell(new Phrase("Quantity", helvetica8));
1066
		invoiceTable.addCell(new Phrase("Rate", helvetica8));
1101
		invoiceTable.addCell(new Phrase("Rate", helvetica8));
1067
		invoiceTable.addCell(new Phrase("Amount", helvetica8));
1102
		invoiceTable.addCell(new Phrase("Amount", helvetica8));
1068
		invoiceTable.setHeaderRows(2);
1103
		invoiceTable.setHeaderRows(2);
1069
		double totalAmount = 0.0;
1104
		double totalAmount = 0.0;
1070
		double totalShippingCost = 0.0;
1105
		double totalShippingCost = 0.0;
1071
		double insuranceAmount = 0.0;
1106
		double insuranceAmount = 0.0;
1072
		double advanceAmount = 0.0;
1107
		double advanceAmount = 0.0;
1073
		double totalGvAmount = 0.0;
1108
		double totalGvAmount = 0.0;
-
 
1109
		double totalWalletAmount = 0.0;
1074
		
1110
		
1075
		
1111
		
1076
		if("Bulk".equalsIgnoreCase(invoiceFormat)){
1112
		if("Bulk".equalsIgnoreCase(invoiceFormat)){
1077
			Map<Long, String> itemNamesMap= new HashMap<Long, String>();
1113
			Map<Long, String> itemNamesMap= new HashMap<Long, String>();
1078
			Map<Long, Double> itemQuantityMap = new HashMap<Long, Double>();
1114
			Map<Long, Double> itemQuantityMap = new HashMap<Long, Double>();
1079
			Map<Long, Double> itemRateMap = new HashMap<Long, Double>();
1115
			Map<Long, Double> itemRateMap = new HashMap<Long, Double>();
1080
			Map<Long, Double> itemTotalAmtMap = new HashMap<Long, Double>();
1116
			Map<Long, Double> itemTotalAmtMap = new HashMap<Long, Double>();
1081
			String paymentMode = "";
-
 
1082
			for(Order order : orderList){
1117
			for(Order order : orderList){
1083
				LineItem lineitem = order.getLineitems().get(0);
1118
				LineItem lineitem = order.getLineitems().get(0);
1084
				totalAmount = totalAmount + order.getTotal_amount()-order.getAdvanceAmount()-order.getGvAmount();
1119
				totalAmount = totalAmount + order.getTotal_amount()-order.getAdvanceAmount()-order.getGvAmount()-order.getWallet_amount();
1085
				totalShippingCost = totalShippingCost + order.getShippingCost();
1120
				totalShippingCost = totalShippingCost + order.getShippingCost();
1086
				totalGvAmount = totalGvAmount + order.getGvAmount();
1121
				totalGvAmount = totalGvAmount + order.getGvAmount();
-
 
1122
				totalWalletAmount = totalWalletAmount + order.getWallet_amount(); 
1087
				if(order.getInsurer() > 0) {
1123
				if(order.getInsurer() > 0) {
1088
					insuranceAmount =insuranceAmount + order.getInsuranceAmount();
1124
					insuranceAmount =insuranceAmount + order.getInsuranceAmount();
1089
				}
1125
				}
1090
				if(order.getSource() == OrderSource.STORE.getValue()) {
1126
				if(order.getSource() == OrderSource.STORE.getValue()) {
1091
					advanceAmount = advanceAmount + order.getAdvanceAmount();
1127
					advanceAmount = advanceAmount + order.getAdvanceAmount();
Line 1107... Line 1143...
1107
					double totalItemAmount = itemTotalAmtMap.get(lineitem.getItem_id()) + (order.getTotal_amount()-order.getAdvanceAmount()-order.getInsuranceAmount());
1143
					double totalItemAmount = itemTotalAmtMap.get(lineitem.getItem_id()) + (order.getTotal_amount()-order.getAdvanceAmount()-order.getInsuranceAmount());
1108
					itemTotalAmtMap.put(lineitem.getItem_id(), totalItemAmount);
1144
					itemTotalAmtMap.put(lineitem.getItem_id(), totalItemAmount);
1109
				}else{
1145
				}else{
1110
					itemTotalAmtMap.put(lineitem.getItem_id(), (order.getTotal_amount()-order.getAdvanceAmount()-order.getInsuranceAmount()));
1146
					itemTotalAmtMap.put(lineitem.getItem_id(), (order.getTotal_amount()-order.getAdvanceAmount()-order.getInsuranceAmount()));
1111
				}
1147
				}
1112
				if(paymentMode==null || paymentMode.isEmpty()){
1148
//				if(paymentMode==null || paymentMode.isEmpty()){
1113
					if(order.getPickupStoreId() > 0 && order.isCod() == true)
1149
//					if(order.getPickupStoreId() > 0 && order.isCod() == true)
1114
						paymentMode = "In-Store";
1150
//						paymentMode = "In-Store";
1115
					else if (order.isCod())
1151
//					else if (order.isCod())
1116
						paymentMode = "COD";
1152
//						paymentMode = "COD";
1117
					else
1153
//					else
1118
						paymentMode = "Prepaid";
1154
//						paymentMode = "Prepaid";
1119
				}		
1155
//				}		
1120
			}
1156
			}
1121
			
1157
			
1122
			int serialNo = 0;
1158
			int serialNo = 0;
1123
			for(Long itemId : itemNamesMap.keySet()){
1159
			for(Long itemId : itemNamesMap.keySet()){
1124
				serialNo ++;
1160
				serialNo ++;
1125
				invoiceTable.addCell(new Phrase(serialNo+ "", helvetica8));
1161
				invoiceTable.addCell(new Phrase(serialNo+ "", helvetica8));
1126
				invoiceTable.addCell(new Phrase(paymentMode, helvetica8));
1162
				//invoiceTable.addCell(new Phrase(paymentMode, helvetica8));
1127
				invoiceTable.addCell(new Phrase(itemNamesMap.get(itemId), helvetica8));
1163
				invoiceTable.addCell(new Phrase(itemNamesMap.get(itemId), helvetica8));
1128
				invoiceTable.addCell(new Phrase(itemQuantityMap.get(itemId)+"", helvetica8));
1164
				invoiceTable.addCell(new Phrase(itemQuantityMap.get(itemId)+"", helvetica8));
1129
				invoiceTable.addCell(new Phrase(itemRateMap.get(itemId)+"", helvetica8));
1165
				invoiceTable.addCell(new Phrase(itemRateMap.get(itemId)+"", helvetica8));
1130
				invoiceTable.addCell(new Phrase(itemTotalAmtMap.get(itemId)+"", helvetica8));
1166
				invoiceTable.addCell(new Phrase(itemTotalAmtMap.get(itemId)+"", helvetica8));
1131
			}
1167
			}
Line 1148... Line 1184...
1148
					insuranceAmount =insuranceAmount + order.getInsuranceAmount();
1184
					insuranceAmount =insuranceAmount + order.getInsuranceAmount();
1149
				}
1185
				}
1150
				if(order.getSource() == OrderSource.STORE.getValue()) {
1186
				if(order.getSource() == OrderSource.STORE.getValue()) {
1151
					advanceAmount = advanceAmount + order.getAdvanceAmount();
1187
					advanceAmount = advanceAmount + order.getAdvanceAmount();
1152
				}
1188
				}
1153
				totalAmount = totalAmount + order.getTotal_amount()-order.getAdvanceAmount()-order.getGvAmount();
1189
				totalAmount = totalAmount + order.getTotal_amount()-order.getAdvanceAmount()-order.getGvAmount()-order.getWallet_amount();
1154
				totalShippingCost = totalShippingCost + order.getShippingCost();
1190
				totalShippingCost = totalShippingCost + order.getShippingCost();
1155
				totalGvAmount = totalGvAmount + order.getGvAmount();
1191
				totalGvAmount = totalGvAmount + order.getGvAmount();
-
 
1192
				totalWalletAmount = totalWalletAmount + order.getWallet_amount();
1156
			}
1193
			}
1157
		}
1194
		}
1158
		if(insuranceAmount>0){
1195
		if(insuranceAmount>0){
1159
			invoiceTable.addCell(getInsuranceCell(4));
1196
			invoiceTable.addCell(getInsuranceCell(4));
1160
			invoiceTable.addCell(getPriceCell(insuranceAmount));
1197
			invoiceTable.addCell(getPriceCell(insuranceAmount));
Line 1174... Line 1211...
1174
			totalGvAmount = 0-totalGvAmount;
1211
			totalGvAmount = 0-totalGvAmount;
1175
			invoiceTable.addCell(getGvAmountCell(4));      
1212
			invoiceTable.addCell(getGvAmountCell(4));      
1176
			invoiceTable.addCell(getRupeesCell(false));
1213
			invoiceTable.addCell(getRupeesCell(false));
1177
			invoiceTable.addCell(getPriceCell(totalGvAmount));
1214
			invoiceTable.addCell(getPriceCell(totalGvAmount));
1178
		}
1215
		}
-
 
1216
		if(totalWalletAmount>0){
-
 
1217
			totalWalletAmount = 0-totalWalletAmount;
-
 
1218
			invoiceTable.addCell(getGvAmountCell(4));      
-
 
1219
			invoiceTable.addCell(getRupeesCell(false));
-
 
1220
			invoiceTable.addCell(getPriceCell(totalWalletAmount));
-
 
1221
		}
-
 
1222
		
1179
		invoiceTable.addCell(getTotalCell(4));      
1223
		invoiceTable.addCell(getTotalCell(4));      
1180
		invoiceTable.addCell(getRupeesCell(true));
1224
		invoiceTable.addCell(getRupeesCell(true));
1181
		invoiceTable.addCell(getTotalAmountCell(totalAmount+totalShippingCost));
1225
		invoiceTable.addCell(getTotalAmountCell(totalAmount+totalShippingCost));
1182
		
1226
		
1183
 
1227
 
Line 1191... Line 1235...
1191
 
1235
 
1192
	private void populateTopInvoiceTable(Order order, PdfPTable invoiceTable) {
1236
	private void populateTopInvoiceTable(Order order, PdfPTable invoiceTable) {
1193
		List<LineItem> lineitems = order.getLineitems();
1237
		List<LineItem> lineitems = order.getLineitems();
1194
		for (LineItem lineitem : lineitems) {
1238
		for (LineItem lineitem : lineitems) {
1195
			invoiceTable.addCell(new Phrase(order.getId() + "", helvetica8));
1239
			invoiceTable.addCell(new Phrase(order.getId() + "", helvetica8));
1196
			if(order.getPickupStoreId() > 0 && order.isCod() == true)
1240
//			if(order.getPickupStoreId() > 0 && order.isCod() == true)
1197
				invoiceTable.addCell(new Phrase("In-Store", helvetica8));
1241
//				invoiceTable.addCell(new Phrase("In-Store", helvetica8));
1198
			else if (order.isCod())
1242
//			else if (order.isCod())
1199
				invoiceTable.addCell(new Phrase("COD", helvetica8));
1243
//				invoiceTable.addCell(new Phrase("COD", helvetica8));
1200
			else
1244
//			else
1201
				invoiceTable.addCell(new Phrase("Prepaid", helvetica8));
1245
//				invoiceTable.addCell(new Phrase("Prepaid", helvetica8));
1202
			
1246
			
1203
			invoiceTable.addCell(getProductNameCell(lineitem, false, order.getFreebieItemId()));
1247
			invoiceTable.addCell(getProductNameCell(lineitem, false, order.getFreebieItemId()));
1204
 
1248
 
1205
			invoiceTable.addCell(new Phrase(lineitem.getQuantity() + "", helvetica8));
1249
			invoiceTable.addCell(new Phrase(lineitem.getQuantity() + "", helvetica8));
1206
 
1250