| Line 274... |
Line 274... |
| 274 |
dispatchTable.addCell(new Phrase(" "));
|
274 |
dispatchTable.addCell(new Phrase(" "));
|
| 275 |
dispatchTable.addCell(providerInfoTable);
|
275 |
dispatchTable.addCell(providerInfoTable);
|
| 276 |
|
276 |
|
| 277 |
PdfPTable invoiceTable = getTopInvoiceTable(order, shippingLocation.getTinNumber());
|
277 |
PdfPTable invoiceTable = getTopInvoiceTable(order, shippingLocation.getTinNumber());
|
| 278 |
PdfPCell addressCell = getAddressCell(shippingLocation.getLocation() +
|
278 |
PdfPCell addressCell = getAddressCell(shippingLocation.getLocation() +
|
| 279 |
"\nPIN " + warehouse.getPincode() + "\n\n");
|
279 |
"\nPIN " + shippingLocation.getPincode() + "\n\n");
|
| 280 |
|
280 |
|
| 281 |
PdfPTable chargesTable = new PdfPTable(1);
|
281 |
PdfPTable chargesTable = new PdfPTable(1);
|
| 282 |
chargesTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
282 |
chargesTable.getDefaultCell().setBorder(Rectangle.NO_BORDER);
|
| 283 |
chargesTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
|
283 |
chargesTable.getDefaultCell().setHorizontalAlignment(Element.ALIGN_CENTER);
|
| 284 |
if(order.isLogisticsCod()){
|
284 |
if(order.isLogisticsCod()){
|
| Line 390... |
Line 390... |
| 390 |
formIdCell = new PdfPCell(new Paragraph("Form id-0305", helvetica6));
|
390 |
formIdCell = new PdfPCell(new Paragraph("Form id-0305", helvetica6));
|
| 391 |
}
|
391 |
}
|
| 392 |
else{
|
392 |
else{
|
| 393 |
formIdCell = new PdfPCell(new Paragraph("Form id-0467", helvetica6));
|
393 |
formIdCell = new PdfPCell(new Paragraph("Form id-0467", helvetica6));
|
| 394 |
}
|
394 |
}
|
| - |
|
395 |
formIdCell.setPaddingTop(20.0f);
|
| - |
|
396 |
formIdCell.setVerticalAlignment(Element.ALIGN_MIDDLE);
|
| - |
|
397 |
formIdCell.setBorder(Rectangle.NO_BORDER);
|
| 395 |
}
|
398 |
}
|
| 396 |
formIdCell.setPaddingTop(20.0f);
|
- |
|
| 397 |
formIdCell.setVerticalAlignment(Element.ALIGN_MIDDLE);
|
- |
|
| 398 |
formIdCell.setBorder(Rectangle.NO_BORDER);
|
- |
|
| - |
|
399 |
|
| 399 |
|
400 |
|
| 400 |
PdfPCell awbNumberCell= null;
|
401 |
PdfPCell awbNumberCell= null;
|
| 401 |
if(order.getLogistics_provider_id()!=7L){
|
402 |
if(order.getLogistics_provider_id()!=7L){
|
| 402 |
awbNumberCell = new PdfPCell(new Paragraph("*" + order.getAirwaybill_no() + "*", barCodeFont));
|
403 |
awbNumberCell = new PdfPCell(new Paragraph("*" + order.getAirwaybill_no() + "*", barCodeFont));
|
| 403 |
}
|
404 |
}
|
| Line 414... |
Line 415... |
| 414 |
awbNumberCell.setPaddingBottom(5.0f);
|
415 |
awbNumberCell.setPaddingBottom(5.0f);
|
| 415 |
awbNumberCell.setVerticalAlignment(Element.ALIGN_MIDDLE);
|
416 |
awbNumberCell.setVerticalAlignment(Element.ALIGN_MIDDLE);
|
| 416 |
awbNumberCell.setBorder(Rectangle.NO_BORDER);
|
417 |
awbNumberCell.setBorder(Rectangle.NO_BORDER);
|
| 417 |
|
418 |
|
| 418 |
providerInfoTable.addCell(providerNameCell);
|
419 |
providerInfoTable.addCell(providerNameCell);
|
| - |
|
420 |
if(formIdCell != null){
|
| 419 |
providerInfoTable.addCell(formIdCell);
|
421 |
providerInfoTable.addCell(formIdCell);
|
| - |
|
422 |
}
|
| 420 |
//End:-Added By Manish Sharma for FedEx Integration - Shipment Creation on 21-Aug-2013
|
423 |
//End:-Added By Manish Sharma for FedEx Integration - Shipment Creation on 21-Aug-2013
|
| 421 |
providerInfoTable.addCell(awbNumberCell);
|
424 |
providerInfoTable.addCell(awbNumberCell);
|
| 422 |
|
425 |
|
| 423 |
Warehouse warehouse = null;
|
426 |
Warehouse warehouse = null;
|
| 424 |
try{
|
427 |
try{
|