Subversion Repositories SmartDukaan

Rev

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

Rev 21252 Rev 21253
Line 113... Line 113...
113
 
113
 
114
			if (t_order.getAirwaybill_no()==null){
114
			if (t_order.getAirwaybill_no()==null){
115
				String airway_billno = null;
115
				String airway_billno = null;
116
				try{
116
				try{
117
					if (t_order.getLogistics_provider_id()==2){
117
					if (t_order.getLogistics_provider_id()==2){
118
						List<in.shop2020.model.v1.order.Order> orders = client.getGroupOrdersByLogisticsTxnId(t_order.getLogisticsTransactionId());
-
 
119
						Provider logisticsProvider = ProviderFactory.getProvider((int)orders.get(0).getLogistics_provider_id());
118
						Provider logisticsProvider = ProviderFactory.getProvider((int)orders_list.get(0).getLogistics_provider_id());
120
						airway_billno = logisticsProvider.getAirwayBillNo(orders);
119
						airway_billno = logisticsProvider.getAirwayBillNo(orders_list);
121
					}
120
					}
122
					else{
121
					else{
123
						LogisticsClient lc = new LogisticsClient();
122
						LogisticsClient lc = new LogisticsClient();
124
						airway_billno = lc.getClient().getEmptyAWB(t_order.getLogistics_provider_id(), t_order.getLogisticsTransactionId());
123
						airway_billno = lc.getClient().getEmptyAWB(t_order.getLogistics_provider_id(), t_order.getLogisticsTransactionId());
125
					}
124
					}