Skip to content

Commit

Permalink
[UIREC-285] - Update itemRecord with accessionNumber during checkin (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
alb3rtino authored Oct 24, 2023
1 parent 4085b77 commit 7097013
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/java/org/folio/helper/CheckinHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import static java.util.stream.Collectors.toList;
import static org.folio.orders.utils.HelperUtils.collectResultsOnSuccess;
import static org.folio.rest.core.exceptions.ErrorCodes.ITEM_UPDATE_FAILED;
import static org.folio.service.inventory.InventoryManager.ITEM_ACCESSION_NUMBER;
import static org.folio.service.inventory.InventoryManager.ITEM_BARCODE;
import static org.folio.service.inventory.InventoryManager.ITEM_CHRONOLOGY;
import static org.folio.service.inventory.InventoryManager.ITEM_DISCOVERY_SUPPRESS;
Expand Down Expand Up @@ -358,6 +359,9 @@ private Future<Void> checkinItem(JsonObject itemRecord, CheckInPiece checkinPiec
if (StringUtils.isNotEmpty(checkinPiece.getBarcode())) {
itemRecord.put(ITEM_BARCODE, checkinPiece.getBarcode());
}
if (StringUtils.isNotEmpty(checkinPiece.getAccessionNumber())) {
itemRecord.put(ITEM_ACCESSION_NUMBER, checkinPiece.getAccessionNumber());
}
if (StringUtils.isNotEmpty(checkinPiece.getCallNumber())) {
itemRecord.put(ITEM_LEVEL_CALL_NUMBER, checkinPiece.getCallNumber());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ public class InventoryManager {
public static final String HOLDING_SOURCE = "sourceId";
public static final String ITEM_HOLDINGS_RECORD_ID = "holdingsRecordId";
public static final String ITEM_BARCODE = "barcode";
public static final String ITEM_ACCESSION_NUMBER = "accessionNumber";
public static final String ITEM_LEVEL_CALL_NUMBER = "itemLevelCallNumber";
public static final String ITEM_STATUS = "status";
public static final String ITEM_STATUS_NAME = "name";
Expand Down

0 comments on commit 7097013

Please sign in to comment.