◆ fillSet()
void org.turro.financials.model.document.AnnualTransactionsSet.fillSet |
( |
int |
year | ) |
|
Definition at line 73 of file AnnualTransactionsSet.java.
75 WhereClause wc =
new WhereClause();
76 wc.addClause(
"select line from DocumentLine line join line.document doc");
77 wc.addClause(
"where year(doc.receiptDate) = :year");
78 wc.addNamedValue(
"year", year);
79 wc.addClause(
"and doc.documentDefinition.id in (12, 2, 1, 51, 49, 46, 5, 15, 18, 52)");
80 wc.addClause(
"and line.lineType.id in (12, 4, 97, 1, 3, 125, 150, 149, 151, 146, 147, 122, 123, 103, 126, 19, 135, 132, 169)");
82 Dao dao =
new FinancialsPU();
84 for(DocumentLine line : (List<DocumentLine>) dao.getResultList(wc)) {
86 switch((
int) line.getLineType().getId()) {
111 AnnualTransaction at = getAnnualTransaction(
112 (line.getDocument().getForcedView() ==
null ?
"" : line.getDocument().getForcedView().getName()),
114 line.getDocument().getContract().getContractor());
115 at.addOperationsAmount(
new CheckDate(line.getDocument().getReceiptDate()).getQuarter(), line.getToDeclare());
◆ getColumns()
Collection<String> org.turro.financials.model.document.AnnualTransactionsSet.getColumns |
( |
| ) |
|
◆ getLabel()
abstract String org.turro.financials.model.document.AnnualTransactionsSet.getLabel |
( |
String |
key | ) |
|
|
abstract |
◆ getRows()
Collection<Object[]> org.turro.financials.model.document.AnnualTransactionsSet.getRows |
( |
| ) |
|
Definition at line 50 of file AnnualTransactionsSet.java.
51 List<Object[]> l =
new ArrayList<Object[]>();
52 for(AnnualTransaction at :
this) {
53 Contact c = at.getContact();
54 Address a = c.getAddressMap().get(
"Fiscal");
58 c.getGlobalIdentifier(),
60 (a !=
null ? a.getAddressString() :
""),
61 at.getOperationsAmount(1),
62 at.getOperationsAmount(2),
63 at.getOperationsAmount(3),
64 at.getOperationsAmount(4),
65 at.getOperationsAmountSum()
The documentation for this class was generated from the following file: