From 7b3154367ebeb9e1bf7cdd7a7a22eb0f6dc07346 Mon Sep 17 00:00:00 2001 From: Mathis Kral Date: Sun, 5 Nov 2023 11:36:39 +0100 Subject: [PATCH] Add date to CustomOrder --- src/main/java/catering/order/CustomOrder.java | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/main/java/catering/order/CustomOrder.java b/src/main/java/catering/order/CustomOrder.java index e03d5ec..834651c 100644 --- a/src/main/java/catering/order/CustomOrder.java +++ b/src/main/java/catering/order/CustomOrder.java @@ -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 products; private boolean invoiceAvailable; private double totalCost; // this is in € - public CustomOrder(OrderType orderType, Map products, boolean invoiceAvailable, double totalCost) { + public CustomOrder(OrderType orderType, LocalDateTime start, LocalDateTime finish, Map 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 getProducts() { return products; }