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

Public Member Functions

 DeclaredQuarter (ModelSet set, int quarter)
 
double getAmountDeclared ()
 
int getQuarter ()
 
Dao getDao ()
 
Date getInitialDate ()
 
Date getFinalDate ()
 
Date getRegisterDate ()
 

Detailed Description

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

Definition at line 28 of file DeclaredQuarter.java.

Constructor & Destructor Documentation

◆ DeclaredQuarter()

org.turro.financials.treasury.m303.DeclaredQuarter.DeclaredQuarter ( ModelSet  set,
int  quarter 
)

Definition at line 34 of file DeclaredQuarter.java.

34  {
35  this.set = set;
36  this.quarter = quarter;
37  fillData();
38  }

Member Function Documentation

◆ getAmountDeclared()

double org.turro.financials.treasury.m303.DeclaredQuarter.getAmountDeclared ( )

Definition at line 40 of file DeclaredQuarter.java.

40  {
41  return amountDeclared == null ? 0 : amountDeclared;
42  }

◆ getDao()

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

Definition at line 48 of file DeclaredQuarter.java.

48  {
49  return set.getDao();
50  }

◆ getFinalDate()

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

Definition at line 83 of file DeclaredQuarter.java.

83  {
84  return new CheckDate(set.getExercise(), ((quarter - 1) * 3) + 4, 1, 0, 0, 0).addDays(-1).addDays(25).getDate();
85  }

◆ getInitialDate()

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

Definition at line 79 of file DeclaredQuarter.java.

79  {
80  return new CheckDate(set.getExercise(), ((quarter - 1) * 3) + 1, 1, 0, 0, 0).addDays(26).getDate();
81  }

◆ getQuarter()

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

Definition at line 44 of file DeclaredQuarter.java.

44  {
45  return quarter;
46  }

◆ getRegisterDate()

Date org.turro.financials.treasury.m303.DeclaredQuarter.getRegisterDate ( )

Definition at line 87 of file DeclaredQuarter.java.

87  {
88  return new CheckDate(set.getExercise(), ((quarter - 1) * 3) + 4, 1, 0, 0, 0).addDays(-1).getDate();
89  }

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