fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From my...@apache.org
Subject [fineract-cn-teller] 25/30: fixed equal for account stats
Date Mon, 22 Jan 2018 15:32:23 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 2cc1c5ce45d31acabcc0e9d785b3197fbc241399
Author: mgeiss <mgeiss@mifos.org>
AuthorDate: Sun Jul 9 03:05:10 2017 +0200

    fixed equal for account stats
---
 .../io/mifos/teller/service/rest/TellerOperationRestController.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/service/src/main/java/io/mifos/teller/service/rest/TellerOperationRestController.java
b/service/src/main/java/io/mifos/teller/service/rest/TellerOperationRestController.java
index 6295119..065dfa1 100644
--- a/service/src/main/java/io/mifos/teller/service/rest/TellerOperationRestController.java
+++ b/service/src/main/java/io/mifos/teller/service/rest/TellerOperationRestController.java
@@ -172,7 +172,7 @@ public class TellerOperationRestController {
     } else {
       final Account customerAccount = optionalCustomerAccount.get();
 
-      if (!customerAccount.getState().equals(Account.State.OPEN)) {
+      if (!customerAccount.getState().equals(Account.State.OPEN.name())) {
         throw ServiceException.conflict("Account {0} is not open.", customerAccount.getIdentifier());
       }
 

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

Mime
View raw message