
report = new com.unicenta.pos.reports.PanelReportBean();

report.setTitleKey("Menu.BarcodeSheet");
report.setReport("/com/unicenta/reports/labels_barcode_sheet");
report.setResourceBundle("com/unicenta/reports/labels_messages");

report.setSentence("SELECT "
                + "products.CODE, products.CODETYPE, products.NAME, "
                + "categories.ID AS CATEGORY, "
                + "categories.NAME AS CATEGORYNAME "
                + "FROM products LEFT OUTER JOIN categories ON products.CATEGORY = categories.ID "
                + "WHERE ?(QBF_FILTER) "
                + "ORDER BY categories.NAME, products.NAME");

report.addParameter("products.NAME");
report.addParameter("products.CATEGORY");
report.addParameter("products.CODE");
report.addQBFFilter(new com.unicenta.pos.ticket.ProductFilter4());

report.addField("CODE", com.unicenta.data.loader.Datas.STRING);
report.addField("CODETYPE", com.unicenta.data.loader.Datas.STRING);
report.addField("NAME", com.unicenta.data.loader.Datas.STRING);

report;

