Merge pull request #1007 from lingalamadhukar/MIFOSX-1403
MIFOSX-1424 and api-docs update for close savings account
This commit is contained in:
+1
-1
@@ -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); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user