BrightSide Workbench Full Report + Source Code
org.turro.financials.entity.RegisterEntry Class Reference
Inheritance diagram for org.turro.financials.entity.RegisterEntry:
Collaboration diagram for org.turro.financials.entity.RegisterEntry:

Public Member Functions

Account getAccount ()
 
void setAccount (Account account)
 
boolean isApproved ()
 
void setApproved (boolean approved)
 
String getConcept ()
 
void setConcept (String concept)
 
boolean isConciliated ()
 
void setConciliated (boolean conciliated)
 
double getCredit ()
 
void setCredit (double credit)
 
double getDebit ()
 
void setDebit (double debit)
 
long getEntryOrder ()
 
void setEntryOrder (long entryOrder)
 
long getId ()
 
void setId (long id)
 
String getPath ()
 
void setPath (String path)
 
Register getRegister ()
 
void setRegister (Register register)
 
boolean isEmpty ()
 
Object entityId ()
 
void prepareSave ()
 
String getAccountString ()
 
void clearLine ()
 
void assignValuesFrom (RegisterEntry registerEntry)
 
void roundIt (int fractionDigits)
 
- Public Member Functions inherited from org.turro.jpa.entity.IDaoEntity
default boolean isNew ()
 
default void prepareDelete ()
 
default void removeEmpties ()
 
default Collection< Collection > collections ()
 

Detailed Description

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

Definition at line 32 of file RegisterEntry.java.

Member Function Documentation

◆ assignValuesFrom()

void org.turro.financials.entity.RegisterEntry.assignValuesFrom ( RegisterEntry  registerEntry)

Definition at line 178 of file RegisterEntry.java.

178  {
179  setRegister(registerEntry.getRegister());
180  setAccount(registerEntry.getAccount());
181  setConcept(registerEntry.getConcept());
182  setDebit(registerEntry.getDebit());
183  setCredit(registerEntry.getCredit());
184  setApproved(registerEntry.isApproved());
185  setConciliated(registerEntry.isConciliated());
186  }
void setConciliated(boolean conciliated)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ clearLine()

void org.turro.financials.entity.RegisterEntry.clearLine ( )

Definition at line 169 of file RegisterEntry.java.

169  {
170  setAccount(null);
171  setConcept(null);
172  setDebit(0);
173  setCredit(0);
174  setApproved(false);
175  setConciliated(false);
176  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ entityId()

Object org.turro.financials.entity.RegisterEntry.entityId ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 146 of file RegisterEntry.java.

146  {
147  return id;
148  }

◆ getAccount()

Account org.turro.financials.entity.RegisterEntry.getAccount ( )

Definition at line 56 of file RegisterEntry.java.

56  {
57  return account;
58  }
Here is the caller graph for this function:

◆ getAccountString()

String org.turro.financials.entity.RegisterEntry.getAccountString ( )

Definition at line 165 of file RegisterEntry.java.

165  {
166  return account.getDescription() + " (" + concept + ")";
167  }

◆ getConcept()

String org.turro.financials.entity.RegisterEntry.getConcept ( )

Definition at line 72 of file RegisterEntry.java.

72  {
73  return concept;
74  }
Here is the caller graph for this function:

◆ getCredit()

double org.turro.financials.entity.RegisterEntry.getCredit ( )

Definition at line 88 of file RegisterEntry.java.

88  {
89  return credit;
90  }
Here is the caller graph for this function:

◆ getDebit()

double org.turro.financials.entity.RegisterEntry.getDebit ( )

Definition at line 96 of file RegisterEntry.java.

96  {
97  return debit;
98  }
Here is the caller graph for this function:

◆ getEntryOrder()

long org.turro.financials.entity.RegisterEntry.getEntryOrder ( )

Definition at line 104 of file RegisterEntry.java.

104  {
105  return entryOrder;
106  }
Here is the caller graph for this function:

◆ getId()

long org.turro.financials.entity.RegisterEntry.getId ( )

Definition at line 112 of file RegisterEntry.java.

112  {
113  return id;
114  }
Here is the caller graph for this function:

◆ getPath()

String org.turro.financials.entity.RegisterEntry.getPath ( )

Definition at line 120 of file RegisterEntry.java.

120  {
121  return path;
122  }

◆ getRegister()

Register org.turro.financials.entity.RegisterEntry.getRegister ( )

Definition at line 128 of file RegisterEntry.java.

128  {
129  return register;
130  }
Here is the caller graph for this function:

◆ isApproved()

boolean org.turro.financials.entity.RegisterEntry.isApproved ( )

Definition at line 64 of file RegisterEntry.java.

64  {
65  return approved;
66  }
Here is the caller graph for this function:

◆ isConciliated()

boolean org.turro.financials.entity.RegisterEntry.isConciliated ( )

Definition at line 80 of file RegisterEntry.java.

80  {
81  return conciliated;
82  }
Here is the caller graph for this function:

◆ isEmpty()

boolean org.turro.financials.entity.RegisterEntry.isEmpty ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 139 of file RegisterEntry.java.

139  {
140  return account == null ||
141  (Zero.near(debit, 2) &&
142  Zero.near(credit, 2));
143  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ prepareSave()

void org.turro.financials.entity.RegisterEntry.prepareSave ( )

Implements org.turro.jpa.entity.IDaoEntity.

Definition at line 151 of file RegisterEntry.java.

151  {
152  IDaoEntity.super.prepareSave();
153  Dao dao = new FinancialsPU();
154  Account a = dao.find(Account.class, account.getId());
155  if(a == null || !(a.getDescription().equals(account.getDescription()))) {
156  dao.saveObject(account);
157  }
158  if(register.getDocument() != null && register.getDocument().conciliateRegister) {
159  setConciliated(true);
160  }
161  }
Here is the call graph for this function:

◆ roundIt()

void org.turro.financials.entity.RegisterEntry.roundIt ( int  fractionDigits)

Definition at line 188 of file RegisterEntry.java.

188  {
189  debit = new Round(debit).decimals(fractionDigits).value();
190  credit = new Round(credit).decimals(fractionDigits).value();
191  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setAccount()

void org.turro.financials.entity.RegisterEntry.setAccount ( Account  account)

Definition at line 60 of file RegisterEntry.java.

60  {
61  this.account = account;
62  }
Here is the caller graph for this function:

◆ setApproved()

void org.turro.financials.entity.RegisterEntry.setApproved ( boolean  approved)

Definition at line 68 of file RegisterEntry.java.

68  {
69  this.approved = approved;
70  }
Here is the caller graph for this function:

◆ setConcept()

void org.turro.financials.entity.RegisterEntry.setConcept ( String  concept)

Definition at line 76 of file RegisterEntry.java.

76  {
77  this.concept = concept;
78  }
Here is the caller graph for this function:

◆ setConciliated()

void org.turro.financials.entity.RegisterEntry.setConciliated ( boolean  conciliated)

Definition at line 84 of file RegisterEntry.java.

84  {
85  this.conciliated = conciliated;
86  }
Here is the caller graph for this function:

◆ setCredit()

void org.turro.financials.entity.RegisterEntry.setCredit ( double  credit)

Definition at line 92 of file RegisterEntry.java.

92  {
93  this.credit = credit;
94  }
Here is the caller graph for this function:

◆ setDebit()

void org.turro.financials.entity.RegisterEntry.setDebit ( double  debit)

Definition at line 100 of file RegisterEntry.java.

100  {
101  this.debit = debit;
102  }
Here is the caller graph for this function:

◆ setEntryOrder()

void org.turro.financials.entity.RegisterEntry.setEntryOrder ( long  entryOrder)

Definition at line 108 of file RegisterEntry.java.

108  {
109  this.entryOrder = entryOrder;
110  }
Here is the caller graph for this function:

◆ setId()

void org.turro.financials.entity.RegisterEntry.setId ( long  id)

Definition at line 116 of file RegisterEntry.java.

116  {
117  this.id = id;
118  }

◆ setPath()

void org.turro.financials.entity.RegisterEntry.setPath ( String  path)

Definition at line 124 of file RegisterEntry.java.

124  {
125  this.path = path;
126  }

◆ setRegister()

void org.turro.financials.entity.RegisterEntry.setRegister ( Register  register)

Definition at line 132 of file RegisterEntry.java.

132  {
133  this.register = register;
134  }
Here is the caller graph for this function:

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