19 package org.turro.financials.treasury.m303;
21 import java.text.NumberFormat;
22 import java.util.Date;
23 import java.util.List;
24 import java.util.TreeSet;
25 import org.turro.financials.entity.Register;
26 import org.turro.financials.model.business.CompanyWrapper;
27 import org.turro.i18n.I_;
28 import org.turro.zkoss.input.CollectionListbox;
29 import org.zkoss.zul.Listhead;
30 import org.zkoss.zul.Listheader;
38 private TreeSet<Item349>
set =
new TreeSet<Item349>();
50 currencyFormatter.format(v.
amount[0]) +
52 currencyFormatter.format(v.
amount[1]);
61 List<Register> l = eq.
getDao().getResultList(
62 "select distinct r from Register r " +
63 "join r.registerEntries e " +
64 "join r.bookRegisters b with b.bookDefinition.id = ? " +
65 "where r.registerDate <= ? " +
66 "and r.registerDate >= ? " +
67 "and r.view.id = 1 " +
68 "and (r.exclude = FALSE and e.register.closing = FALSE and e.register.regularizeVAT = FALSE) " +
69 "and e.account.id like ?",
70 new Object[] { book, end, init, vatAcc });
72 Item349 i349 = getItem(Item349.getName(r));
74 i349.addAmounts(r, opAcc);
80 private Item349 getItem(String name) {
81 if(name ==
null)
return null;
82 for(Item349 i349 :
set) {
83 if(name.equals(i349.name)) {
87 Item349 i349 =
new Item349(name);
92 private void addHeaders() {
93 if(getListhead() !=
null)
return;
94 Listhead lh =
new Listhead();
96 lh.appendChild(
new Listheader(I_.get(
"Name"),
null,
"50%"));
97 lh.appendChild(
new Listheader(I_.get(
"Product"),
null,
"25%"));
98 lh.appendChild(
new Listheader(I_.get(
"Service"),
null,
"25%"));
static NumberFormat getCurrencyFormatter()
Date getQuarterInitialDate()
Model349List(EntryQuarter eq)
String convertToString(Item349 v)