Subversion Repositories SmartDukaan

Rev

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

Rev 4788 Rev 4819
Line 65... Line 65...
65
		in.shop2020.model.v1.catalog.InventoryService.Client inventoryClient = csc.getClient();
65
		in.shop2020.model.v1.catalog.InventoryService.Client inventoryClient = csc.getClient();
66
		in.shop2020.logistics.LogisticsService.Client logisticsClient = lsc.getClient();
66
		in.shop2020.logistics.LogisticsService.Client logisticsClient = lsc.getClient();
67
		
67
		
68
		List<OrderStatus> statuses = new ArrayList<OrderStatus>();
68
		List<OrderStatus> statuses = new ArrayList<OrderStatus>();
69
		statuses.add(OrderStatus.BILLED);
69
		statuses.add(OrderStatus.BILLED);
70
		statuses.add(OrderStatus.MANIFESTED);
-
 
71
		
70
		
72
		List<Order> orders = null;
71
		List<Order> orders = null;
73
		Warehouse warehouse = null;
72
		Warehouse warehouse = null;
74
		Provider provider = null;
73
		Provider provider = null;
75
		try {
74
		try {
76
//			if(!txnClient.markOrdersAsManifested(warehouseId, providerId, isCod)){
-
 
77
//				return baosPDF;	
-
 
78
//			}
-
 
79
			orders = txnClient.getOrdersInBatch(statuses, 0, 0, warehouseId);
75
			orders = txnClient.getOrdersInBatch(statuses, 0, 0, warehouseId);
80
			warehouse = inventoryClient.getWarehouse(warehouseId);
76
			warehouse = inventoryClient.getWarehouse(warehouseId);
81
			provider = logisticsClient.getProvider(providerId);
77
			provider = logisticsClient.getProvider(providerId);
82
		} catch (TException e) {
78
		} catch (TException e) {
83
		    logger.error("Error getting information from one of the Thrift Services: ", e);
79
		    logger.error("Error getting information from one of the Thrift Services: ", e);