/* This class describes an order. It contains a lot of different elements and is one of the 
 * core class functions. It keeps track of all other objects involved in a booking event
 * and is essential for the program! */

import java.util.ArrayList;

public class Order {

	private int orderNbr; // Identification variable!
	private Customer customer; // The customer administrating it...
	private Vehicle vehicle; // The employee administrating it...
	private ArrayList<Accessory> accessories; // The products in the order...
	private Employee employee; // The vehicle administrating it...
	private int totalPrice; // Total price of the products!
	private int discount; // Discount rate on the specific order! Could be seasonal 10% etcetera...
	private boolean isAppropriate; // If the order is appropriate for the company!
	private boolean wasSatesfied; // If the customer was satisfied with the order!
	private String latestUpdate; // At what date when the order was last updated!	
	
	public Order(int orderNbr, Customer customer, Vehicle vehicle, ArrayList<Accessory> accessories,
				 Employee employee, int totalPrice, int discount, boolean isAppropriate, 
				 boolean wasSatesfied, String latestUpdate) {

		this.orderNbr = orderNbr;
		this.customer = customer;
		this.vehicle = vehicle;
		this.accessories = accessories;
		this.employee = employee;
		this.totalPrice = totalPrice;
		this.discount = discount;
		this.isAppropriate = isAppropriate;
		this.wasSatesfied = wasSatesfied;
		this.latestUpdate = latestUpdate;

	}

	public int getOrderNbr() {
		return orderNbr;
	}

	public void setOrderNbr(int orderNbr) {
		this.orderNbr = orderNbr;
	}

	public Customer getCustomer() {
		return customer;
	}

	public void setCustomer(Customer customer) {
		this.customer = customer;
	}

	public Vehicle getVehicle() {
		return vehicle;
	}

	public void setVehicle(Vehicle vehicle) {
		this.vehicle = vehicle;
	}

	public ArrayList<Accessory> getAccessories() {
		return accessories;
	}

	public void setAccessories(ArrayList<Accessory> accessories) {
		this.accessories = accessories;
	}

	public Employee getEmployee() {
		return employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}

	public int getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(int totalPrice) {
		this.totalPrice = totalPrice;
	}

	public int getDiscount() {
		return discount;
	}

	public void setDiscount(int discount) {
		this.discount = discount;
	}

	public boolean getIsAppropriate() {
		return isAppropriate;
	}

	public void setAppropriate(boolean isAppropriate) {
		this.isAppropriate = isAppropriate;
	}

	public boolean getWasSatesfied() {
		return wasSatesfied;
	}

	public void setWasSatesfied(boolean wasSatesfied) {
		this.wasSatesfied = wasSatesfied;
	}

	public String getLatestUpdate() {
		return latestUpdate;
	}

	public void setLatestUpdate(String latestUpdate) {
		this.latestUpdate = latestUpdate;
	}
	
}

@@ -396,102 +396,34 @@
 ate 
-Vehicle vehicle; // The employee administrating it...%0A%09private ArrayList%3CAccessory%3E accessorie
+ArrayList%3CProduct%3E product
 s; /
@@ -964,56 +964,34 @@
 er, 
-Vehicle vehicle, ArrayList%3CAccessory%3E accessorie
+ArrayList%3CProduct%3E product
 s,%0A%09
@@ -1185,58 +1185,26 @@
 his.
-vehicle = vehicle;%0A%09%09this.accessories = accessorie
+products = product
 s;%0A%09
@@ -1675,168 +1675,37 @@
 lic 
-Vehicle getVehicle() %7B%0A%09%09return vehicle;%0A%09%7D%0A%0A%09public void setVehicle(Vehicle vehicle) %7B%0A%09%09this.vehicle = vehicle;%0A%09%7D%0A%0A%09public ArrayList%3CAccessory%3E getAccessorie
+ArrayList%3CProduct%3E getProduct
 s() 
@@ -1715,26 +1715,23 @@
 %09return 
-accessorie
+product
 s;%0A%09%7D%0A%0A%09
@@ -1749,18 +1749,15 @@
  set
-Accessorie
+Product
 s(Ar
@@ -1768,65 +1768,54 @@
 ist%3C
-Accessory%3E accessories) %7B%0A%09%09this.accessories = accessorie
+Product%3E products) %7B%0A%09%09this.products = product
 s;%0A%09

Update Order.java