Skip to content

Commit

Permalink
Ajuste query sintetico
Browse files Browse the repository at this point in the history
  • Loading branch information
williamfl2007 committed Sep 5, 2024
1 parent 7e3cd1d commit f5bd299
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/relatorio/relatorio-sintetico.repository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class RelatorioSinteticoRepository {
if(args.pago !==undefined)
query = query +` and atp."isPago"=${args.pago}`;

query = query + ` ) as subTotal) as subTotal `;
query = query + ` ) as subTotal)::Varchar as subTotal `;

query = query + ` from transacao_view tv
inner join item_transacao_agrupado ita on tv."itemTransacaoAgrupadoId"=ita.id
Expand Down Expand Up @@ -125,7 +125,7 @@ export class RelatorioSinteticoRepository {
if(args.pago !==undefined)
query = query +` and atp."isPago"=${args.pago}`;

query = query + ` ) as subTotal) as subTotal `;
query = query + ` ) as subTotal)::Varchar as subTotal `;

query = query + ` from item_transacao_agrupado ita
inner join detalhe_a da on da."itemTransacaoAgrupadoId"= ita.id
Expand Down

0 comments on commit f5bd299

Please sign in to comment.