private List<BudgetDetail> populateCurrentYearBe() { BudgetDetail detail = new BudgetDetail(); detail.copyFrom(budgetDetail); detail.setBudget(null); return budgetDetailService.searchByCriteriaWithTypeAndFY( budgetDetail.getBudget().getFinancialYear().getId(), "BE", detail); }
private List<BudgetDetail> populateNextYearBe(CFinancialYear finYear) { BudgetDetail detail = new BudgetDetail(); detail.copyFrom(budgetDetail); detail.setBudget(null); Date nextYear = getNextYearFor(finYear.getStartingDate()); return budgetDetailService.searchByCriteriaWithTypeAndFY( financialYearDAO.getFinYearByDate(nextYear).getId(), "BE", detail); }