Subversion Repositories SmartDukaan

Rev

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

Rev 8845 Rev 8846
Line 150... Line 150...
150
				lineItem = createLineItem(order.getSKUCode(),SellingPrice);
150
				lineItem = createLineItem(order.getSKUCode(),SellingPrice);
151
				if(lineItem == null){
151
				if(lineItem == null){
152
					sb.append(order.getSuborderId() +" "+"SKU not found" + "\n");
152
					sb.append(order.getSuborderId() +" "+"SKU not found" + "\n");
153
					continue;
153
					continue;
154
				}
154
				}
155
				System.out.println("Line item created");
155
				lineItem.setExtra_info("SubOrderId = " + order.getSuborderId() + " ReferenceCode = " + order.getReferenceCode());
156
			} catch (CatalogServiceException e) {
156
			} catch (CatalogServiceException e) {
157
				logger.error("Unable to create order for suborderid  " + order.getSuborderId() , e);
157
				logger.error("Unable to create order for suborderid  " + order.getSuborderId() , e);
158
				e.printStackTrace();
158
				e.printStackTrace();
159
				sb.append(order.getSuborderId() + " " + "Problem with catalog service" + "\n");
159
				sb.append(order.getSuborderId() + " " + "Problem with catalog service" + "\n");
160
				continue;
160
				continue;
Line 230... Line 230...
230
				}
230
				}
231
				
231
				
232
				t_order.getLineitems().get(0).setTransfer_price(vendorItemPricing.getTransferPrice());
232
				t_order.getLineitems().get(0).setTransfer_price(vendorItemPricing.getTransferPrice());
233
				t_order.getLineitems().get(0).setNlc(vendorItemPricing.getNlc());
233
				t_order.getLineitems().get(0).setNlc(vendorItemPricing.getNlc());
234
			} catch (InventoryServiceException e) {
234
			} catch (InventoryServiceException e) {
235
				logger.error("Error connecting inventory service for suborderid  " + order.getSuborderId());
235
				logger.error("Error connecting inventory service for suborderid  " + order.getSuborderId() , e);
236
				sb.append(order.getSuborderId() + " Inventory Service Exception" + " " + "\n");
236
				sb.append(order.getSuborderId() + " Inventory Service Exception" + " " + "\n");
237
				continue;
237
				continue;
238
			} catch (TTransportException e) {
238
			} catch (TTransportException e) {
239
				logger.error("Transport Exception with Inventory Service for suborderid  " + order.getSuborderId() , e);
239
				logger.error("Transport Exception with Inventory Service for suborderid  " + order.getSuborderId() , e);
240
				sb.append(order.getSuborderId() + " Transport Exception with Inventory Service" + " " + "\n");
240
				sb.append(order.getSuborderId() + " Transport Exception with Inventory Service" + " " + "\n");