/**
 * 
 */
package cmput301.ajford_notes.models;

import java.util.ArrayList;
import java.util.Date;

/**
 * @author Adam
 *
 */
public class TravelClaim {
	public TravelClaim() {
		expenseItems = new ArrayList<ExpenseItem>();
	}
	
	private ArrayList<ExpenseItem> expenseItems;
	private Date startDate;
	private Date endDate;
	private String description;

	public ArrayList<ExpenseItem> getExpenseItems() {
		return expenseItems;
	}
	
	public void AddExpenseItem(ExpenseItem item) {
		expenseItems.add(item);
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
}



@@ -221,16 +221,118 @@
 tem%3E();%0A
+%09%09status = Status.IN_PROGRESS;%0A%09%7D%0A%09%0A%09enum Status %7B%0A%09%09IN_PROGRESS,%0A%09%09SUBMITTED,%0A%09%09RETURNED,%0A%09%09APPROVED%0A
 %09%7D%0A%09%0A%09pr
@@ -450,16 +450,40 @@
 ription;
+%0A%09private Status status;
 %0A%0A%09publi
@@ -1031,13 +1031,235 @@
 tion;%0A%09%7D
+%0A%0A%09public Status getStatus() %7B%0A%09%09return status;%0A%09%7D%0A%0A%09public void setStatus(Status status) %7B%0A%09%09this.status = status;%0A%09%7D%0A%09%0A%09public boolean IsEditable() %7B%0A%09%09return status == Status.IN_PROGRESS %7C%7C status == Status.RETURNED;%0A%09%7D
 %0A%7D%0A%0A%0A

Add TravelClaim Status