From f78a596878806e759cd2950ebbf25db3e8e53718 Mon Sep 17 00:00:00 2001 From: Adam Saghy Date: Mon, 8 Aug 2022 12:13:11 +0200 Subject: [PATCH] FINERACT-1681: Fix filtering --- .../service/JournalEntryReadPlatformServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fineract-provider/src/main/java/org/apache/fineract/accounting/journalentry/service/JournalEntryReadPlatformServiceImpl.java b/fineract-provider/src/main/java/org/apache/fineract/accounting/journalentry/service/JournalEntryReadPlatformServiceImpl.java index d1b93c996..081105717 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/accounting/journalentry/service/JournalEntryReadPlatformServiceImpl.java +++ b/fineract-provider/src/main/java/org/apache/fineract/accounting/journalentry/service/JournalEntryReadPlatformServiceImpl.java @@ -307,7 +307,7 @@ public class JournalEntryReadPlatformServiceImpl implements JournalEntryReadPlat } if (submittedOnDateFrom != null || submittedOnDateTo != null) { - if (submittedOnDateFrom != null && toDate != null) { + if (submittedOnDateFrom != null && submittedOnDateTo != null) { sqlBuilder.append(whereClose).append(" journalEntry.submitted_on_date between ? and ? "); whereClose = " and "; objectArray[arrayPos] = submittedOnDateFrom;