Subversion Repositories SmartDukaan

Rev

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

Rev 22589 Rev 22597
Line 51... Line 51...
51
	private Map<Long, List<String>> serialNumbersMap = new HashMap<Long, List<String>>();
51
	private Map<Long, List<String>> serialNumbersMap = new HashMap<Long, List<String>>();
52
	private Map<Long, List<Long>> freebieWarehouseIdMap = new HashMap<Long, List<Long>>();
52
	private Map<Long, List<Long>> freebieWarehouseIdMap = new HashMap<Long, List<Long>>();
53
	private static final long jacket_number = 1;
53
	private static final long jacket_number = 1;
54
	private static final String invoice_type = "Individual";
54
	private static final String invoice_type = "Individual";
55
	
55
	
56
	private static String live = "false";
56
	private static String live = "";
57
	
57
	
58
	static {
58
	static {
59
		try {
59
		try {
60
			ConfigClient cc = ConfigClient.getClient();
60
			ConfigClient cc = ConfigClient.getClient();
61
			live = cc.get("env");
61
			live = cc.get("env");
Line 143... Line 143...
143
					}
143
					}
144
					catch(Exception airwayBillException){
144
					catch(Exception airwayBillException){
145
						airwayBillException.printStackTrace();
145
						airwayBillException.printStackTrace();
146
						return "Unable to assign airway bill number";
146
						return "Unable to assign airway bill number";
147
					}
147
					}
148
				} else {
148
				} else if (live.equals("false")){
149
					airway_billno = String.valueOf(new Date().getTime());
149
					airway_billno = String.valueOf(new Date().getTime());
-
 
150
				} else {
-
 
151
					return "Config error";
150
				}
152
				}
151
				client.updateMasterOrderAWB(t_order.getLogisticsTransactionId(), airway_billno);
153
				client.updateMasterOrderAWB(t_order.getLogisticsTransactionId(), airway_billno);
152
			}
154
			}
153
 
155
 
154
 
156