gleimar 2016-12-01 18:51:39 +00:00
parent 219507fbfc
commit b783f73bd7
1 changed files with 1 additions and 1 deletions

View File

@ -325,7 +325,7 @@ public class Totalbus {
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 trunc(fdep.feccreacion) = :fecha and fd.activo = 1 and fc.activo = 1 ");
strFechamentos.append(" where trunc(fdep.feccreacion) = :fecha and fd.activo = 1 and fc.activo = 1 and fdep.activo = 1 ");
if (puntoventaId != null && !puntoventaId.equals(-1)){
strFechamentos.append(" and fc.puntoventa_id = " + puntoventaId);