Subversion Repositories SmartDukaan

Rev

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

Rev 8072 Rev 8080
Line 293... Line 293...
293
			chargesTable.addCell(new Phrase("RTO ADDRESS:DEL/HPW/111116"));
293
			chargesTable.addCell(new Phrase("RTO ADDRESS:DEL/HPW/111116"));
294
			//Start:-Added By Manish Sharma for FedEx Integration - Shipment Creation on 21-Aug-2013
294
			//Start:-Added By Manish Sharma for FedEx Integration - Shipment Creation on 21-Aug-2013
295
			if(order.getLogistics_provider_id()==7L){
295
			if(order.getLogistics_provider_id()==7L){
296
				in.shop2020.model.v1.order.TransactionService.Client tclient = tsc.getClient();
296
				in.shop2020.model.v1.order.TransactionService.Client tclient = tsc.getClient();
297
				String fedexCodReturnBarcode = "";
297
				String fedexCodReturnBarcode = "";
-
 
298
				String fedexCodReturnTrackingId = "";
298
				try {
299
				try {
299
					fedexCodReturnBarcode = tclient.getOrderAttributeValue(order.getId(), "FedEx_COD_Return_BarCode");
300
					fedexCodReturnBarcode = tclient.getOrderAttributeValue(order.getId(), "FedEx_COD_Return_BarCode");
-
 
301
					fedexCodReturnTrackingId = tclient.getOrderAttributeValue(order.getId(), "FedEx_COD_Return_Tracking_No");
300
				} catch (TException e1) {
302
				} catch (TException e1) {
301
					logger.error("Error while getting the provider information.", e1);
303
					logger.error("Error while getting the provider information.", e1);
302
				}
304
				}
303
				PdfPCell formIdCell= new PdfPCell(new Paragraph("COD Return "+order.getAirwaybill_no()+" Form id-0325", helvetica6));
305
				PdfPCell formIdCell= new PdfPCell(new Paragraph("COD Return "+fedexCodReturnTrackingId+" Form id-0325", helvetica6));
304
				formIdCell.setPaddingTop(5.0f);
306
				formIdCell.setPaddingTop(5.0f);
305
				formIdCell.setVerticalAlignment(Element.ALIGN_MIDDLE);
307
				formIdCell.setVerticalAlignment(Element.ALIGN_MIDDLE);
306
				formIdCell.setBorder(Rectangle.NO_BORDER);
308
				formIdCell.setBorder(Rectangle.NO_BORDER);
307
				chargesTable.addCell(new Phrase("PRIORITY OVERNIGHT ", helvetica8));
309
				chargesTable.addCell(new Phrase("PRIORITY OVERNIGHT ", helvetica8));
308
				chargesTable.addCell(formIdCell);
310
				chargesTable.addCell(formIdCell);
Line 324... Line 326...
324
			}
326
			}
325
			//End:-Added By Manish Sharma for FedEx Integration - Shipment Creation on 21-Aug-2013
327
			//End:-Added By Manish Sharma for FedEx Integration - Shipment Creation on 21-Aug-2013
326
		} else {
328
		} else {
327
			chargesTable.addCell(new Phrase("Do not pay any extra charges to the Courier."));  
329
			chargesTable.addCell(new Phrase("Do not pay any extra charges to the Courier."));  
328
		}
330
		}
-
 
331
		
-
 
332
		if(order.getLogistics_provider_id()==7L){
-
 
333
			chargesTable.addCell(new Phrase("Term and Condition:- Subject to the Conditions of Carriage which " +
-
 
334
					"limits the liability of FedEx for loss, delay or damage to the consignment." +
-
 
335
					" Visit http://www.fedex.com/in/domestic/services/terms to view the conitions of Carriage" ,
-
 
336
					new Font(FontFamily.TIMES_ROMAN, 6f)));
-
 
337
		}
329
 
338
 
330
		PdfPTable addressAndNoteTable = new PdfPTable(new float[]{0.3f, 0.7f});
339
		PdfPTable addressAndNoteTable = new PdfPTable(new float[]{0.3f, 0.7f});
331
		addressAndNoteTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
340
		addressAndNoteTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
332
		addressAndNoteTable.addCell(addressCell);
341
		addressAndNoteTable.addCell(addressCell);
333
		addressAndNoteTable.addCell(chargesTable);
342
		addressAndNoteTable.addCell(chargesTable);