Skip to content

Commit

Permalink
[MODORDERS-989] - Reseted head
Browse files Browse the repository at this point in the history
  • Loading branch information
Khamidulla Abdulkhakimov authored and Khamidulla Abdulkhakimov committed Jan 17, 2024
1 parent cbe8a8a commit e87c1dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ private void addPieceIfValid(Piece piece, Map<String, List<Piece>> piecesByPoLin
// request
if (piecesByLineId.containsKey(poLineId) && piecesByLineId.get(poLineId).containsKey(pieceId)) {
// Validate if the piece is not yet received
if (piece.getReceivingStatus() == ReceivingStatus.EXPECTED || isRevertToOnOrder(piece)) {
if (piece.getReceivingStatus() != ReceivingStatus.RECEIVED || isRevertToOnOrder(piece)) {
piecesByPoLine.computeIfAbsent(poLineId, v -> new ArrayList<>())
.add(piece);
} else {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/org/folio/helper/ReceivingHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public ReceivingHelper(Map<String, String> okapiHeaders, Context ctx) {
receivingItems = null;
}

public Future<ReceivingResults> receiveItems(ReceivingCollection receivingCollection, RequestContext requestContext) {
public Future<ReceivingResults> receiveItems(ReceivingCollection receivingCollection, RequestContext requestContext) {
return getPoLines(new ArrayList<>(receivingItems.keySet()), requestContext)
.compose(poLines -> removeForbiddenEntities(poLines, receivingItems, requestContext))
.compose(vVoid -> processReceiveItems(receivingCollection, requestContext));
Expand Down

0 comments on commit e87c1dd

Please sign in to comment.