/* 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 int discount; // Discount rate on the specific order! Could be seasonal 10% etcetera...
	private int totalPrice; // Total price of the products!
	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!	
	private Customer customer;
	private Employee employee; // The employee administrating it...
	private ArrayList<Product> products; // The products in the order...
	
	public Order(int orderNbr, int discount, int totalPrice,
				 boolean isAppropriate, boolean wasSatesfied, String latestUpdate,
				 Customer customer, Employee employee, ArrayList<Product> products) {

		this.orderNbr = orderNbr;
		this.discount = discount;
		this.totalPrice = totalPrice;
		this.isAppropriate = isAppropriate;
		this.wasSatesfied = wasSatesfied;
		this.latestUpdate = latestUpdate;
		this.customer = customer;
		this.employee = employee;
		this.products = products;
	}

	public int getOrderNbr() {
		return orderNbr;
	}

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

	public int getDiscount() {
		return discount;
	}

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

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

	public boolean isAppropriate() {
		return isAppropriate;
	}

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

	public boolean isWasSatesfied() {
		return wasSatesfied;
	}

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

	public String getLatestUpdate() {
		return latestUpdate;
	}

	public void setLatestUpdate(String latestUpdate) {
		this.latestUpdate = latestUpdate;
	}
	
	public Customer getCustomer() {
		return customer;
	}

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

	public Employee getEmployee() {
		return employee;
	}

	public void setEmployee(Employee employee) {
		this.employee = employee;
	}
	
	public ArrayList<Product> getProducts() {
		return products;
	}

	public void setProducts(ArrayList<Product> products) {
		this.products = products;
	}
}

@@ -743,34 +743,133 @@
 mer;
-%0A%09private Employee employe
+ // The customer administrating it...%0A%09private Employee employee; // The vehicle administrating it...%0A%09private Vehicle vehicl
 e; /
@@ -923,32 +923,37 @@
 rayList%3C
-Product%3E product
+Accessory%3E accessorie
 s; // Th
@@ -1133,16 +1133,33 @@
 ustomer,
+ Vehicle vehicle,
  Employe
@@ -1180,32 +1180,37 @@
 rayList%3C
-Product%3E product
+Accessory%3E accessorie
 s) %7B%0A%0A%09%09
@@ -1468,34 +1468,66 @@
 %0A%09%09this.
-products = product
+vehicle = vehicle;%0A%09%09this.accessories = accessorie
 s;%0A%09%7D%0A%0A%09
@@ -1763,32 +1763,88 @@
 t = discount;%0A%09%7D
+%0A%09%0A%09public int getTotalPrice() %7B%0A%09%09return totalPrice;%0A%09%7D
 %0A%0A%09public void s
@@ -1918,33 +1918,36 @@
 %09public boolean 
-i
+getI
 sAppropriate() %7B
@@ -2086,18 +2086,19 @@
 boolean 
-is
+get
 WasSates
@@ -2429,32 +2429,158 @@
 n customer;%0A%09%7D%0A%0A
+%09public 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 void set
@@ -2798,27 +2798,32 @@
 ist%3C
-Product%3E getProduct
+Accessory%3E getAccessorie
 s() 
@@ -2833,23 +2833,26 @@
 %09return 
-product
+accessorie
 s;%0A%09%7D%0A%0A%09
@@ -2866,23 +2866,26 @@
 void set
-Product
+Accessorie
 s(ArrayL
@@ -2920,26 +2920,32 @@
 his.
-products = product
+accessories = accessorie
 s;%0A%09

Update Order.java