From c847611ca6eff11cedfa40ffd0e1527f004e87e9 Mon Sep 17 00:00:00 2001 From: thiago Date: Wed, 24 Feb 2016 14:19:14 +0000 Subject: [PATCH] =?UTF-8?q?fixed=20bug=20#7107=20-Altera=C3=A7=C3=A3o=20de?= =?UTF-8?q?=20arquivo=20BGM=20para=20buscar=20dep=C3=B3sitos=20por=20data?= =?UTF-8?q?=20de=20lan=C3=A7amento(feccreacion).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/Integracion/IntegracaoReceitaDespesa/trunk/IntegracaoReceitaDespesa@53228 d1611594-4594-4d17-8e1d-87c2c4800839 --- .../dao/Totalbus.java | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/com/rjconsultores/integracaoreceitadespesa/dao/Totalbus.java b/src/com/rjconsultores/integracaoreceitadespesa/dao/Totalbus.java index 421cbb74a..265b0d16b 100644 --- a/src/com/rjconsultores/integracaoreceitadespesa/dao/Totalbus.java +++ b/src/com/rjconsultores/integracaoreceitadespesa/dao/Totalbus.java @@ -231,22 +231,21 @@ public class Totalbus { public List getDepositos(Integer puntoventaId, Integer empresaId, Date fechaParam){ List depositos = new ArrayList(); StringBuilder sb = new StringBuilder(); - sb.append("select fdep.fechamentodeposito_id, fdep.valor, fdep.numdeposito, fdep.FECMODIF "); + sb.append("select fdep.fechamentodeposito_id, fdep.valor, fdep.numdeposito, fdep.FECCREACION "); sb.append("from fechamento_deposito fdep "); - sb.append("where trunc(FECMODIF) = :fecha and fdep.activo = 1 "); + sb.append("where trunc(FECCREACION) = :fecha and fdep.activo = 1 "); StringBuilder strFechamentos = new StringBuilder(); strFechamentos.append("Select fc.fecfechamento, fc.empresa_id, pv.numpuntoventa, fd.valor_pago, ec.numagencia, ec.numconta, if.CODIGO, ec.numintegracion "); - strFechamentos.append("from fechamento_deposito fdep "); - strFechamentos.append("join fechamento_cct_deposito fd on fd.fechamentodeposito_id = fdep.fechamentodeposito_id "); - strFechamentos.append("join fechamento_cntcorrente fc on fc.fechamentocntcorrente_id = fd.fechamentocntcorrente_id "); - strFechamentos.append("inner join PUNTO_VENTA pv on PV.PUNTOVENTA_ID = FC.PUNTOVENTA_ID "); - strFechamentos.append("left join PTOVTA_EMPRESA pe on pe.puntoventa_id = pv.puntoventa_id and pe.empresa_id = fc.empresa_id "); - strFechamentos.append("left join empresa_contabancaria ec on ec.EMPRESACONTABANCARIA_ID = pe.EMPRESACONTABANCARIA_ID "); - strFechamentos.append("left join INSTI_FINANCEIRA if on if.INSTIFINANCEIRA_ID = EC.INSTIFINANCEIRA_ID "); - strFechamentos.append("join EMPRESA e on e.empresa_id = fc.empresa_id "); - strFechamentos.append("where fd.fechamentodeposito_id = :fechamentodepositoId and fd.activo <> 0 and fc.activo <> 0 "); + strFechamentos.append(" from fechamento_deposito fdep "); + strFechamentos.append(" join fechamento_cct_deposito fd on fd.fechamentodeposito_id = fdep.fechamentodeposito_id "); + strFechamentos.append(" join fechamento_cntcorrente fc on fc.fechamentocntcorrente_id = fd.fechamentocntcorrente_id "); + strFechamentos.append(" inner join PUNTO_VENTA pv on PV.PUNTOVENTA_ID = FC.PUNTOVENTA_ID "); + strFechamentos.append(" join empresa_contabancaria ec on ec.EMPRESACONTABANCARIA_ID = fdep.EMPRESACONTABANCARIA_ID "); + strFechamentos.append(" join INSTI_FINANCEIRA if on if.INSTIFINANCEIRA_ID = EC.INSTIFINANCEIRA_ID "); + strFechamentos.append(" join EMPRESA e on e.empresa_id = fc.empresa_id "); + strFechamentos.append(" where fd.fechamentodeposito_id = :fechamentodepositoId and fd.activo <> 0 and fc.activo <> 0 "); if (puntoventaId != null && !puntoventaId.equals(-1)){ strFechamentos.append(" and fc.puntoventa_id = " + puntoventaId);