From 881475e15cd801f9ec13bb524adced12a979d20f Mon Sep 17 00:00:00 2001 From: airajena Date: Sat, 17 Jan 2026 21:18:27 +0530 Subject: [PATCH] FINERACT-2155: Allow annual charge payment after due date --- .../fineract/portfolio/savings/domain/SavingsAccount.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fineract-savings/src/main/java/org/apache/fineract/portfolio/savings/domain/SavingsAccount.java b/fineract-savings/src/main/java/org/apache/fineract/portfolio/savings/domain/SavingsAccount.java index 6400c3cd8c9..1fef1e5d75c 100644 --- a/fineract-savings/src/main/java/org/apache/fineract/portfolio/savings/domain/SavingsAccount.java +++ b/fineract-savings/src/main/java/org/apache/fineract/portfolio/savings/domain/SavingsAccount.java @@ -3140,8 +3140,8 @@ public SavingsAccountTransaction payCharge(final SavingsAccountCharge savingsAcc throw new PlatformApiDataValidationException(dataValidationErrors); } - if (!DateUtils.isEqual(annualFeeDueDate, transactionDate)) { - baseDataValidator.reset().failWithCodeNoParameterAddedToErrorCode("invalid.date"); + if (DateUtils.isBefore(transactionDate, annualFeeDueDate)) { + baseDataValidator.reset().failWithCodeNoParameterAddedToErrorCode("transaction.before.dueDate"); throw new PlatformApiDataValidationException(dataValidationErrors); }