Package org.mifosplatform.accounting.glaccount.exception

Examples of org.mifosplatform.accounting.glaccount.exception.GLAccountInvalidParentException


        GLAccount parentGLAccount = null;
        if (parentAccountId != null) {
            parentGLAccount = this.glAccountRepository.findOne(parentAccountId);
            if (parentGLAccount == null) { throw new GLAccountNotFoundException(parentAccountId); }
            // ensure parent is not a detail account
            if (parentGLAccount.isDetailAccount()) { throw new GLAccountInvalidParentException(parentAccountId); }
        }
        return parentGLAccount;
    }
View Full Code Here

TOP

Related Classes of org.mifosplatform.accounting.glaccount.exception.GLAccountInvalidParentException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.