| Line 821... |
Line 821... |
| 821 |
} catch (TException e) {
|
821 |
} catch (TException e) {
|
| 822 |
logger.error("Error while getting snapdeal order", e);
|
822 |
logger.error("Error while getting snapdeal order", e);
|
| 823 |
}
|
823 |
}
|
| 824 |
orderTable.addCell(new Phrase("Snapdeal OrderId:", helvetica8));
|
824 |
orderTable.addCell(new Phrase("Snapdeal OrderId:", helvetica8));
|
| 825 |
orderTable.addCell(new Phrase(new Long(snapdealOrder.getSubOrderId()).toString(), helvetica8));
|
825 |
orderTable.addCell(new Phrase(new Long(snapdealOrder.getSubOrderId()).toString(), helvetica8));
|
| - |
|
826 |
|
| - |
|
827 |
String refernceCodeFontPath = InvoiceGenerationService.class.getResource("/saholic-wn.TTF").getPath();
|
| - |
|
828 |
FontFactoryImp ttfFontFactory = new FontFactoryImp();
|
| - |
|
829 |
ttfFontFactory.register(refernceCodeFontPath, "barcode");
|
| - |
|
830 |
Font referenceCodeBarCodeFont = ttfFontFactory.getFont("barcode", BaseFont.CP1252, true, 12);
|
| - |
|
831 |
|
| - |
|
832 |
PdfPCell snapdealReferenceBarCodeCell = new PdfPCell(new Paragraph( snapdealOrder.getReferenceCode(), referenceCodeBarCodeFont));
|
| - |
|
833 |
snapdealReferenceBarCodeCell.setBorder(Rectangle.NO_BORDER);
|
| - |
|
834 |
snapdealReferenceBarCodeCell.setPaddingTop(6.0f);
|
| 826 |
orderTable.addCell(new Phrase("Snapdeal ReferenceCode:", helvetica8));
|
835 |
orderTable.addCell(new Phrase("Snapdeal ReferenceCode:", helvetica8));
|
| - |
|
836 |
orderTable.addCell(snapdealReferenceBarCodeCell);
|
| 827 |
orderTable.addCell(new Phrase(snapdealOrder.getReferenceCode(), helvetica8));
|
837 |
//orderTable.addCell(new Phrase(snapdealOrder.getReferenceCode(), helvetica8));
|
| 828 |
}
|
838 |
}
|
| 829 |
|
839 |
|
| 830 |
orderTable.addCell(new Phrase("Order Date:", helvetica8));
|
840 |
orderTable.addCell(new Phrase("Order Date:", helvetica8));
|
| 831 |
orderTable.addCell(new Phrase(DateFormat.getDateInstance(DateFormat.MEDIUM).format(new Date(order.getCreated_timestamp())), helvetica8));
|
841 |
orderTable.addCell(new Phrase(DateFormat.getDateInstance(DateFormat.MEDIUM).format(new Date(order.getCreated_timestamp())), helvetica8));
|
| 832 |
|
842 |
|