You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by ar...@apache.org on 2023/03/13 16:38:40 UTC
[fineract] branch develop updated: FINERACT-1724: Fix disbursement date validation message
This is an automated email from the ASF dual-hosted git repository.
arnold pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git
The following commit(s) were added to refs/heads/develop by this push:
new cd9439fbb FINERACT-1724: Fix disbursement date validation message
cd9439fbb is described below
commit cd9439fbbfcf5d29bf9ff5d123d903db64660d04
Author: Adam Saghy <ad...@gmail.com>
AuthorDate: Thu Mar 9 20:07:23 2023 +0100
FINERACT-1724: Fix disbursement date validation message
---
.../java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java
index 47b8940f6..ea69f3b7f 100644
--- a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java
+++ b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/domain/Loan.java
@@ -3226,7 +3226,7 @@ public class Loan extends AbstractAuditableWithUTCDateTimeCustom {
final LocalDate loanTransactionDate = loanTransaction.getTransactionDate();
if (loanTransactionDate.isBefore(getDisbursementDate())) {
final String errorMessage = "The transaction date cannot be before the loan disbursement date: "
- + getApprovedOnDate().toString();
+ + getDisbursementDate().toString();
throw new InvalidLoanStateTransitionException("transaction", "cannot.be.before.disbursement.date", errorMessage,
loanTransactionDate, getDisbursementDate());
}
@@ -6197,7 +6197,7 @@ public class Loan extends AbstractAuditableWithUTCDateTimeCustom {
final LocalDate loanTransactionDate = loanTransaction.getTransactionDate();
if (loanTransactionDate.isBefore(getDisbursementDate())) {
final String errorMessage = "The transaction date cannot be before the loan disbursement date: "
- + getApprovedOnDate().toString();
+ + getDisbursementDate().toString();
throw new InvalidLoanStateTransitionException("transaction", "cannot.be.before.disbursement.date", errorMessage,
loanTransactionDate, getDisbursementDate());
}