Skip to content
Permalink
Browse files
Merge pull request #5 from markusgeiss/develop
fixed validation error when canceling a cheque
  • Loading branch information
markusgeiss committed Sep 4, 2017
2 parents d0a2e3e + 1554537 commit 2e269c592d28da8d26717b260db105efa933c9bc
Showing 1 changed file with 2 additions and 2 deletions.
@@ -233,15 +233,15 @@ public String process(final CancelChequeTransactionCommand cancelChequeTransacti
journalEntryToReverse.getCreditors().stream().map(creditor -> {
final Debtor debtor = new Debtor();
debtor.setAccountNumber(creditor.getAccountNumber());
debtor.setAccountNumber(creditor.getAmount());
debtor.setAmount(creditor.getAmount());
return debtor;
}).collect(Collectors.toSet())
);
journalEntry.setCreditors(
journalEntryToReverse.getDebtors().stream().map(debtor -> {
final Creditor creditor = new Creditor();
creditor.setAccountNumber(debtor.getAccountNumber());
creditor.setAccountNumber(debtor.getAmount());
creditor.setAmount(debtor.getAmount());
return creditor;
}).collect(Collectors.toSet())
);

0 comments on commit 2e269c5

Please sign in to comment.