Search in sources :

Example 6 with GlBalancesBO

use of org.mifos.application.accounting.business.GlBalancesBO in project head by mifos.

the class AccountingServiceFacadeWebTier method savingYearEndBalances.

public void savingYearEndBalances(FinancialYearBO oldFinancialYearBO, FinancialYearBO newFinancialYearBO) {
    List<GlBalancesBO> assetsGlBalanceBOs;
    List<GlBalancesBO> liabilitiesGlBalanceBOs;
    assetsGlBalanceBOs = accountingDao.getYearEndGlBalancesBOs("ChartOfAccountsForMifos.YearEndProcessAssets", oldFinancialYearBO.getFinancialYearId());
    liabilitiesGlBalanceBOs = accountingDao.getYearEndGlBalancesBOs("ChartOfAccountsForMifos.YearEndProcessLiabilities", oldFinancialYearBO.getFinancialYearId());
    assetsGlBalanceBOs.addAll(liabilitiesGlBalanceBOs);
    for (GlBalancesBO balancesBO : assetsGlBalanceBOs) {
        balancesBO.setFinancialYearBO(newFinancialYearBO);
        savingOpeningBalances(balancesBO);
    }
}
Also used : GlBalancesBO(org.mifos.application.accounting.business.GlBalancesBO)

Example 7 with GlBalancesBO

use of org.mifos.application.accounting.business.GlBalancesBO in project head by mifos.

the class AccountingServiceFacadeWebTier method loadExistedGlBalancesBO.

public GlBalancesBO loadExistedGlBalancesBO(Integer officeLevelId, String officeId, String glCodeValue, Integer financialYearId) {
    GlBalancesBO balancesBO = null;
    List<GlBalancesBO> list = accountingDao.findExistedGlBalacesBOs(officeLevelId, officeId, glCodeValue, financialYearId);
    if (list.size() > 0) {
        balancesBO = list.get(0);
    }
    return balancesBO;
}
Also used : GlBalancesBO(org.mifos.application.accounting.business.GlBalancesBO)

Aggregations

GlBalancesBO (org.mifos.application.accounting.business.GlBalancesBO)7 BigDecimal (java.math.BigDecimal)2 OpenBalanceActionForm (org.mifos.accounting.struts.actionform.OpenBalanceActionForm)2 Query (org.hibernate.Query)1 FinancialYearBO (org.mifos.application.accounting.business.FinancialYearBO)1 MifosRuntimeException (org.mifos.core.MifosRuntimeException)1 UserContext (org.mifos.security.util.UserContext)1