Skip to content

Commit

Permalink
Fix: 결제 기록에 할인 금액 포인트 + 쿠폰 금액 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
marinesnow34 committed Mar 12, 2024
1 parent 837d5e6 commit b7cf1a0
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,10 +321,7 @@ public HistoryDetailRes orderToHistoryDetailRes(Order order) {
.orderId(order.getOrderId())
.storePhone(order.getStore().getPhone())
.cart(cartToCartGetRes(order.getCart()))
.salePrice(
order.getCoupon() != null
? order.getCoupon().getCouponDetail().getSalePrice()
: 0L)
.salePrice(order.getTotalAmount() - order.getAmount())
.method(order.getMethod())
.build();
}
Expand Down

0 comments on commit b7cf1a0

Please sign in to comment.