Subversion Repositories SmartDukaan

Rev

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

Rev 20665 Rev 20666
Line 28... Line 28...
28
 
28
 
29
	public String getAirwayBillNo(List<Order> orders) throws Exception{
29
	public String getAirwayBillNo(List<Order> orders) throws Exception{
30
		try {
30
		try {
31
			Order oneOrder = orders.get(0);
31
			Order oneOrder = orders.get(0);
32
			Party consignee = getConsigneeParty(oneOrder);
32
			Party consignee = getConsigneeParty(oneOrder);
-
 
33
			Party shipper = getTestShipper();
-
 
34
			shipper.setReference1(oneOrder.getLogisticsTransactionId());
33
			Shipment shp = getShipment(new ShipmentInfo(orders), consignee, getTestShipper());
35
			Shipment shp = getShipment(new ShipmentInfo(orders), consignee, shipper);
34
			return getAwb(shp);
36
			return getAwb(shp);
35
		} catch (Exception e) {
37
		} catch (Exception e) {
36
			e.printStackTrace();
38
			e.printStackTrace();
37
			throw e;
39
			throw e;
38
		}
40
		}