diff --git a/src/main/java/org/folio/dew/batch/bursarfeesfines/service/BursarFilterEvaluator.java b/src/main/java/org/folio/dew/batch/bursarfeesfines/service/BursarFilterEvaluator.java index 8b4d55368..81eb0c9e2 100644 --- a/src/main/java/org/folio/dew/batch/bursarfeesfines/service/BursarFilterEvaluator.java +++ b/src/main/java/org/folio/dew/batch/bursarfeesfines/service/BursarFilterEvaluator.java @@ -57,7 +57,7 @@ public static boolean evaluate( filter instanceof BursarExportFilterFeeFineOwner filterFeeFineOwner ) { return UUID - .fromString(account.getAccount().getFeeFineOwner()) + .fromString(account.getAccount().getOwnerId()) .equals(filterFeeFineOwner.getFeeFineOwner()); } else if (filter instanceof BursarExportFilterLocation filterLocation) { Item item = account.getItem(); diff --git a/src/test/java/org/folio/dew/batch/bursarfeesfines/service/BursarFilterEvaluatorTest.java b/src/test/java/org/folio/dew/batch/bursarfeesfines/service/BursarFilterEvaluatorTest.java index c5b9b29e5..e9ef284a4 100644 --- a/src/test/java/org/folio/dew/batch/bursarfeesfines/service/BursarFilterEvaluatorTest.java +++ b/src/test/java/org/folio/dew/batch/bursarfeesfines/service/BursarFilterEvaluatorTest.java @@ -259,7 +259,7 @@ void testFilterAccountByFeeFineOwner() { filterFeeFineOwner.setFeeFineOwner(feeFineOwnerUUID); Account account = new Account(); - account.setFeeFineOwner("00000000-0000-4000-8000-000000000000"); + account.setOwnerId("00000000-0000-4000-8000-000000000000"); AccountWithAncillaryData accountWithAncillaryData = AccountWithAncillaryData .builder()