◆ ModelSet()
org.turro.financials.treasury.m303m.ModelSet.ModelSet |
( |
int |
exercise | ) |
|
Definition at line 42 of file m303m/ModelSet.java.
43 this.exercise = exercise;
45 declaredMonth[0] =
new DeclaredMonth(
this, 1);
46 declaredMonth[1] =
new DeclaredMonth(
this, 2);
47 declaredMonth[2] =
new DeclaredMonth(
this, 3);
48 declaredMonth[3] =
new DeclaredMonth(
this, 4);
49 declaredMonth[4] =
new DeclaredMonth(
this, 5);
50 declaredMonth[5] =
new DeclaredMonth(
this, 6);
51 declaredMonth[6] =
new DeclaredMonth(
this, 7);
52 declaredMonth[7] =
new DeclaredMonth(
this, 8);
53 declaredMonth[8] =
new DeclaredMonth(
this, 9);
54 declaredMonth[9] =
new DeclaredMonth(
this, 10);
55 declaredMonth[10] =
new DeclaredMonth(
this, 11);
56 declaredMonth[11] =
new DeclaredMonth(
this, 12);
◆ generateRegister()
void org.turro.financials.treasury.m303m.ModelSet.generateRegister |
( |
int |
month | ) |
|
Definition at line 98 of file m303m/ModelSet.java.
99 RegisterGenerator reg =
new RegisterGenerator();
100 RegisterView formalView = ViewWrapper.getFormalView();
101 reg.getRegister().setView(formalView);
102 reg.getRegister().setRegisterDate(
getDeclaredMonth(month).getRegisterDate());
106 for(ModelEntry me :
this) {
107 Collection<VatEntry> vats = me.getMonth(month).getVatMap().values();
108 for(VatEntry ve : vats) {
109 Account acc =
new Account();
110 acc.setId(ve.getAccount());
111 if(ve.getMonth().getEntry().getType().getBookId() == 2L) {
112 reg.addAccount(acc,
"Mod. 303 M" + (month+1), ve.getToDeclareAmountVat(), 0.0);
113 total -= ve.getToDeclareAmountVat();
115 reg.addAccount(acc,
"Mod. 303 M" + (month+1), 0.0, ve.getToDeclareAmountVat());
116 total += ve.getToDeclareAmountVat();
122 Account acc =
new Account();
124 reg.addAccount(acc,
"Mod. 303 M" + (month+1), 0.0, -total);
126 Account acc =
new Account();
128 reg.addAccount(acc,
"Mod. 303 M" + (month+1), total, 0.0);
131 FinancialsMenu.showRegister(reg.getRegister());
String getDeclaredNegativeAccount()
DeclaredMonth getDeclaredMonth(int month)
String getDeclaredPositiveAccount()
◆ getDao()
Dao org.turro.financials.treasury.m303m.ModelSet.getDao |
( |
| ) |
|
◆ getDeclaredMonth()
DeclaredMonth org.turro.financials.treasury.m303m.ModelSet.getDeclaredMonth |
( |
int |
month | ) |
|
◆ getDeclaredNegativeAccount()
String org.turro.financials.treasury.m303m.ModelSet.getDeclaredNegativeAccount |
( |
| ) |
|
◆ getDeclaredPositiveAccount()
String org.turro.financials.treasury.m303m.ModelSet.getDeclaredPositiveAccount |
( |
| ) |
|
◆ getExercise()
int org.turro.financials.treasury.m303m.ModelSet.getExercise |
( |
| ) |
|
◆ getTotalInputVat()
double org.turro.financials.treasury.m303m.ModelSet.getTotalInputVat |
( |
int |
month | ) |
|
Definition at line 59 of file m303m/ModelSet.java.
61 for(ModelEntry me :
this) {
62 result += me.getMonth(month).getTotalInputVat();
◆ getTotalOutputVat()
double org.turro.financials.treasury.m303m.ModelSet.getTotalOutputVat |
( |
int |
month | ) |
|
Definition at line 67 of file m303m/ModelSet.java.
69 for(ModelEntry me :
this) {
70 result += me.getMonth(month).getTotalOutputVat();
The documentation for this class was generated from the following file: