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