En EVOLUTION 1.11 si las unidades no tienen una empresa asociada, tanto el navegador como el proceso que genera a VISIO no muestra información. Considero que es un BUG dado que en el modelo, la empresa no es requerida en la unidad. |
Existen dos problemas.
WHILE exists( select null from #unidades_table u1 join eor.uni_unidades on uni_codigo = CodigoUnidad where not exists (select 1 from #unidades_table where u1.CodigoEmpresa = isnull(@codcia, u1.CodigoEmpresa) and uni_codarf = isnull(@codarf, uni_codarf) and uni_codpai = isnull(@codpai, uni_codpai)) AND ... Yo temporalmente cambién el where where not exists (select 1 from #unidades_table where (u1.CodigoEmpresa = isnull(@codcia, u1.CodigoEmpresa) or uni_codarf = isnull(@codarf, uni_codarf) or uni_codpai = isnull(@codpai, uni_codpai)))
|