MIFOSX-1424 and api-docs update for close savings account

This commit is contained in:
Madhukar
2014-07-10 21:50:18 +05:30
parent e3658a5a8f
commit a6c463d525
5 changed files with 46 additions and 9 deletions
@@ -1707,7 +1707,7 @@ public class SavingsAccount extends AbstractPersistable<Long> {
if (!dataValidationErrors.isEmpty()) { throw new PlatformApiDataValidationException(dataValidationErrors); }
}
}
if (getAccountBalance().doubleValue() > 0) {
if (getAccountBalance().doubleValue() != 0) {
baseDataValidator.reset().failWithCodeNoParameterAddedToErrorCode("results.in.balance.not.zero");
if (!dataValidationErrors.isEmpty()) { throw new PlatformApiDataValidationException(dataValidationErrors); }
}