|
| RegisterGenerator () |
|
int | getFractionDigits () |
|
Register | getRegister () |
|
void | setRegister (Register register) |
|
void | addAccount (Account account, String concept, double balance) |
|
void | addAccount (Contract store, String concept, double debit, double credit) |
|
void | addAccount (Account account, String concept, double debit, double credit) |
|
Set< RegisterEntry > | addAmount (RegisterView view, Contract contract, Contract store, LineType lineType, String concept, double amount) |
|
◆ RegisterGenerator()
org.turro.financials.model.register.RegisterGenerator.RegisterGenerator |
( |
| ) |
|
Definition at line 39 of file RegisterGenerator.java.
40 fractionDigits = CompanyWrapper.getCompanyCurrency().getDefaultFractionDigits();
◆ addAccount() [1/3]
void org.turro.financials.model.register.RegisterGenerator.addAccount |
( |
Account |
account, |
|
|
String |
concept, |
|
|
double |
balance |
|
) |
| |
Definition at line 58 of file RegisterGenerator.java.
59 if(!
Zero.
near(balance, fractionDigits)) {
void addAccount(Account account, String concept, double balance)
static boolean near(double value, int digits)
◆ addAccount() [2/3]
void org.turro.financials.model.register.RegisterGenerator.addAccount |
( |
Account |
account, |
|
|
String |
concept, |
|
|
double |
debit, |
|
|
double |
credit |
|
) |
| |
Definition at line 79 of file RegisterGenerator.java.
80 if(
register ==
null) {
89 if(!(
Zero.
near(debit, fractionDigits))) {
94 re.
setDebit(
new Round(debit).decimals(fractionDigits).value());
96 register.getRegisterEntries().add(re);
99 if(!(
Zero.
near(credit, fractionDigits))) {
106 register.getRegisterEntries().add(re);
void setDescription(String description)
void setAccount(Account account)
void setCredit(double credit)
void setRegister(Register register)
void setConcept(String concept)
void roundIt(int fractionDigits)
void setDebit(double debit)
◆ addAccount() [3/3]
void org.turro.financials.model.register.RegisterGenerator.addAccount |
( |
Contract |
store, |
|
|
String |
concept, |
|
|
double |
debit, |
|
|
double |
credit |
|
) |
| |
Definition at line 68 of file RegisterGenerator.java.
69 String accStr =
"%ctd.%ct",
71 accStr = accStr.replaceAll(
"\\%ctd", asCash)
72 .replaceAll(
"\\%ct",
"" + store.
getId());
74 account.
setId(AccountFormat.expand(accStr));
ContractPreference getDefaultContractPreference()
ContractDefinition getContractDefinition()
String getFullDescription()
◆ addAmount()
Definition at line 111 of file RegisterGenerator.java.
112 Set<RegisterEntry>
set = addEntries(view, contract, store, lineType, concept, amount);
113 if(
register ==
null) {
118 register.getRegisterEntries().add(re);
◆ getFractionDigits()
int org.turro.financials.model.register.RegisterGenerator.getFractionDigits |
( |
| ) |
|
◆ getRegister()
Register org.turro.financials.model.register.RegisterGenerator.getRegister |
( |
| ) |
|
◆ setRegister()
void org.turro.financials.model.register.RegisterGenerator.setRegister |
( |
Register |
register | ) |
|
The documentation for this class was generated from the following file: