◆ RegisterWrapper() [1/2]
org.turro.financials.model.register.RegisterWrapper.RegisterWrapper |
( |
Register |
register | ) |
|
◆ RegisterWrapper() [2/2]
org.turro.financials.model.register.RegisterWrapper.RegisterWrapper |
( |
Register |
register, |
|
|
boolean |
generate |
|
) |
| |
Definition at line 46 of file RegisterWrapper.java.
47 this.
register =
register;
48 this.generate = generate;
49 bookDefs =
new HashSet<Long>();
◆ checkSave()
boolean org.turro.financials.model.register.RegisterWrapper.checkSave |
( |
| ) |
|
Definition at line 196 of file RegisterWrapper.java.
197 return CompanyWrapper.isValidDate(
register.getRegisterDate(),
register.isClosing() &&
register.isExclude());
◆ delete()
boolean org.turro.financials.model.register.RegisterWrapper.delete |
( |
| ) |
|
Definition at line 163 of file RegisterWrapper.java.
164 if(
register.getDocument() ==
null) {
165 SystemLogger.getInstance().doLog(SystemLogType.LOG_INFO,
register,
"deleted",
new XMLSerializer(
register).data());
void deleteObject(Object obj)
◆ getBookString()
String org.turro.financials.model.register.RegisterWrapper.getBookString |
( |
| ) |
|
Definition at line 107 of file RegisterWrapper.java.
108 Iterator<BookRegister> itbr =
register.getBookRegisters().iterator();
110 while(itbr.hasNext()) {
112 boolean found =
false;
113 for(Long idBd : bookDefs) {
119 if(!found && br.
getId() == 0) {
124 StringBuilder sb =
new StringBuilder();
125 for(Long idBd : bookDefs) {
126 boolean found =
false;
129 if(sb.length() > 0) {
144 register.getBookRegisters().add(br);
145 if(sb.length() > 0) {
149 sb.append(
" [<auto>]");
153 return sb.toString();
void setRegister(Register register)
BookDefinition getBookDefinition()
void setBookDefinition(BookDefinition bookDefinition)
◆ getEntries()
EntrySet org.turro.financials.model.register.RegisterWrapper.getEntries |
( |
| ) |
|
◆ getRegister()
Register org.turro.financials.model.register.RegisterWrapper.getRegister |
( |
| ) |
|
◆ prepareBookRegister()
static Register org.turro.financials.model.register.RegisterWrapper.prepareBookRegister |
( |
Register |
register | ) |
|
|
static |
Definition at line 172 of file RegisterWrapper.java.
174 Set<Long> bookDefs =
new HashSet<Long>();
176 if(re.getDebit() != 0 || re.getCredit() != 0) {
181 bookDefs.add(bf.
getId());
186 for(Long bookDef : bookDefs) {
190 register.getBookRegisters().add(br);
192 register.prepareSave();
BookDefinition getBookDefinition()
◆ save()
Register org.turro.financials.model.register.RegisterWrapper.save |
( |
| ) |
|
Definition at line 156 of file RegisterWrapper.java.
157 register.prepareSave();
159 SystemLogger.getInstance().doLog(SystemLogType.LOG_INFO,
register,
"saved",
new XMLSerializer(
register).data());
◆ register
Register org.turro.financials.model.register.RegisterWrapper.register |
|
protected |
The documentation for this class was generated from the following file: