Skip to content
Permalink
Browse files
fixed missing debtor in tx processing
  • Loading branch information
mgeiss committed Jun 14, 2017
1 parent b4bfdc1 commit abdb227ed907e4b8b846833a90073ad801fcff70
Showing 1 changed file with 2 additions and 0 deletions.
@@ -154,6 +154,7 @@ private void processCashDeposit(final String tellerCode, final TellerTransaction
final Debtor customerDebtor = new Debtor();
customerDebtor.setAccountNumber(tellerTransaction.getCustomerAccountIdentifier());
customerDebtor.setAmount(chargesTotal.toString());
debtors.add(customerDebtor);

final HashSet<Creditor> creditors = new HashSet<>();
journalEntry.setCreditors(creditors);
@@ -185,6 +186,7 @@ private void processCashWithdrawal(final String tellerCode, final TellerTransact
final Debtor customerDebtor = new Debtor();
customerDebtor.setAccountNumber(tellerTransaction.getCustomerAccountIdentifier());
customerDebtor.setAmount(tellerTransactionCosts.getTotalAmount().toString());
debtors.add(customerDebtor);

final HashSet<Creditor> creditors = new HashSet<>();
journalEntry.setCreditors(creditors);

0 comments on commit abdb227

Please sign in to comment.