eusebio.junior Posted April 15, 2014 Topic Count: 5 Topics Per Day: 0.00 Content Count: 15 Content Per Day: 0.00 Reputation: 0 Achievement Points: 125 Solved Content: 0 Days Won: 0 Status: Offline Age: 38 Report Posted April 15, 2014 Caros colegas, Estou iniciando o desenvolvimento de um Cubo, cujo objetivo é relacionar os Lançamentos contábeis com as respectivas naturezas orçamentárias da Origem dos mesmos. Estou com dificuldade em encontrar qual campo das tabelas FLAN e TITMMOV tem relacionamento com a CLANCA ou CLANCAMENTO. Não sou nenhum expert em sql, mas já tenho uma noção básica. Alguém iniciou algo parecido ou pode me ajudar com essa duvida? Obrigado. Abs Quote
Frederico Posted April 16, 2014 Topic Count: 11 Topics Per Day: 0.00 Content Count: 1,140 Content Per Day: 0.20 Reputation: 60 Achievement Points: 6,165 Solved Content: 0 Days Won: 33 Status: Offline Age: 43 Device: Windows Report Posted April 16, 2014 Eusebio, Segue o relacionamento da FLAN FROM FLAN (NOLOCK) INNER JOIN COPERACAO (NOLOCK) ON FLAN.CODCOLIGADA = COPERACAO.CODCOLIGADA AND FLAN.IDOPERACAO = COPERACAO.IDOPERACAO INNER JOIN CCONT (NOLOCK) ON COPERACAO.CODCOLIGADA = CCONT.CODCOLIGADA AND COPERACAO.IDOPERACAO = CCONT.IDOPERACAO INNER JOIN CPARTIDA (NOLOCK) ON CCONT.CODCOLIGADA = CPARTIDA.CODCOLIGADA AND CCONT.IDPARTIDA = CPARTIDA.IDPARTIDA INNER JOIN CLANCAMENTO (NOLOCK) ON CPARTIDA.CODCOLIGADA = CLANCAMENTO.CODCOLIGADA AND CPARTIDA.CODLOTE = CLANCAMENTO.CODLOTE AND CPARTIDA.IDLANCAMENTO = CLANCAMENTO.IDLANCAMENTO []'S Quote
eusebio.junior Posted April 16, 2014 Topic Count: 5 Topics Per Day: 0.00 Content Count: 15 Content Per Day: 0.00 Reputation: 0 Achievement Points: 125 Solved Content: 0 Days Won: 0 Status: Offline Age: 38 Author Report Posted April 16, 2014 Frederico, Obrigado, vou testar aqui e iniciar os trabalhos, vou postando as possiveis evoluções. Abs Quote
eusebio.junior Posted April 16, 2014 Topic Count: 5 Topics Per Day: 0.00 Content Count: 15 Content Per Day: 0.00 Reputation: 0 Achievement Points: 125 Solved Content: 0 Days Won: 0 Status: Offline Age: 38 Author Report Posted April 16, 2014 Frederico, Dei uma analisada e na tabela Flan em minha base, o campo IDOPERACAO está Null em todos os registros, estou na versão 11.52. Quote
Frederico Posted April 16, 2014 Topic Count: 11 Topics Per Day: 0.00 Content Count: 1,140 Content Per Day: 0.20 Reputation: 60 Achievement Points: 6,165 Solved Content: 0 Days Won: 33 Status: Offline Age: 43 Device: Windows Report Posted April 16, 2014 Você está utilizando o novo modelo de BackOffice com a contabilidade Online ? Quote
yuri.menon Posted April 16, 2014 Topic Count: 29 Topics Per Day: 0.01 Content Count: 133 Content Per Day: 0.03 Reputation: 5 Achievement Points: 979 Solved Content: 0 Days Won: 3 Status: Offline Age: 35 Report Posted April 16, 2014 Se eu não me engano, CLANCA é apenas uma view que aponta para CPARTIDA. Eusebio confira também a consulta sql por trás da view FLANCONT Quote
Augusto Carvalho Posted May 6, 2015 Topic Count: 4 Topics Per Day: 0.00 Content Count: 30 Content Per Day: 0.00 Reputation: 2 Achievement Points: 200 Solved Content: 0 Days Won: 0 Status: Offline Age: 43 Report Posted May 6, 2015 Usa o IDOPERACAO da FLANBAIXA Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.