Skip to content

Commit

Permalink
remove failing validation
Browse files Browse the repository at this point in the history
  • Loading branch information
kjozsa committed Oct 3, 2023
1 parent d5ee1f6 commit 2234700
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -296,10 +296,10 @@ public void validateHoldAndAssembleForm(final String json, final SavingsAccount
}

// compare two dates now
if (lastTransactionDate != null && transactionDate.isBefore(lastTransactionDate)) {
baseDataValidator.parameter(SavingsApiConstants.dateParamName).value(lastTransactionDate).failWithCode(
"validation.msg.date.can.not.be.before.last.transaction.date", "Amount can be put on hold only after last transaction");
}
// if (lastTransactionDate != null && transactionDate.isBefore(lastTransactionDate)) {
// baseDataValidator.parameter(SavingsApiConstants.dateParamName).value(lastTransactionDate).failWithCode(
// "validation.msg.date.can.not.be.before.last.transaction.date", "Amount can be put on hold only after last transaction");
// }

throwExceptionIfValidationWarningsExist(dataValidationErrors);
}
Expand Down

0 comments on commit 2234700

Please sign in to comment.