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

Public Member Functions

 DeclaredMonth (ModelSet set, int month)
 
double getAmountDeclared ()
 
int getMonth ()
 
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 29 of file DeclaredMonth.java.

Constructor & Destructor Documentation

◆ DeclaredMonth()

org.turro.financials.treasury.m303m.DeclaredMonth.DeclaredMonth ( ModelSet  set,
int  month 
)

Definition at line 35 of file DeclaredMonth.java.

35  {
36  this.set = set;
37  this.month = month;
38  fillData();
39  }

Member Function Documentation

◆ getAmountDeclared()

double org.turro.financials.treasury.m303m.DeclaredMonth.getAmountDeclared ( )

Definition at line 41 of file DeclaredMonth.java.

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

◆ getDao()

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

Definition at line 49 of file DeclaredMonth.java.

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

◆ getFinalDate()

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

Definition at line 84 of file DeclaredMonth.java.

84  {
85  return new CheckDate(set.getExercise(), month + 1, 1, 0, 0, 0).addDays(-1).addDays(25).getDate();
86  }

◆ getInitialDate()

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

Definition at line 80 of file DeclaredMonth.java.

80  {
81  return new CheckDate(set.getExercise(), month, 1, 0, 0, 0).addDays(26).getDate();
82  }

◆ getMonth()

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

Definition at line 45 of file DeclaredMonth.java.

45  {
46  return month;
47  }

◆ getRegisterDate()

Date org.turro.financials.treasury.m303m.DeclaredMonth.getRegisterDate ( )

Definition at line 88 of file DeclaredMonth.java.

88  {
89  return new CheckDate(set.getExercise(), month + 1, 1, 0, 0, 0).addDays(-1).getDate();
90  }

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