Skip to content

Commit

Permalink
[PBS-84][Anh Dao] fix: create order detail amenity
Browse files Browse the repository at this point in the history
  • Loading branch information
toki-ai committed Oct 31, 2024
1 parent f3ffbb6 commit d8b02e4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,9 @@ private void createOrderDetailAmenities(OrderDetail orderDetail, List<Amenity> 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);
Expand Down

0 comments on commit d8b02e4

Please sign in to comment.