mirror of
https://github.com/st-tu-dresden-praktikum/swt23w23
synced 2024-07-19 21:04:36 +02:00
fixup! Update basics of order package to salespoint
This commit is contained in:
parent
bd0df0c9b4
commit
60644a74b3
|
@ -132,7 +132,9 @@ public class OrderController {
|
|||
|
||||
return userAccount.map(account -> {
|
||||
CustomOrder myOrder = new CustomOrder(account.getId(), cart);
|
||||
cart.addItemsTo(myOrder);
|
||||
orderManagement.payOrder(myOrder); // TODO: change this later
|
||||
orderManagement.completeOrder(myOrder);
|
||||
cart.clear();
|
||||
|
||||
List<CustomOrder> myOrders = orderManagement.findBy(account).stream().collect(Collectors.toList());
|
||||
|
|
Loading…
Reference in a new issue