diff --git a/src/main/java/org/folio/dew/batch/acquisitions/edifact/mapper/CsvMapper.java b/src/main/java/org/folio/dew/batch/acquisitions/edifact/mapper/CsvMapper.java index cd643835..c6a4f759 100644 --- a/src/main/java/org/folio/dew/batch/acquisitions/edifact/mapper/CsvMapper.java +++ b/src/main/java/org/folio/dew/batch/acquisitions/edifact/mapper/CsvMapper.java @@ -76,7 +76,7 @@ private List getClaimEntries(List orders, } private String getTitleById(CompositePoLine poLine, Piece piece) { - return poLine.getIsPackage() + return Boolean.TRUE.equals(poLine.getIsPackage()) ? ordersService.getTitleById(piece.getTitleId()).getTitle() : poLine.getTitleOrPackage(); }