Subversion Repositories SmartDukaan

Rev

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

Rev 1023 Rev 1066
Line 102... Line 102...
102
			
102
			
103
			List <Order> orders = new ArrayList<Order>();
103
			List <Order> orders = new ArrayList<Order>();
104
 
104
 
105
			//Retrieving all the orders across all the warehouses
105
			//Retrieving all the orders across all the warehouses
106
			for(Warehouse warehouse : warehouses)	{
106
			for(Warehouse warehouse : warehouses)	{
107
				List <Order> ordersForThisWarehouse = client.getOrdersByBillingDate(OrderStatus.BILLED, startDate.getTime(), endDate.getTime(), warehouse.getId());
107
				orders.addAll(client.getOrdersByBillingDate(OrderStatus.BILLED, startDate.getTime(), endDate.getTime(), warehouse.getId()));
108
				orders.addAll(ordersForThisWarehouse);
-
 
109
			}
-
 
110
			
-
 
111
			if (orders != null)	{
-
 
112
				System.out.println("Total number of Orders: " + orders.size());
-
 
113
			} else	{
-
 
114
				System.out.println("Total number of Orders: 0");
-
 
115
			}
108
			}
-
 
109
			System.out.println("Total number of Orders: " + orders.size());
116
			
110
			
117
			// Preparing XLS file for output
111
			// Preparing XLS file for output
118
			response.setContentType("application/vnd.ms-excel");
112
			response.setContentType("application/vnd.ms-excel");
119
			
113
			
120
			Calendar date = new GregorianCalendar();
114
			Calendar date = new GregorianCalendar();