18 package org.turro.financials.account.logic;
20 import java.util.HashMap;
22 import java.util.logging.Level;
23 import java.util.logging.Logger;
24 import net.sf.jasperreports.engine.JRException;
25 import org.turro.contacts.Contact;
26 import org.turro.elephant.context.ElephantContext;
27 import org.turro.elephant.util.DateFormats;
28 import org.turro.elephant.util.DecimalFormats;
29 import org.turro.financials.entity.Company;
30 import org.turro.financials.model.business.CompanyWrapper;
31 import org.turro.i18n.I_;
32 import org.turro.zkoss.print.ReportPrint;
33 import org.turro.zkoss.print.ReportToolbarbutton;
48 protected void print(String type) {
49 if(filter !=
null && filter.size() > 0) {
50 Map parameters =
new HashMap();
53 int fractionDigits = companyContact.
getCurrency().getDefaultFractionDigits();
54 parameters.put(
"company", company);
55 parameters.put(
"companyContact", companyContact);
56 parameters.put(
"filter", filter);
59 parameters.put(
"exportFormat", type);
60 parameters.put(
"SUBREPORT_DIR",
"../_reports/financials/accounting/");
61 String file =
"/WEB-INF/_reports/financials/accounting/AccountStatement.jasper";
64 filter, parameters, file,
null, type,
null);
65 }
catch (JRException ex) {
static String logMsg(String msg)
void setFilter(StatementSet filter)
static Company getDefaultCompany()
static String get(String msg)
static void print(String title, Collection collection, Map parameters, String jasperFile, String defaultFile, String type, String certificateStore)