fixes bug#AL-3713
parent
194c5658cf
commit
fa70eff1c2
2
pom.xml
2
pom.xml
|
@ -4,7 +4,7 @@
|
|||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>br.com.rjconsultores</groupId>
|
||||
<artifactId>ventaboletosadm</artifactId>
|
||||
<version>1.48.3</version>
|
||||
<version>1.48.4</version>
|
||||
<packaging>war</packaging>
|
||||
|
||||
<properties>
|
||||
|
|
|
@ -66,7 +66,11 @@ public class RelatorioVendasBilheteiro extends Relatorio {
|
|||
sql.append(" and c.FECHORVENTA >= :DATA_INICIAL ");
|
||||
sql.append(" and c.FECHORVENTA <= :DATA_FINAL ");
|
||||
sql.append(" and ((c.indreimpresion = 1 ");
|
||||
if (parametros.get("CONTERMPLACHECKIN") != null && parametros.get("CONTERMPLACHECKIN").equals("1")) {
|
||||
sql.append(" AND (c.motivoreimpresion_id = 99 or c.motivocancelacion_id in (27) )) or c.indreimpresion = 0) ");
|
||||
}else {
|
||||
sql.append(" AND (c.motivoreimpresion_id = 99)) or c.indreimpresion = 0) ");
|
||||
}
|
||||
if (parametros.get("NUMPUNTOVENTA") != null && !possuiFiltroTodos("NUMPUNTOVENTA")) {
|
||||
sql.append(" and pv.PUNTOVENTA_ID IN (" + parametros.get("NUMPUNTOVENTA").toString() + ")");
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@ import org.zkoss.zhtml.Messagebox;
|
|||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zul.Bandbox;
|
||||
import org.zkoss.zul.Checkbox;
|
||||
import org.zkoss.zul.Comboitem;
|
||||
import org.zkoss.zul.Datebox;
|
||||
import org.zkoss.zul.Paging;
|
||||
|
@ -72,6 +73,7 @@ public class RelatorioVendasBilheteiroController extends MyGenericForwardCompose
|
|||
private Paging pagingPuntoVenta;
|
||||
|
||||
private MyTextbox txtBilheteiro;
|
||||
private Checkbox chkContemplarOpCheckin;
|
||||
|
||||
@Override
|
||||
public void doAfterCompose(Component comp) throws Exception {
|
||||
|
@ -192,6 +194,12 @@ public class RelatorioVendasBilheteiroController extends MyGenericForwardCompose
|
|||
} else {
|
||||
filtro.append("Todos;");
|
||||
}
|
||||
if (chkContemplarOpCheckin.isChecked()){
|
||||
parametros.put("CONTERMPLACHECKIN", "1");
|
||||
filtro.append(" Contempla operações de Checkin;");
|
||||
}else {
|
||||
parametros.put("CONTERMPLACHECKIN", "0");
|
||||
}
|
||||
|
||||
parametros.put("FILTROS", filtro.toString());
|
||||
relatorio = new RelatorioVendasBilheteiro(parametros, dataSourceRead.getConnection());
|
||||
|
|
|
@ -1119,6 +1119,7 @@ relatorioVendasBilheteiroController.lbLayoutNovo.value = Novo
|
|||
relatorioVendasBilheteiroController.lbLayoutAntigo.value = Antigo
|
||||
relatorioVendasBilheteiroController.lbLayoutDiario.value = Diário
|
||||
relatorioVendasBilheteiroController.lbLayoutResumo.value = Resumo
|
||||
relatorioVendasBilheteiroController.chkContemplarOpCheckin.value = Contemplar operações de checkin
|
||||
|
||||
|
||||
#Relatório de Vendas por bilheteiro Sintético
|
||||
|
|
|
@ -1005,6 +1005,7 @@ relatorioVendasBilheteiroController.lbLayoutNovo.value = Novo
|
|||
relatorioVendasBilheteiroController.lbLayoutAntigo.value = Antigo
|
||||
relatorioVendasBilheteiroController.lbLayoutDiario.value = Diario
|
||||
relatorioVendasBilheteiroController.lbLayoutResumo.value = Resumo
|
||||
relatorioVendasBilheteiroController.chkContemplarOpCheckin.value = Contemplar operações de checkin
|
||||
|
||||
#Relatório de Vendas por bilheteiro Sintético
|
||||
relatorioVendasBilheteiroSinteticoController.window.title = Reporte de ventas por agentes sintético
|
||||
|
|
|
@ -1120,6 +1120,7 @@ relatorioVendasBilheteiroController.lbLayoutNovo.value = Novo
|
|||
relatorioVendasBilheteiroController.lbLayoutAntigo.value = Antigo
|
||||
relatorioVendasBilheteiroController.lbLayoutDiario.value = Diário
|
||||
relatorioVendasBilheteiroController.lbLayoutResumo.value = Resumo
|
||||
relatorioVendasBilheteiroController.chkContemplarOpCheckin.value = Contemplar operações de checkin
|
||||
|
||||
|
||||
#Relatório de Vendas por bilheteiro Sintético
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<zk xmlns="http://www.zkoss.org/2005/zul">
|
||||
<window id="winFiltroRelatorioVendasBilheteiro"
|
||||
apply="${relatorioVendasBilheteiroController}"
|
||||
contentStyle="overflow:auto" height="325px" width="550px"
|
||||
contentStyle="overflow:auto" height="345px" width="550px"
|
||||
border="normal">
|
||||
|
||||
<grid fixedLayout="true">
|
||||
|
@ -103,6 +103,7 @@
|
|||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="20%"/>
|
||||
|
@ -116,7 +117,16 @@
|
|||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
|
||||
<grid fixedLayout="true">
|
||||
<columns>
|
||||
<column width="100%"/>
|
||||
</columns>
|
||||
<rows>
|
||||
<row>
|
||||
<checkbox id="chkContemplarOpCheckin" checked = "true" label="${c:l('relatorioVendasBilheteiroController.chkContemplarOpCheckin.value')}" />
|
||||
</row>
|
||||
</rows>
|
||||
</grid>
|
||||
<toolbar>
|
||||
<button id="btnExecutarRelatorio" image="/gui/img/find.png"
|
||||
label="${c:l('relatorio.lb.btnExecutarRelatorio')}" />
|
||||
|
|
Loading…
Reference in New Issue