Subversion Repositories SmartDukaan

Rev

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

Rev 20839 Rev 20840
Line 116... Line 116...
116
			PdfPTable ordersTable = null;
116
			PdfPTable ordersTable = null;
117
			ordersTable = new PdfPTable(8);
117
			ordersTable = new PdfPTable(8);
118
			if (providerId > 7 && providerId <12) {
118
			if (providerId > 7 && providerId <12) {
119
				ordersTable = new PdfPTable(10);
119
				ordersTable = new PdfPTable(10);
120
			} else {
120
			} else {
121
				ordersTable.setWidths(new float[]{1, 2, 2, 1, 2, 2, 1, 2});
121
				ordersTable.setWidths(new float[]{0.8f, 2, 2, 1.1f, 2, 2, 1.1f, 2});
122
			}
122
			}
123
			
123
			
124
			ordersTable.addCell(new Phrase("Sl No", helvetica8));
124
			ordersTable.addCell(new Phrase("Sl No", helvetica8));
125
			ordersTable.addCell(new Phrase("Master Order Id", helvetica8));
125
			ordersTable.addCell(new Phrase("Master Order Id", helvetica8));
126
			
126
			
127
			ordersTable.addCell(new Phrase("AWB No", helvetica8));
127
			ordersTable.addCell(new Phrase("AWB No", helvetica8));
128
			ordersTable.addCell(new Phrase("Packet Wt.", helvetica8));
128
			ordersTable.addCell(new Phrase("Packet Wt.(Kg)", helvetica8));
129
			
129
			
130
			//if Logistics is Ebay Power Ship add extra fields like Sales Record Number and PaisaPayId
130
			//if Logistics is Ebay Power Ship add extra fields like Sales Record Number and PaisaPayId
131
			if(providerId > 7 && providerId <12) {
131
			if(providerId > 7 && providerId <12) {
132
				ordersTable.addCell(new Phrase("PaisaPayId", helvetica8));
132
				ordersTable.addCell(new Phrase("PaisaPayId", helvetica8));
133
				ordersTable.addCell(new Phrase("Sales Rec No.", helvetica8));
133
				ordersTable.addCell(new Phrase("Sales Rec No.", helvetica8));
Line 227... Line 227...
227
					ordersTable.addCell(new Phrase(store.getPhone(), helvetica8));
227
					ordersTable.addCell(new Phrase(store.getPhone(), helvetica8));
228
				}
228
				}
229
				
229
				
230
			}
230
			}
231
			if(isCod) {
231
			if(isCod) {
232
				table.addCell(new Phrase("Manifest ID: C" + df.format(new Date()) + String.format("%02d", warehouseId) + String.format("%02d", providerId), helvetica9));
232
				table.addCell(new Phrase("Manifest ID: C" + df.format(new Date()) + String.format("%04d", warehouseId) + String.format("%02d", providerId), helvetica9));
233
			    table.addCell(new Phrase("PAYMODE: COD", helvetica9));
233
			    table.addCell(new Phrase("PAYMODE: COD", helvetica9));
234
			}
234
			}
235
			else {
235
			else {
236
				table.addCell(new Phrase("Manifest ID: P" + df.format(new Date()) + String.format("%02d", buyerInfo.getAddressId()) + String.format("%02d", providerId), helvetica8));
236
				table.addCell(new Phrase("Manifest ID: P" + df.format(new Date()) + String.format("%04d", buyerInfo.getAddressId()) + String.format("%02d", providerId), helvetica8));
237
			    table.addCell(new Phrase("PAYMODE: Prepaid", helvetica8));
237
			    table.addCell(new Phrase("PAYMODE: Prepaid", helvetica8));
238
			}
238
			}
239
			if(provider.getPickup() == PickUpType.RUNNER){
239
			if(provider.getPickup() == PickUpType.RUNNER){
240
				table.addCell(new Phrase("Runner Name: " + runner, helvetica8));
240
				table.addCell(new Phrase("Runner Name: " + runner, helvetica8));
241
				table.addCell(new Phrase("Manifest Type: Runner Manifest", helvetica8));
241
				table.addCell(new Phrase("Manifest Type: Runner Manifest", helvetica8));