Skip to content

Commit

Permalink
Merge pull request #514 from RJ-SMTR/bug-fix/correcao-consolidado
Browse files Browse the repository at this point in the history
Ajuste sintetico
  • Loading branch information
williamfl2007 authored Oct 25, 2024
2 parents d413bcb + 7c85b37 commit 28469c4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/relatorio/relatorio-sintetico.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ export class RelatorioSinteticoRepository {
query = query + ` (select distinct dta.id,dta."valorLancamento"
from detalhe_a dta
inner join item_transacao_agrupado tt on dta."itemTransacaoAgrupadoId"=tt.id
inner join transacao_agrupado tta on tta."id"=tt."transacaoAgrupadoId" and tt."statusId"<>'5'
left join item_transacao itt on itt."itemTransacaoAgrupadoId" = tt."id"
left join arquivo_publicacao app on app."itemTransacaoId"=itt.id
WHERE `;
Expand All @@ -164,6 +165,7 @@ export class RelatorioSinteticoRepository {
(select distinct dta.id,dta."valorLancamento"
from detalhe_a dta
inner join item_transacao_agrupado tt on dta."itemTransacaoAgrupadoId"=tt.id
inner join transacao_agrupado tta on tta."id"=tt."transacaoAgrupadoId" and tt."statusId"<>'5'
left join item_transacao itt on itt."itemTransacaoAgrupadoId" = tt."id"
left join arquivo_publicacao app on app."itemTransacaoId"=itt.id
WHERE `;
Expand Down Expand Up @@ -225,6 +227,7 @@ export class RelatorioSinteticoRepository {
query = query + ` from item_transacao_agrupado ita
inner join detalhe_a da on da."itemTransacaoAgrupadoId"= ita.id
inner join item_transacao it on ita.id = it."itemTransacaoAgrupadoId"
inner join transacao_agrupado ta on ta."id"=ita."transacaoAgrupadoId" and ta."statusId"<>'5'
inner join arquivo_publicacao ap on ap."itemTransacaoId"=it.id
inner join cliente_favorecido cf on cf.id=it."clienteFavorecidoId"
left join ocorrencia oc on oc."detalheAId"=da.id
Expand Down

0 comments on commit 28469c4

Please sign in to comment.