Skip to content
This repository has been archived by the owner on Jan 11, 2024. It is now read-only.

Commit

Permalink
Merge pull request #11 from ndelvos78/develop
Browse files Browse the repository at this point in the history
Small change to error message displayed in UI if cheque is older than 6 months.
  • Loading branch information
markusgeiss committed Sep 14, 2017
2 parents 050391c + d21bf31 commit 5cb363f
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -178,7 +178,7 @@ ResponseEntity<TellerTransactionCosts> post(@PathVariable("tellerCode") final St
final LocalDate dateIssued = DateConverter.dateFromIsoString(tellerTransaction.getCheque().getDateIssued());
final LocalDate sixMonth = LocalDate.now(Clock.systemUTC()).minusMonths(6);
if (dateIssued.isBefore(sixMonth)) {
throw ServiceException.conflict("Cheque is older than 6 month.");
throw ServiceException.conflict("Cheque is older than 6 months.");
}

final String chequeIdentifier = MICRParser.toIdentifier(tellerTransaction.getCheque().getMicr());
Expand Down

0 comments on commit 5cb363f

Please sign in to comment.