BrightSide Workbench Full Report + Source Code
org.turro.financials.treasury.m303.EntryQuarter Class Reference

Public Member Functions

 EntryQuarter (ModelEntry entry, int quarter)
 
double getAmountOp ()
 
double getTotalOp ()
 
void addToDeclareVat (Double toDeclareVat)
 
double getToDeclareTotalVat ()
 
void addToDeclareOp (Double toDeclareOp)
 
double getToDeclareTotalOp ()
 
int getQuarter ()
 
Map< Integer, VatEntrygetVatMap ()
 
double getTotalInputVat ()
 
double getTotalOutputVat ()
 
Dao getDao ()
 
ModelEntry getEntry ()
 
Date getInitialDate ()
 
Date getQuarterInitialDate ()
 
Date getFinalDate ()
 
Date getQuarterDeclaredDate ()
 
Date getFinalDeclaredDate ()
 

Detailed Description

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

Definition at line 31 of file EntryQuarter.java.

Constructor & Destructor Documentation

◆ EntryQuarter()

org.turro.financials.treasury.m303.EntryQuarter.EntryQuarter ( ModelEntry  entry,
int  quarter 
)

Definition at line 38 of file EntryQuarter.java.

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

Member Function Documentation

◆ addToDeclareOp()

void org.turro.financials.treasury.m303.EntryQuarter.addToDeclareOp ( Double  toDeclareOp)

Definition at line 60 of file EntryQuarter.java.

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

◆ addToDeclareVat()

void org.turro.financials.treasury.m303.EntryQuarter.addToDeclareVat ( Double  toDeclareVat)

Definition at line 52 of file EntryQuarter.java.

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

◆ getAmountOp()

double org.turro.financials.treasury.m303.EntryQuarter.getAmountOp ( )

Definition at line 44 of file EntryQuarter.java.

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

◆ getDao()

Dao org.turro.financials.treasury.m303.EntryQuarter.getDao ( )

Definition at line 96 of file EntryQuarter.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.m303.EntryQuarter.getEntry ( )

Definition at line 100 of file EntryQuarter.java.

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

◆ getFinalDate()

Date org.turro.financials.treasury.m303.EntryQuarter.getFinalDate ( )

Definition at line 139 of file EntryQuarter.java.

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

◆ getFinalDeclaredDate()

Date org.turro.financials.treasury.m303.EntryQuarter.getFinalDeclaredDate ( )

Definition at line 147 of file EntryQuarter.java.

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

◆ getInitialDate()

Date org.turro.financials.treasury.m303.EntryQuarter.getInitialDate ( )

Definition at line 131 of file EntryQuarter.java.

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

◆ getQuarter()

int org.turro.financials.treasury.m303.EntryQuarter.getQuarter ( )

Definition at line 68 of file EntryQuarter.java.

68  {
69  return quarter;
70  }

◆ getQuarterDeclaredDate()

Date org.turro.financials.treasury.m303.EntryQuarter.getQuarterDeclaredDate ( )

Definition at line 143 of file EntryQuarter.java.

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

◆ getQuarterInitialDate()

Date org.turro.financials.treasury.m303.EntryQuarter.getQuarterInitialDate ( )

Definition at line 135 of file EntryQuarter.java.

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

◆ getToDeclareTotalOp()

double org.turro.financials.treasury.m303.EntryQuarter.getToDeclareTotalOp ( )

Definition at line 64 of file EntryQuarter.java.

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

◆ getToDeclareTotalVat()

double org.turro.financials.treasury.m303.EntryQuarter.getToDeclareTotalVat ( )

Definition at line 56 of file EntryQuarter.java.

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

◆ getTotalInputVat()

double org.turro.financials.treasury.m303.EntryQuarter.getTotalInputVat ( )

Definition at line 76 of file EntryQuarter.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.m303.EntryQuarter.getTotalOp ( )

Definition at line 48 of file EntryQuarter.java.

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

◆ getTotalOutputVat()

double org.turro.financials.treasury.m303.EntryQuarter.getTotalOutputVat ( )

Definition at line 86 of file EntryQuarter.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.m303.EntryQuarter.getVatMap ( )

Definition at line 72 of file EntryQuarter.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: