mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-19 21:04:36 +02:00
Add date to CustomOrder
This commit is contained in:
parent
4269e278a5
commit
6ce60ec3de
|
@ -3,6 +3,7 @@ package catering.order;
|
|||
import org.aspectj.weaver.ast.Or;
|
||||
import org.salespointframework.quantity.Quantity;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
|
@ -11,12 +12,16 @@ import java.util.Map;
|
|||
public class CustomOrder {
|
||||
|
||||
private OrderType orderType;
|
||||
private LocalDateTime start;
|
||||
private LocalDateTime finish;
|
||||
private Map<String, Quantity> products;
|
||||
private boolean invoiceAvailable;
|
||||
private double totalCost; // this is in €
|
||||
|
||||
public CustomOrder(OrderType orderType, Map<String, Quantity> products, boolean invoiceAvailable, double totalCost) {
|
||||
public CustomOrder(OrderType orderType, LocalDateTime start, LocalDateTime finish, Map<String, Quantity> products, boolean invoiceAvailable, double totalCost) {
|
||||
this.orderType = orderType;
|
||||
this.start = start;
|
||||
this.finish = finish;
|
||||
this.products = products;
|
||||
this.invoiceAvailable = invoiceAvailable;
|
||||
this.totalCost = totalCost;
|
||||
|
@ -26,6 +31,14 @@ public class CustomOrder {
|
|||
return orderType;
|
||||
}
|
||||
|
||||
public LocalDateTime getStart() {
|
||||
return start;
|
||||
}
|
||||
|
||||
public LocalDateTime getFinish() {
|
||||
return finish;
|
||||
}
|
||||
|
||||
public Map<String, Quantity> getProducts() {
|
||||
return products;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue