fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From my...@apache.org
Subject [fineract-cn-teller] 13/30: fixed missing debtor in tx processing
Date Mon, 22 Jan 2018 15:32:11 GMT
This is an automated email from the ASF dual-hosted git repository.

myrle pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract-cn-teller.git

commit abdb227ed907e4b8b846833a90073ad801fcff70
Author: mgeiss <mgeiss@mifos.org>
AuthorDate: Wed Jun 14 16:45:22 2017 +0200

    fixed missing debtor in tx processing
---
 .../teller/service/internal/processor/TellerTransactionProcessor.java   | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/service/src/main/java/io/mifos/teller/service/internal/processor/TellerTransactionProcessor.java
b/service/src/main/java/io/mifos/teller/service/internal/processor/TellerTransactionProcessor.java
index e9c9329..64bda9c 100644
--- a/service/src/main/java/io/mifos/teller/service/internal/processor/TellerTransactionProcessor.java
+++ b/service/src/main/java/io/mifos/teller/service/internal/processor/TellerTransactionProcessor.java
@@ -154,6 +154,7 @@ public class TellerTransactionProcessor {
     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 @@ public class TellerTransactionProcessor {
     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);

-- 
To stop receiving notification emails like this one, please contact
myrle@apache.org.

Mime
View raw message