Skip to content

Commit

Permalink
Merge pull request #578 from Gosrock/dev
Browse files Browse the repository at this point in the history
Release Api-1.0.7-1
  • Loading branch information
ImNM authored Jan 20, 2025
2 parents 7bf6455 + 8d3887e commit 0201c6d
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,9 @@ public void validApproveOrderCreateTotalStock(Order order) {
Long approveWaitingTicketCount =
approveWaitingOrders.stream().map(Order::getTotalQuantity).reduce(0L, Long::sum);

Long alreadyIssuedCount = issuedTicketAdaptor.countIssuedTicketByItemId(order.getItemId());
Long expectedApproveWaitQuantity = approveWaitingTicketCount + order.getTotalQuantity();

Long expectQuantity =
alreadyIssuedCount + approveWaitingTicketCount + order.getTotalQuantity();

item.validEnoughQuantity(expectQuantity);
item.validEnoughQuantity(expectedApproveWaitQuantity);
}

/** 이벤트가 열려있는 상태인지 */
Expand Down

0 comments on commit 0201c6d

Please sign in to comment.