fixes bug#20325

qua:
dev:Valdevir

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@103393 d1611594-4594-4d17-8e1d-87c2c4800839
master
aristides 2020-09-21 20:26:41 +00:00
parent 81dd042f1c
commit c8ffd2d5ba
4 changed files with 11 additions and 4 deletions

View File

@ -116,6 +116,7 @@ public class RelatorioReceitaDiariaAgencia extends Relatorio {
stmt.setDate("DATA_INICIO", (java.sql.Date) parametros.get("DATA_INICIO"));
stmt.setDate("DATA_FINAL", (java.sql.Date) parametros.get("DATA_FINAL"));
stmt.setString("ISNUMPUNTOVENTATODOS", (String) parametros.get("ISNUMPUNTOVENTATODOS"));
this.resultSet = stmt.executeQuery();
@ -711,7 +712,7 @@ public class RelatorioReceitaDiariaAgencia extends Relatorio {
if ((Boolean) this.getParametros().get("B_DATA_FECHAMENTO")){
sql.append(" AND CJ.FECCORTE BETWEEN :DATA_INICIO AND :DATA_FINAL ");
}else{
sql.append(" AND TRUNC(CJ.FECHORVENTA) BETWEEN :DATA_INICIO AND :DATA_FINAL ");
sql.append(" AND CJ.FECHORVENTA BETWEEN :DATA_INICIO AND :DATA_FINAL ");
}
sql.append(" AND CJ.ACTIVO = 1 ");

View File

@ -224,6 +224,7 @@ public class RelatorioFinanceiroReceitasDespesasController extends MyGenericForw
puntoVentaBusqueda.addFilterOr(Filter.like("nombpuntoventa", "%" + txtPalavraPesquisa.getText().trim().toUpperCase().concat("%")), Filter.like("numPuntoVenta", "%" + txtPalavraPesquisa.getText().trim().toUpperCase().concat("%")));
puntoVentaBusqueda.addSortAsc("nombpuntoventa");
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
puntoVentaBusqueda.addFilterNotEqual("puntoventaId", -1);
plwPuntoVenta.init(puntoVentaBusqueda, puntoVentaList, pagingPuntoVenta);

View File

@ -39,6 +39,7 @@ import com.rjconsultores.ventaboletos.service.EmpresaService;
import com.rjconsultores.ventaboletos.service.EstadoService;
import com.rjconsultores.ventaboletos.service.GrupoRutaService;
import com.rjconsultores.ventaboletos.service.TipoPuntoVentaService;
import com.rjconsultores.ventaboletos.utilerias.DateUtil;
import com.rjconsultores.ventaboletos.utilerias.UsuarioLogado;
import com.rjconsultores.ventaboletos.web.utilerias.MyGenericForwardComposer;
import com.rjconsultores.ventaboletos.web.utilerias.MyListbox;
@ -292,6 +293,8 @@ public class RelatorioReceitaDiariaAgenciaController extends MyGenericForwardCom
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
puntoVentaBusqueda.addFilterNotEqual("puntoventaId", -1);
plwPuntoVenta.init(puntoVentaBusqueda, puntoVentaList, pagingPuntoVenta);
if (puntoVentaList.getData().length == 0) {
@ -313,8 +316,8 @@ public class RelatorioReceitaDiariaAgenciaController extends MyGenericForwardCom
Map<String, Object> parametros = new HashMap<String, Object>();
StringBuilder filtro = new StringBuilder();
parametros.put("DATA_INICIO", new java.sql.Date(((java.util.Date) this.datInicial.getValue()).getTime()));
parametros.put("DATA_FINAL", new java.sql.Date(((java.util.Date) this.datFinal.getValue()).getTime()));
parametros.put("DATA_INICIO", new java.sql.Date(((java.util.Date) DateUtil.inicioFecha(this.datInicial.getValue())).getTime()));
parametros.put("DATA_FINAL", new java.sql.Date(((java.util.Date) DateUtil.fimFecha(this.datFinal.getValue())).getTime()));
parametros.put("B_EXCLUI_BAGAGEM", chkExcessoBagagem.isChecked());
parametros.put("B_CONTEMPLAR_GAP", chkContemplarGap.isChecked());
parametros.put("B_DATA_FECHAMENTO", radDataFechamento.isChecked());

View File

@ -136,6 +136,8 @@ public class RelatorioVendasComissaoController extends MyGenericForwardComposer
puntoVentaBusqueda.addFilterEqual("activo", Boolean.TRUE);
puntoVentaBusqueda.addFilterNotEqual("puntoventaId", -1);
plwPuntoVenta.init(puntoVentaBusqueda, puntoVentaList, pagingPuntoVenta);
if (puntoVentaList.getData().length == 0) {