◆ ModelSet()
org.turro.financials.treasury.m303.ModelSet.ModelSet |
( |
int |
exercise | ) |
|
Definition at line 40 of file m303/ModelSet.java.
41 this.exercise = exercise;
43 declaredQuarter[0] =
new DeclaredQuarter(
this, 1);
44 declaredQuarter[1] =
new DeclaredQuarter(
this, 2);
45 declaredQuarter[2] =
new DeclaredQuarter(
this, 3);
46 declaredQuarter[3] =
new DeclaredQuarter(
this, 4);
◆ generateRegister()
void org.turro.financials.treasury.m303.ModelSet.generateRegister |
( |
int |
quarter | ) |
|
Definition at line 88 of file m303/ModelSet.java.
89 RegisterGenerator reg =
new RegisterGenerator();
90 RegisterView formalView = ViewWrapper.getFormalView();
91 reg.getRegister().setView(formalView);
96 for(ModelEntry me :
this) {
97 Collection<VatEntry> vats = me.getQuarter(quarter).getVatMap().values();
98 for(VatEntry ve : vats) {
99 Account acc =
new Account();
100 acc.setId(ve.getAccount());
101 if(ve.getQuarter().getEntry().getType().getBookId() == 2L) {
102 reg.addAccount(acc,
"Mod. 303 Q" + (quarter+1), ve.getToDeclareAmountVat(), 0.0);
103 total -= ve.getToDeclareAmountVat();
105 reg.addAccount(acc,
"Mod. 303 Q" + (quarter+1), 0.0, ve.getToDeclareAmountVat());
106 total += ve.getToDeclareAmountVat();
112 Account acc =
new Account();
114 reg.addAccount(acc,
"Mod. 303 Q" + (quarter+1), 0.0, -total);
116 Account acc =
new Account();
118 reg.addAccount(acc,
"Mod. 303 Q" + (quarter+1), total, 0.0);
121 FinancialsMenu.showRegister(reg.getRegister());
String getDeclaredNegativeAccount()
DeclaredQuarter getDeclaredQuarter(int quarter)
String getDeclaredPositiveAccount()
◆ getDao()
Dao org.turro.financials.treasury.m303.ModelSet.getDao |
( |
| ) |
|
◆ getDeclaredNegativeAccount()
String org.turro.financials.treasury.m303.ModelSet.getDeclaredNegativeAccount |
( |
| ) |
|
◆ getDeclaredPositiveAccount()
String org.turro.financials.treasury.m303.ModelSet.getDeclaredPositiveAccount |
( |
| ) |
|
◆ getDeclaredQuarter()
DeclaredQuarter org.turro.financials.treasury.m303.ModelSet.getDeclaredQuarter |
( |
int |
quarter | ) |
|
◆ getExercise()
int org.turro.financials.treasury.m303.ModelSet.getExercise |
( |
| ) |
|
◆ getTotalInputVat()
double org.turro.financials.treasury.m303.ModelSet.getTotalInputVat |
( |
int |
quarter | ) |
|
Definition at line 49 of file m303/ModelSet.java.
51 for(ModelEntry me :
this) {
52 result += me.getQuarter(quarter).getTotalInputVat();
◆ getTotalOutputVat()
double org.turro.financials.treasury.m303.ModelSet.getTotalOutputVat |
( |
int |
quarter | ) |
|
Definition at line 57 of file m303/ModelSet.java.
59 for(ModelEntry me :
this) {
60 result += me.getQuarter(quarter).getTotalOutputVat();
The documentation for this class was generated from the following file: