From c08a76dd94aab8ac5b5fc91af48f3304f926bcc1 Mon Sep 17 00:00:00 2001 From: Madhukar Date: Wed, 26 Sep 2012 12:57:02 +0530 Subject: [PATCH] add account count --- .../api/data/ClientAccountSummaryCollectionData.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mifosng-provider/src/main/java/org/mifosng/platform/api/data/ClientAccountSummaryCollectionData.java b/mifosng-provider/src/main/java/org/mifosng/platform/api/data/ClientAccountSummaryCollectionData.java index b73000d23..a0d8f0205 100644 --- a/mifosng-provider/src/main/java/org/mifosng/platform/api/data/ClientAccountSummaryCollectionData.java +++ b/mifosng-provider/src/main/java/org/mifosng/platform/api/data/ClientAccountSummaryCollectionData.java @@ -55,7 +55,6 @@ public class ClientAccountSummaryCollectionData { this.awaitingDisbursalLoanCount = this.awaitingDisbursalLoans.size(); this.activeLoanCount = this.openLoans.size(); this.closedLoanCount = this.closedLoans.size(); - this.anyLoanCount = this.pendingApprovalLoanCount + this.awaitingDisbursalLoanCount + this.activeLoanCount + this.closedLoanCount; this.pendingApprovalDespositAccountsCount = this.pendingApprovalDepositAccounts.size(); this.approvedDespositAccountsCount = this.approvedDepositAccounts.size(); @@ -64,6 +63,10 @@ public class ClientAccountSummaryCollectionData { this.rejectedDepositAccountsCount = this.rejectedDepositAccounts.size(); this.preclosedDepositAccountsCount = this.preclosedDepositAccounts.size(); + this.anyLoanCount = this.pendingApprovalLoanCount + this.awaitingDisbursalLoanCount + this.activeLoanCount + this.closedLoanCount + +this.pendingApprovalDespositAccountsCount+this.approvedDespositAccountsCount+this.withdrawnByClientDespositAccountsCount+this.closedDepositAccountsCount + +this.rejectedDepositAccountsCount+this.preclosedDepositAccountsCount; + } public int getAnyLoanCount() {