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

Public Member Functions

 VatEntry (int vat, EntryQuarter quarter)
 
void setPendingVat (double value)
 
Double getPendingVat ()
 
String getAccount ()
 
double getAmountVat ()
 
double getToDeclareAmountVat ()
 
double getAmountOp ()
 
double getToDeclareAmountOp ()
 
double getDeclaredVat ()
 
double getVat ()
 
EntryQuarter getQuarter ()
 
Dao getDao ()
 

Detailed Description

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

Definition at line 27 of file m303/VatEntry.java.

Constructor & Destructor Documentation

◆ VatEntry()

org.turro.financials.treasury.m303.VatEntry.VatEntry ( int  vat,
EntryQuarter  quarter 
)

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

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

Member Function Documentation

◆ getAccount()

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

Definition at line 48 of file m303/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[] { quarter.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.m303.VatEntry.getAmountOp ( )

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

Here is the call graph for this function:

◆ getAmountVat()

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

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

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

◆ getDao()

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

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

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

◆ getDeclaredVat()

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

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

73  {
74  return declaredVat;
75  }

◆ getPendingVat()

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

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

44  {
45  return pendingVat;
46  }

◆ getQuarter()

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

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

81  {
82  return quarter;
83  }

◆ getToDeclareAmountOp()

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

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

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

◆ getToDeclareAmountVat()

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

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

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

◆ getVat()

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

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

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

◆ setPendingVat()

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

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

40  {
41  pendingVat = value;
42  }

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