JasperReport jasperReport = Utility.getTranslatedJasperReport(_connectionProvider,
templateFile, language, baseDesignPath);
if (log4j.isDebugEnabled())
log4j.debug("creating the format factory: " + variables.getJavaDateFormat());
JRFormatFactory jrFormatFactory = new JRFormatFactory();
jrFormatFactory.setDatePattern(variables.getJavaDateFormat());
designParameters.put(JRParameter.REPORT_FORMAT_FACTORY, jrFormatFactory);
String salesOrder = report.getCheckSalesOrder();
if (salesOrder != null && salesOrder.equals("Y")) {
designParameters.put("DOCUMENT_NAME", Utility.messageBD(_connectionProvider, "Sales",
language)