Subversion Repositories SmartDukaan

Rev

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

Rev 19964 Rev 19965
Line 93... Line 93...
93
	public static long cutoffTime = 0;
93
	public static long cutoffTime = 0;
94
	
94
	
95
	static {
95
	static {
96
		try {
96
		try {
97
		String cutOffDate = ConfigClient.getClient().get("warehouse_company_cutoff_date");
97
		String cutOffDate = ConfigClient.getClient().get("warehouse_company_cutoff_date");
98
		DateFormat df = new SimpleDateFormat("yyyy-mm-dd");
98
		DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
99
		cutoffTime = df.parse(cutOffDate).getTime();
99
		cutoffTime = df.parse(cutOffDate).getTime();
100
		} catch(Exception e) {
100
		} catch(Exception e) {
101
			logger.info("Could not read cutoff time");
101
			logger.info("Could not read cutoff time");
102
		}
102
		}
103
	}
103
	}
Line 261... Line 261...
261
					String destCode = null;
261
					String destCode = null;
262
					Warehouse shippingLocation = null;
262
					Warehouse shippingLocation = null;
263
					int barcodeFontSize = 0;
263
					int barcodeFontSize = 0;
264
					String invoiceFormat = null;
264
					String invoiceFormat = null;
265
					try {
265
					try {
266
						System.out.println("Recieved warehouse id " + singleOrder.getWarehouse_id());
-
 
267
						System.out.println("Cutoff Time  is  " + InvoiceServlet.cutoffTime);
-
 
268
						System.out.println("Billing Time is  " + singleOrder.getBilling_timestamp());
-
 
269
						if(singleOrder.getWarehouse_id() == 7 && InvoiceServlet.cutoffTime > singleOrder.getBilling_timestamp() ){
266
						if(singleOrder.getWarehouse_id() == 7 && InvoiceServlet.cutoffTime > singleOrder.getBilling_timestamp() ){
270
							companyName = SORPL;
267
							companyName = SORPL;
271
							warehouse = iclient.getWarehouse(7151);
268
							warehouse = iclient.getWarehouse(7151);
272
						} else {
269
						} else {
273
							warehouse = iclient.getWarehouse(singleOrder.getWarehouse_id());
270
							warehouse = iclient.getWarehouse(singleOrder.getWarehouse_id());