Skip to content
Permalink
Browse files
fixed validation error when canceling a cheque
  • Loading branch information
mgeiss committed Sep 4, 2017
1 parent d0a2e3e commit 15545374f70d72b46c092e289ae66acdd9ba6995
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 1554537

Please sign in to comment.