18 package org.turro.financials.entity;
20 import javax.persistence.*;
21 import org.turro.financials.db.FinancialsPU;
22 import org.turro.jpa.Dao;
23 import org.turro.jpa.entity.IDaoEntity;
24 import org.turro.math.Round;
25 import org.turro.math.Zero;
35 @GeneratedValue(strategy=GenerationType.IDENTITY)
36 @Column(name=
"IDENTIFIER")
42 private long entryOrder;
47 private String concept;
51 private double credit;
53 private boolean approved;
54 private boolean conciliated;
61 this.account = account;
69 this.approved = approved;
77 this.concept = concept;
85 this.conciliated = conciliated;
109 this.entryOrder = entryOrder;
133 this.
register =
register;
140 return account ==
null ||
155 if(a ==
null || !(a.
getDescription().equals(account.getDescription()))) {
156 dao.saveObject(account);
158 if(
register.getDocument() !=
null &&
register.getDocument().conciliateRegister) {
166 return account.getDescription() +
" (" + concept +
")";
void setAccount(Account account)
void setConciliated(boolean conciliated)
void setCredit(double credit)
void assignValuesFrom(RegisterEntry registerEntry)
void setPath(String path)
void setRegister(Register register)
String getAccountString()
void setConcept(String concept)
void roundIt(int fractionDigits)
void setEntryOrder(long entryOrder)
void setDebit(double debit)
void setApproved(boolean approved)
Round decimals(int digits)
static boolean near(double value, int digits)
default void prepareSave()