From da206837153509336e920e12b1a16452710a7b1b Mon Sep 17 00:00:00 2001 From: Pramod Nuthakki Date: Tue, 24 Jun 2014 22:11:20 +0530 Subject: [PATCH] MIFOSX-1339 : removed reinvest option for premature close --- ...epositAccountPreMatureCalculationPlatformServiceImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/service/DepositAccountPreMatureCalculationPlatformServiceImpl.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/service/DepositAccountPreMatureCalculationPlatformServiceImpl.java index 181da73ea..f0f2d3d1b 100644 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/service/DepositAccountPreMatureCalculationPlatformServiceImpl.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/savings/service/DepositAccountPreMatureCalculationPlatformServiceImpl.java @@ -63,8 +63,9 @@ public class DepositAccountPreMatureCalculationPlatformServiceImpl implements De final SavingsAccount account = this.depositAccountAssembler.assembleFrom(accountId, depositAccountType); DepositAccountData accountData = null; - Collection onAccountClosureOptions = SavingsEnumerations.depositAccountOnClosureType(DepositAccountOnClosureType - .values()); + Collection onAccountClosureOptions = SavingsEnumerations + .depositAccountOnClosureType(new DepositAccountOnClosureType[] { DepositAccountOnClosureType.WITHDRAW_DEPOSIT, + DepositAccountOnClosureType.TRANSFER_TO_SAVINGS }); final Collection paymentTypeOptions = this.codeValueReadPlatformService .retrieveCodeValuesByCode(PaymentDetailConstants.paymentTypeCodeName); final Collection savingsAccountDatas = this.savingsAccountReadPlatformService.retrieveActiveForLookup(