BrightSide Workbench Full Report + Source Code
org.turro.financials.treasury.m303m.EntryMonth Class Reference

Public Member Functions

 EntryMonth (ModelEntry entry, int month)
 
double getAmountOp ()
 
double getTotalOp ()
 
void addToDeclareVat (Double toDeclareVat)
 
double getToDeclareTotalVat ()
 
void addToDeclareOp (Double toDeclareOp)
 
double getToDeclareTotalOp ()
 
int getMonth ()
 
Map< Integer, VatEntrygetVatMap ()
 
double getTotalInputVat ()
 
double getTotalOutputVat ()
 
Dao getDao ()
 
ModelEntry getEntry ()
 
Date getInitialDate ()
 
Date getMonthInitialDate ()
 
Date getFinalDate ()
 
Date getMonthDeclaredDate ()
 
Date getFinalDeclaredDate ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 32 of file EntryMonth.java.

Constructor & Destructor Documentation

◆ EntryMonth()

org.turro.financials.treasury.m303m.EntryMonth.EntryMonth ( ModelEntry  entry,
int  month 
)

Definition at line 38 of file EntryMonth.java.

38  {
39  this.entry = entry;
40  this.month = month;
41  fillData();
42  }

Member Function Documentation

◆ addToDeclareOp()

void org.turro.financials.treasury.m303m.EntryMonth.addToDeclareOp ( Double  toDeclareOp)

Definition at line 60 of file EntryMonth.java.

60  {
61  this.toDeclareOp += toDeclareOp;
62  }

◆ addToDeclareVat()

void org.turro.financials.treasury.m303m.EntryMonth.addToDeclareVat ( Double  toDeclareVat)

Definition at line 52 of file EntryMonth.java.

52  {
53  this.toDeclareVat += toDeclareVat;
54  }

◆ getAmountOp()

double org.turro.financials.treasury.m303m.EntryMonth.getAmountOp ( )

Definition at line 44 of file EntryMonth.java.

44  {
45  return amountOp == null ? 0.0 : amountOp;
46  }

◆ getDao()

Dao org.turro.financials.treasury.m303m.EntryMonth.getDao ( )

Definition at line 96 of file EntryMonth.java.

96  {
97  return entry.getDao();
98  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getEntry()

ModelEntry org.turro.financials.treasury.m303m.EntryMonth.getEntry ( )

Definition at line 100 of file EntryMonth.java.

100  {
101  return entry;
102  }
Here is the caller graph for this function:

◆ getFinalDate()

Date org.turro.financials.treasury.m303m.EntryMonth.getFinalDate ( )

Definition at line 139 of file EntryMonth.java.

139  {
140  return new CheckDate(entry.getExercise(), month + 1, 1, 0, 0, 0).addDays(-1).getDate();
141  }
Here is the call graph for this function:

◆ getFinalDeclaredDate()

Date org.turro.financials.treasury.m303m.EntryMonth.getFinalDeclaredDate ( )

Definition at line 147 of file EntryMonth.java.

147  {
148  return new CheckDate(entry.getExercise(), month + 1, 1, 0, 0, 0).addDays(-1).addDays(25).getDate();
149  }
Here is the call graph for this function:

◆ getInitialDate()

Date org.turro.financials.treasury.m303m.EntryMonth.getInitialDate ( )

Definition at line 131 of file EntryMonth.java.

131  {
132  return new CheckDate(entry.getExercise(), 1, 1, 0, 0, 0).getDate();
133  }
Here is the call graph for this function:

◆ getMonth()

int org.turro.financials.treasury.m303m.EntryMonth.getMonth ( )

Definition at line 68 of file EntryMonth.java.

68  {
69  return month;
70  }

◆ getMonthDeclaredDate()

Date org.turro.financials.treasury.m303m.EntryMonth.getMonthDeclaredDate ( )

Definition at line 143 of file EntryMonth.java.

143  {
144  return new CheckDate(entry.getExercise(), month, 1, 0, 0, 0).addDays(26).getDate();
145  }
Here is the call graph for this function:

◆ getMonthInitialDate()

Date org.turro.financials.treasury.m303m.EntryMonth.getMonthInitialDate ( )

Definition at line 135 of file EntryMonth.java.

135  {
136  return new CheckDate(entry.getExercise(), month, 1, 0, 0, 0).getDate();
137  }
Here is the call graph for this function:

◆ getToDeclareTotalOp()

double org.turro.financials.treasury.m303m.EntryMonth.getToDeclareTotalOp ( )

Definition at line 64 of file EntryMonth.java.

64  {
65  return toDeclareOp == null ? 0.0 : toDeclareOp;
66  }

◆ getToDeclareTotalVat()

double org.turro.financials.treasury.m303m.EntryMonth.getToDeclareTotalVat ( )

Definition at line 56 of file EntryMonth.java.

56  {
57  return toDeclareVat == null ? 0.0 : toDeclareVat;
58  }

◆ getTotalInputVat()

double org.turro.financials.treasury.m303m.EntryMonth.getTotalInputVat ( )

Definition at line 76 of file EntryMonth.java.

76  {
77  double result = 0.0;
78  for(VatEntry ve : vatMap.values()) {
79  if(getEntry().getType().getBookId() == 1 || getEntry().getType().getBookId() == 3) {
80  result += ve.getAmountVat();
81  }
82  }
83  return result;
84  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getTotalOp()

double org.turro.financials.treasury.m303m.EntryMonth.getTotalOp ( )

Definition at line 48 of file EntryMonth.java.

48  {
49  return totalOp == null ? 0.0 : totalOp;
50  }

◆ getTotalOutputVat()

double org.turro.financials.treasury.m303m.EntryMonth.getTotalOutputVat ( )

Definition at line 86 of file EntryMonth.java.

86  {
87  double result = 0.0;
88  for(VatEntry ve : vatMap.values()) {
89  if(getEntry().getType().getBookId() == 2) {
90  result += ve.getAmountVat();
91  }
92  }
93  return result;
94  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getVatMap()

Map<Integer, VatEntry> org.turro.financials.treasury.m303m.EntryMonth.getVatMap ( )

Definition at line 72 of file EntryMonth.java.

72  {
73  return vatMap;
74  }
Here is the caller graph for this function:

The documentation for this class was generated from the following file: