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

Commit

Permalink
fixed validation error when canceling a cheque
Browse files Browse the repository at this point in the history
  • Loading branch information
mgeiss committed Sep 4, 2017
1 parent d0a2e3e commit 1554537
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -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())
);
Expand Down

0 comments on commit 1554537

Please sign in to comment.