| Line 106... |
Line 106... |
| 106 |
|
106 |
|
| 107 |
private TransactionClient tsc = null;
|
107 |
private TransactionClient tsc = null;
|
| 108 |
private CatalogClient csc = null;
|
108 |
private CatalogClient csc = null;
|
| 109 |
private LogisticsClient lsc = null;
|
109 |
private LogisticsClient lsc = null;
|
| 110 |
|
110 |
|
| - |
|
111 |
private static final long SELF_PICKUP = 4;
|
| 111 |
private static Locale indianLocale = new Locale("en", "IN");
|
112 |
private static Locale indianLocale = new Locale("en", "IN");
|
| 112 |
private DecimalFormat amountFormat = new DecimalFormat("#,##0.00");
|
113 |
private DecimalFormat amountFormat = new DecimalFormat("#,##0.00");
|
| 113 |
|
114 |
|
| 114 |
private static final Font helvetica8 = FontFactory.getFont(FontFactory.HELVETICA, 8);
|
115 |
private static final Font helvetica8 = FontFactory.getFont(FontFactory.HELVETICA, 8);
|
| 115 |
private static final Font helvetica10 = FontFactory.getFont(FontFactory.HELVETICA, 10);
|
116 |
private static final Font helvetica10 = FontFactory.getFont(FontFactory.HELVETICA, 10);
|
| Line 190... |
Line 191... |
| 190 |
int barcodeFontSize = 0;
|
191 |
int barcodeFontSize = 0;
|
| 191 |
try {
|
192 |
try {
|
| 192 |
warehouse = iclient.getWarehouse(order.getWarehouse_id());
|
193 |
warehouse = iclient.getWarehouse(order.getWarehouse_id());
|
| 193 |
long providerId = order.getLogistics_provider_id();
|
194 |
long providerId = order.getLogistics_provider_id();
|
| 194 |
provider = logisticsClient.getProvider(providerId);
|
195 |
provider = logisticsClient.getProvider(providerId);
|
| - |
|
196 |
if(providerId == SELF_PICKUP)
|
| - |
|
197 |
destCode = "SELF";
|
| - |
|
198 |
else
|
| 195 |
destCode = logisticsClient.getDestinationCode(providerId, order.getCustomer_pincode());
|
199 |
destCode = logisticsClient.getDestinationCode(providerId, order.getCustomer_pincode());
|
| - |
|
200 |
|
| 196 |
barcodeFontSize = Integer.parseInt(ConfigClient.getClient().get(provider.getName().toLowerCase() + "_barcode_fontsize"));
|
201 |
barcodeFontSize = Integer.parseInt(ConfigClient.getClient().get(provider.getName().toLowerCase() + "_barcode_fontsize"));
|
| 197 |
} catch (InventoryServiceException ise) {
|
202 |
} catch (InventoryServiceException ise) {
|
| 198 |
logger.error("Error while getting the warehouse information.", ise);
|
203 |
logger.error("Error while getting the warehouse information.", ise);
|
| 199 |
return baosPDF;
|
204 |
return baosPDF;
|
| 200 |
} catch (LogisticsServiceException lse) {
|
205 |
} catch (LogisticsServiceException lse) {
|