Skip to content
Permalink
Browse files
Small change to error message if cheque is older than 6 months old.
  • Loading branch information
ndelvos78 committed Sep 12, 2017
1 parent 7934000 commit 9fa538359a7fd9db6c46fac11206228ae5cbe34b
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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());

0 comments on commit 9fa5383

Please sign in to comment.