18 package org.turro.financials.report;
20 import java.util.ArrayList;
21 import java.util.List;
22 import org.turro.string.Strings;
23 import org.turro.financials.db.FinancialsPU;
24 import org.turro.jpa.Dao;
33 private List<AccountReportItem> children;
34 private List<AccountReportFormula> formulas;
35 private boolean showTotal;
37 private List<String> accounts;
42 children =
new ArrayList<AccountReportItem>();
43 formulas =
new ArrayList<AccountReportFormula>();
63 formulas.add(formula);
88 this.showTotal = showTotal;
92 return existingPeriods;
96 if(!Strings.isBlank(label)) {
98 if(label.equals(ari.getLabel())) {
111 if(!Strings.isBlank(label)) {
113 if(label.equals(arf.getLabel())) {
129 if(accounts ==
null) {
130 accounts =
getDao().getResultList(
"select a.id from Account as a");
138 ari.loadData(existingPeriods);
142 ari.regularizeMode(existingPeriods);
AccountReportItem getItem(String label)
void setParent(AccountReportItem parent)
void setMode(ItemMode mode)
void setTotalItem(boolean totalItem)
void setReport(AccountReport report)
void setItem(AccountReportItem item)
void setValue(double value)
AccountReport(String name)
AccountReportItem getItem(String label)
void setShowTotal(boolean showTotal)
void setName(String name)
AccountReportFormula getFormula(String label)
AccountReportItem getTotalItem()
AccountReportFormula addFormula(String label)
AccountReportFormula addFormula(AccountReportFormula formula)
List< AccountReportItem > getChildren()
List< AccountReportFormula > getFormulas()
AccountReportItem addItem(AccountReportItem item)
AccountReportItem addItem(String label)
List< String > getAccounts()
PeriodSet getExistingPeriods()
void fillGapsTillNow(AccountReportItem item)