fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From my...@apache.org
Subject [fineract-cn-deposit-account-management] 06/26: added cheque transaction to available transactions for customer
Date Mon, 22 Jan 2018 15:49:28 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-deposit-account-management.git

commit f7762906ebad39d9ff132a704b1b91e3d048365f
Author: mgeiss <mgeiss@mifos.org>
AuthorDate: Wed Sep 6 11:40:34 2017 +0200

    added cheque transaction to available transactions for customer
---
 .../src/main/java/io/mifos/deposit/TestProductInstance.java           | 4 ++--
 .../io/mifos/deposit/service/rest/ProductInstanceRestController.java  | 3 +++
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/component-test/src/main/java/io/mifos/deposit/TestProductInstance.java b/component-test/src/main/java/io/mifos/deposit/TestProductInstance.java
index d023ee9..cb875e5 100644
--- a/component-test/src/main/java/io/mifos/deposit/TestProductInstance.java
+++ b/component-test/src/main/java/io/mifos/deposit/TestProductInstance.java
@@ -322,8 +322,8 @@ public class TestProductInstance extends AbstractDepositAccountManagementTest
{
         super.depositAccountManager.fetchPossibleTransactionTypes(productInstance.getCustomerIdentifier());
 
     Assert.assertFalse(availableTransactionTypesAfterActivation.isEmpty());
-    Assert.assertTrue(availableTransactionTypesAfterActivation.size() == 4);
-    final HashSet<String> expectedTransactionTypes = Sets.newHashSet("ACCC", "ACCT",
"CDPT", "CWDL");
+    Assert.assertTrue(availableTransactionTypesAfterActivation.size() == 5);
+    final HashSet<String> expectedTransactionTypes = Sets.newHashSet("ACCC", "ACCT",
"CDPT", "CWDL", "CCHQ");
     availableTransactionTypesAfterActivation.forEach(availableTransactionType ->
         expectedTransactionTypes.remove(availableTransactionType.getTransactionType())
     );
diff --git a/service/src/main/java/io/mifos/deposit/service/rest/ProductInstanceRestController.java
b/service/src/main/java/io/mifos/deposit/service/rest/ProductInstanceRestController.java
index 205fd91..0d0deb4 100644
--- a/service/src/main/java/io/mifos/deposit/service/rest/ProductInstanceRestController.java
+++ b/service/src/main/java/io/mifos/deposit/service/rest/ProductInstanceRestController.java
@@ -121,6 +121,9 @@ public class ProductInstanceRestController {
         final AvailableTransactionType actionClose = new AvailableTransactionType();
         actionClose.setTransactionType("ACCC");
         availableTransactionTypes.add(actionClose);
+        final AvailableTransactionType actionCheque = new AvailableTransactionType();
+        actionCheque.setTransactionType("CCHQ");
+        availableTransactionTypes.add(actionCheque);
       }
     });
     return ResponseEntity.ok(availableTransactionTypes);

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

Mime
View raw message