Skip to content

Commit

Permalink
#[3799] Calculate orderDiscountedPrice according to the new formula (#…
Browse files Browse the repository at this point in the history
…644)

* #[3799] Calculate orderDiscountedPrice according to the new formula

* #[3799] fix
  • Loading branch information
Bohdan-Melnyk authored Jan 28, 2022
1 parent 34643d8 commit 6fbc1fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lombok.config
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
lombok.addLombokGeneratedAnnotation = true
lombok.addLombokGeneratedAnnotation = true
lombok.accessors.chain = true
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,7 @@ public OrderStatusPageDto getOrderStatusData(Long orderId, String languageCode)
.addressExportDetailsDto(addressDtoForAdminPage)
.addressComment(address.getAddressComment()).bags(bagInfo)
.orderFullPrice(prices.getSumAmount())
.orderDiscountedPrice(getPaymentInfo(orderId, prices.getSumAmount().longValue()).getOverpayment() > 0 ? 0
: prices.getTotalSumAmount())
.orderDiscountedPrice(getPaymentInfo(orderId, prices.getSumAmount().longValue()).getUnPaidAmount())
.orderBonusDiscount(prices.getBonus()).orderCertificateTotalDiscount(prices.getCertificateBonus())
.orderExportedPrice(prices.getSumExported()).orderExportedDiscountedPrice(prices.getTotalSumExported())
.amountOfBagsOrdered(order.map(Order::getAmountOfBagsOrdered).orElse(null))
Expand Down

0 comments on commit 6fbc1fb

Please sign in to comment.