◆ CompanyWrapper()
org.turro.financials.model.business.CompanyWrapper.CompanyWrapper |
( |
| ) |
|
◆ createDao()
Dao org.turro.financials.model.business.CompanyWrapper.createDao |
( |
| ) |
|
|
protected |
◆ delete()
boolean org.turro.financials.model.business.CompanyWrapper.delete |
( |
| ) |
|
◆ getCompanyClosingDate()
static Date org.turro.financials.model.business.CompanyWrapper.getCompanyClosingDate |
( |
| ) |
|
|
static |
◆ getCompanyCurrency()
static Currency org.turro.financials.model.business.CompanyWrapper.getCompanyCurrency |
( |
| ) |
|
|
static |
◆ getCompanyFrom()
static Company org.turro.financials.model.business.CompanyWrapper.getCompanyFrom |
( |
DocumentLine |
line | ) |
|
|
static |
◆ getCompanyLocale()
static Locale org.turro.financials.model.business.CompanyWrapper.getCompanyLocale |
( |
| ) |
|
|
static |
◆ getCurrencyFormatter()
static NumberFormat org.turro.financials.model.business.CompanyWrapper.getCurrencyFormatter |
( |
| ) |
|
|
static |
◆ getDefaultCompany() [1/2]
static Company org.turro.financials.model.business.CompanyWrapper.getDefaultCompany |
( |
| ) |
|
|
static |
◆ getDefaultCompany() [2/2]
static Company org.turro.financials.model.business.CompanyWrapper.getDefaultCompany |
( |
boolean |
reload | ) |
|
|
static |
◆ getDefaultContractService()
static Contract org.turro.financials.model.business.CompanyWrapper.getDefaultContractService |
( |
| ) |
|
|
static |
◆ getDefaultService()
static Service org.turro.financials.model.business.CompanyWrapper.getDefaultService |
( |
| ) |
|
|
static |
◆ getDepartmentFrom()
◆ getEndOfYearClosing() [1/2]
static int org.turro.financials.model.business.CompanyWrapper.getEndOfYearClosing |
( |
| ) |
|
|
static |
◆ getEndOfYearClosing() [2/2]
static int org.turro.financials.model.business.CompanyWrapper.getEndOfYearClosing |
( |
Date |
date | ) |
|
|
static |
◆ getHeadquartersFrom()
◆ getServiceFrom()
static Service org.turro.financials.model.business.CompanyWrapper.getServiceFrom |
( |
DocumentLine |
line | ) |
|
|
static |
◆ isValidDate() [1/2]
static boolean org.turro.financials.model.business.CompanyWrapper.isValidDate |
( |
Date |
date | ) |
|
|
static |
◆ isValidDate() [2/2]
static boolean org.turro.financials.model.business.CompanyWrapper.isValidDate |
( |
Date |
date, |
|
|
boolean |
closing |
|
) |
| |
|
static |
◆ removeExercise()
static void org.turro.financials.model.business.CompanyWrapper.removeExercise |
( |
Integer |
year | ) |
|
|
static |
Definition at line 325 of file bsfinancials-core/src/main/java/org/turro/financials/model/business/CompanyWrapper.java.
326 Dao dao =
new FinancialsPU();
327 SqlClause.delete(
"Document")
328 .where().equal(
"year(receiptDate)", year)
331 SqlClause.delete(
"DocumentLine")
332 .where(
"not exists").sub(
333 SqlClause.select(
"*").from(
"Document d")
334 .where(
"d.identifier = document_identifier"))
337 SqlClause.delete(
"DocumentRelation")
338 .where(
"not exists").sub(
339 SqlClause.select(
"*").from(
"Document d")
340 .where(
"d.identifier = ancestor_identifier"))
341 .or(
"not exists").sub(
342 SqlClause.select(
"*").from(
"Document d")
343 .where(
"d.identifier = descendant_identifier"))
346 SqlClause.delete(
"Register")
347 .where().equal(
"year(registerDate)", year)
350 SqlClause.delete(
"RegisterEntry")
351 .where(
"not exists").sub(
352 SqlClause.select(
"*").from(
"Register r")
353 .where(
"r.identifier = register_identifier"))
356 SqlClause.delete(
"BookRegister")
357 .where(
"not exists").sub(
358 SqlClause.select(
"*").from(
"Register r")
359 .where(
"r.identifier = register_identifier"))
◆ renumBookRegisters()
static void org.turro.financials.model.business.CompanyWrapper.renumBookRegisters |
( |
Integer |
year | ) |
|
|
static |
Definition at line 284 of file bsfinancials-core/src/main/java/org/turro/financials/model/business/CompanyWrapper.java.
285 Dao dao =
new FinancialsPU();
287 "delete from BookRegister br " +
289 " select r from Register r " +
290 " where br.register.id = r.id " +
291 " and year(r.registerDate) = ? " +
297 List<Register> l = dao.getResultList(
298 "select r from Register r " +
299 "where year(r.registerDate) = ? " +
301 "order by r.idRegister",
305 for(Register r : l) {
306 r = RegisterWrapper.prepareBookRegister(r);
307 if(!r.getBookRegisters().isEmpty()) {
◆ renumRegisters()
static void org.turro.financials.model.business.CompanyWrapper.renumRegisters |
( |
Integer |
year, |
|
|
boolean |
books |
|
) |
| |
|
static |
Definition at line 253 of file bsfinancials-core/src/main/java/org/turro/financials/model/business/CompanyWrapper.java.
254 if(year ==
null || year == 0)
return;
265 try(DaoTransaction transaction =
new DaoTransaction(
new FinancialsPU())) {
266 List<Register> l = transaction.getDao().getResultList(
267 "select r from Register r " +
268 "where year(r.registerDate) = ? " +
270 "order by r.registerDate, r.closing desc",
274 for(Register r : l) {
275 r.setIdRegister(count++);
276 transaction.saveObject(r);
static void renumBookRegisters(Integer year)
◆ save()
Company org.turro.financials.model.business.CompanyWrapper.save |
( |
| ) |
|
◆ shouldLog()
boolean org.turro.financials.model.business.CompanyWrapper.shouldLog |
( |
| ) |
|
|
protected |
The documentation for this class was generated from the following file: