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

Public Member Functions

List< RegisterEntrygetEntries (Dao dao)
 
- Public Member Functions inherited from org.turro.financials.register.GenericStatementSet
 GenericStatementSet ()
 
void loadData ()
 

Detailed Description

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

Definition at line 29 of file NonBalancedStatementSet.java.

Member Function Documentation

◆ getEntries()

List<RegisterEntry> org.turro.financials.register.NonBalancedStatementSet.getEntries ( Dao  dao)

Reimplemented from org.turro.financials.register.GenericStatementSet.

Definition at line 32 of file NonBalancedStatementSet.java.

32  {
33  List l = dao.getResultList(
34  "select register.id from RegisterEntry " +
35  "group by register.id having round(sum(debit)*100,0) <> round(sum(credit)*100,0)"
36  );
37  return (List<RegisterEntry>) dao.getResultList(
38  "select distinct entry " +
39  "from RegisterEntry as entry " +
40  "join entry.register register " +
41  "where register.id in " +
42  getInValue(l));
43  }

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