fixed bug #7107 -Alteração de arquivo BGM para buscar depósitos por data de lançamento(feccreacion).

git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/Integracion/IntegracaoReceitaDespesa/trunk/IntegracaoReceitaDespesa@53228 d1611594-4594-4d17-8e1d-87c2c4800839
master
thiago 2016-02-24 14:19:14 +00:00
parent c639609b08
commit c847611ca6
1 changed files with 10 additions and 11 deletions

View File

@ -231,9 +231,9 @@ public class Totalbus {
public List<DespesaReceita> getDepositos(Integer puntoventaId, Integer empresaId, Date fechaParam){ public List<DespesaReceita> getDepositos(Integer puntoventaId, Integer empresaId, Date fechaParam){
List<DespesaReceita> depositos = new ArrayList<DespesaReceita>(); List<DespesaReceita> depositos = new ArrayList<DespesaReceita>();
StringBuilder sb = new StringBuilder(); 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("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(); StringBuilder strFechamentos = new StringBuilder();
@ -242,9 +242,8 @@ public class Totalbus {
strFechamentos.append(" join fechamento_cct_deposito fd on fd.fechamentodeposito_id = fdep.fechamentodeposito_id "); 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(" 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(" 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(" join empresa_contabancaria ec on ec.EMPRESACONTABANCARIA_ID = fdep.EMPRESACONTABANCARIA_ID ");
strFechamentos.append("left join empresa_contabancaria ec on ec.EMPRESACONTABANCARIA_ID = pe.EMPRESACONTABANCARIA_ID "); strFechamentos.append(" join INSTI_FINANCEIRA if on if.INSTIFINANCEIRA_ID = EC.INSTIFINANCEIRA_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(" 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(" where fd.fechamentodeposito_id = :fechamentodepositoId and fd.activo <> 0 and fc.activo <> 0 ");