19 package org.turro.financials.treasury.m303m;
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.financials.treasury.m303.Item349;
28 import org.turro.i18n.I_;
29 import org.turro.zkoss.input.CollectionListbox;
30 import org.zkoss.zul.Listhead;
31 import org.zkoss.zul.Listheader;
39 private TreeSet<Item349>
set =
new TreeSet<>();
51 currencyFormatter.format(v.
amount[0]) +
53 currencyFormatter.format(v.
amount[1]);
62 List<Register> l = em.
getDao().getResultList(
63 "select distinct r from Register r " +
64 "join r.registerEntries e " +
65 "join r.bookRegisters b with b.bookDefinition.id = ? " +
66 "where r.registerDate <= ? " +
67 "and r.registerDate >= ? " +
68 "and r.view.id = 1 " +
69 "and (r.exclude = FALSE and e.register.closing = FALSE and e.register.regularizeVAT = FALSE) " +
70 "and e.account.id like ?",
71 new Object[] { book, end, init, vatAcc });
73 Item349 i349 = getItem(Item349.getName(r));
75 i349.addAmounts(r, opAcc);
81 private Item349 getItem(String name) {
82 if(name ==
null)
return null;
83 for(Item349 i349 :
set) {
84 if(name.equals(i349.name)) {
88 Item349 i349 =
new Item349(name);
93 private void addHeaders() {
94 if(getListhead() !=
null)
return;
95 Listhead lh =
new Listhead();
97 lh.appendChild(
new Listheader(I_.get(
"Name"),
null,
"50%"));
98 lh.appendChild(
new Listheader(I_.get(
"Product"),
null,
"25%"));
99 lh.appendChild(
new Listheader(I_.get(
"Service"),
null,
"25%"));
static NumberFormat getCurrencyFormatter()
Date getMonthInitialDate()
String convertToString(Item349 v)
Model349List(EntryMonth em)