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);
}
}
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;
}
Aggregations