diff --git a/src/main/java/com/swp/PodBookingSystem/service/OrderDetailService.java b/src/main/java/com/swp/PodBookingSystem/service/OrderDetailService.java index 6ec186e3..f11ea67a 100644 --- a/src/main/java/com/swp/PodBookingSystem/service/OrderDetailService.java +++ b/src/main/java/com/swp/PodBookingSystem/service/OrderDetailService.java @@ -312,6 +312,9 @@ private void createOrderDetailAmenities(OrderDetail orderDetail, List a for (Amenity amenity : amenities) { OrderDetailAmenity orderDetailAmenity = new OrderDetailAmenity(); orderDetailAmenity.setId(UUID.randomUUID().toString()); + orderDetailAmenity.setStatus(OrderDetailAmenityStatus.Paid); + orderDetailAmenity.setCreatedAt(LocalDateTime.now()); + orderDetailAmenity.setUpdatedAt(LocalDateTime.now()); orderDetailAmenity.setQuantity(amenity.getQuantity()); orderDetailAmenity.setPrice(amenity.getPrice()); orderDetailAmenity.setOrderDetail(orderDetail);