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

Public Member Functions

 VatEntry (int vat, EntryMonth month)
 
void setPendingVat (double value)
 
Double getPendingVat ()
 
String getAccount ()
 
double getAmountVat ()
 
double getToDeclareAmountVat ()
 
double getAmountOp ()
 
double getToDeclareAmountOp ()
 
double getDeclaredVat ()
 
double getVat ()
 
EntryMonth getMonth ()
 
Dao getDao ()
 

Detailed Description

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

Definition at line 28 of file m303m/VatEntry.java.

Constructor & Destructor Documentation

◆ VatEntry()

org.turro.financials.treasury.m303m.VatEntry.VatEntry ( int  vat,
EntryMonth  month 
)

Definition at line 34 of file m303m/VatEntry.java.

34  {
35  this.vat = vat;
36  this.month = month;
37  fillData();
38  }

Member Function Documentation

◆ getAccount()

String org.turro.financials.treasury.m303m.VatEntry.getAccount ( )

Definition at line 48 of file m303m/VatEntry.java.

48  {
49  if(account == null) {
50  account = (String) getDao().getSingleResult(
51  "select a.id from Account as a where a.id like ?",
52  new Object[] { month.getEntry().getType().getVatAccount() + "00" + vat });
53  }
54  return account;
55  }
Object getSingleResult(WhereClause wc)
Definition: Dao.java:380
Here is the call graph for this function:

◆ getAmountOp()

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

Definition at line 65 of file m303m/VatEntry.java.

Here is the call graph for this function:

◆ getAmountVat()

double org.turro.financials.treasury.m303m.VatEntry.getAmountVat ( )

Definition at line 57 of file m303m/VatEntry.java.

57  {
58  return amountVat;
59  }
Here is the caller graph for this function:

◆ getDao()

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

Definition at line 85 of file m303m/VatEntry.java.

85  {
86  return month.getDao();
87  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getDeclaredVat()

double org.turro.financials.treasury.m303m.VatEntry.getDeclaredVat ( )

Definition at line 73 of file m303m/VatEntry.java.

73  {
74  return declaredVat;
75  }

◆ getMonth()

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

Definition at line 81 of file m303m/VatEntry.java.

81  {
82  return month;
83  }

◆ getPendingVat()

Double org.turro.financials.treasury.m303m.VatEntry.getPendingVat ( )

Definition at line 44 of file m303m/VatEntry.java.

44  {
45  return pendingVat;
46  }

◆ getToDeclareAmountOp()

double org.turro.financials.treasury.m303m.VatEntry.getToDeclareAmountOp ( )

Definition at line 69 of file m303m/VatEntry.java.

69  {
70  return getToDeclareAmountVat() / (getVat() / 100);
71  }
Here is the call graph for this function:

◆ getToDeclareAmountVat()

double org.turro.financials.treasury.m303m.VatEntry.getToDeclareAmountVat ( )

Definition at line 61 of file m303m/VatEntry.java.

61  {
62  return amountVat - (declaredVat + pendingVat);
63  }
Here is the caller graph for this function:

◆ getVat()

double org.turro.financials.treasury.m303m.VatEntry.getVat ( )

Definition at line 77 of file m303m/VatEntry.java.

77  {
78  return vat / 10.0d;
79  }
Here is the caller graph for this function:

◆ setPendingVat()

void org.turro.financials.treasury.m303m.VatEntry.setPendingVat ( double  value)

Definition at line 40 of file m303m/VatEntry.java.

40  {
41  pendingVat = value;
42  }

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