This is an automated email from the ASF dual-hosted git repository.

adamsaghy 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 b4f5a3a17 FINERACT-2081: fix Loan product validation error messages 
with an extra period
b4f5a3a17 is described below

commit b4f5a3a175d60a98dc5ff557f649551e8e7e2515
Author: Jose Alberto Hernandez <[email protected]>
AuthorDate: Wed Aug 28 09:37:28 2024 -0500

    FINERACT-2081: fix Loan product validation error messages with an extra 
period
---
 .../loanproduct/serialization/LoanProductDataValidator.java         | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git 
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanproduct/serialization/LoanProductDataValidator.java
 
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanproduct/serialization/LoanProductDataValidator.java
index 2b9a876ee..06b330f6e 100644
--- 
a/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanproduct/serialization/LoanProductDataValidator.java
+++ 
b/fineract-provider/src/main/java/org/apache/fineract/portfolio/loanproduct/serialization/LoanProductDataValidator.java
@@ -2548,17 +2548,17 @@ public final class LoanProductDataValidator {
         if (numberOfRepayments != null) {
             if (numberOfRepayments <= 
defaultToZeroIfNull(graceOnPrincipalPayment)) {
                 
baseDataValidator.reset().parameter("graceOnPrincipalPayment").value(graceOnPrincipalPayment)
-                        .failWithCode(".mustBeLessThan.numberOfRepayments");
+                        .failWithCode("mustBeLessThan.numberOfRepayments");
             }
 
             if (numberOfRepayments <= 
defaultToZeroIfNull(graceOnInterestPayment)) {
                 
baseDataValidator.reset().parameter("graceOnInterestPayment").value(graceOnInterestPayment)
-                        .failWithCode(".mustBeLessThan.numberOfRepayments");
+                        .failWithCode("mustBeLessThan.numberOfRepayments");
             }
 
             if (numberOfRepayments < 
defaultToZeroIfNull(graceOnInterestCharged)) {
                 
baseDataValidator.reset().parameter("graceOnInterestCharged").value(graceOnInterestCharged)
-                        .failWithCode(".mustBeLessThan.numberOfRepayments");
+                        .failWithCode("mustBeLessThan.numberOfRepayments");
             }
 
             int graceOnPrincipal = 0;

Reply via email to