◆ AccountReport()
org.turro.financials.report.AccountReport.AccountReport |
( |
String |
name | ) |
|
Definition at line 40 of file AccountReport.java.
42 children =
new ArrayList<AccountReportItem>();
43 formulas =
new ArrayList<AccountReportFormula>();
◆ addFormula() [1/2]
Definition at line 61 of file AccountReport.java.
62 formula.setReport(
this);
63 formulas.add(formula);
◆ addFormula() [2/2]
Definition at line 57 of file AccountReport.java.
58 return addFormula(
new AccountReportFormula(label));
AccountReportFormula addFormula(String label)
◆ addItem() [1/2]
◆ addItem() [2/2]
Definition at line 46 of file AccountReport.java.
47 return addItem(
new AccountReportItem(label));
AccountReportItem addItem(String label)
◆ getAccounts()
List<String> org.turro.financials.report.AccountReport.getAccounts |
( |
| ) |
|
Definition at line 128 of file AccountReport.java.
129 if(accounts ==
null) {
130 accounts =
getDao().getResultList(
"select a.id from Account as a");
◆ getChildren()
◆ getDao()
Dao org.turro.financials.report.AccountReport.getDao |
( |
| ) |
|
◆ getExistingPeriods()
PeriodSet org.turro.financials.report.AccountReport.getExistingPeriods |
( |
| ) |
|
◆ getFormula()
Definition at line 110 of file AccountReport.java.
111 if(!Strings.isBlank(label)) {
112 for(AccountReportFormula arf : formulas) {
113 if(label.equals(arf.getLabel())) {
◆ getFormulas()
◆ getItem()
Definition at line 95 of file AccountReport.java.
96 if(!Strings.isBlank(label)) {
97 for(AccountReportItem ari : children) {
98 if(label.equals(ari.getLabel())) {
101 AccountReportItem ari2 = ari.getItem(label);
◆ getName()
String org.turro.financials.report.AccountReport.getName |
( |
| ) |
|
◆ getTotalItem()
Definition at line 146 of file AccountReport.java.
147 AccountReportItem total =
new AccountReportItem(name);
149 total.setParent(
null);
150 total.setReport(
this);
151 total.setTotalItem(
true);
152 for(AccountReportPeriod period : existingPeriods) {
153 AccountReportPeriod arp =
new AccountReportPeriod(period.getYear(), period.getMonth());
155 for(AccountReportItem item : children) {
156 arp.setValue(arp.getValue() + item.getAccumulatedFor(period));
158 total.getPeriods().add(arp);
◆ isShowTotal()
boolean org.turro.financials.report.AccountReport.isShowTotal |
( |
| ) |
|
◆ loadData()
void org.turro.financials.report.AccountReport.loadData |
( |
| ) |
|
Definition at line 135 of file AccountReport.java.
136 existingPeriods =
new PeriodSet();
137 for(AccountReportItem ari : children) {
138 ari.loadData(existingPeriods);
141 for(AccountReportItem ari : children) {
142 ari.regularizeMode(existingPeriods);
void fillGapsTillNow(AccountReportItem item)
◆ setName()
void org.turro.financials.report.AccountReport.setName |
( |
String |
name | ) |
|
◆ setShowTotal()
void org.turro.financials.report.AccountReport.setShowTotal |
( |
boolean |
showTotal | ) |
|
The documentation for this class was generated from the following file: