Skip to content

Commit

Permalink
[HOTFIX] Bilhetagem - Corrige alias duplicado na transacao (#316)
Browse files Browse the repository at this point in the history
* adiciona coluna servico nas tabelas da jae

* adiciona changelog

* Corrige CHANGELOG.md

* altera serviços para os dados da jae

* adiciona colunas novas no schema

* altera changelog

* correções validação

* corrigir referencia das colunas do gps_validador

* corrigir nome das colunas gps_validador

* corrige alias

* corrige servico
  • Loading branch information
pixuimpou authored May 20, 2024
1 parent 35cf41a commit 25cb57e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
5 changes: 5 additions & 0 deletions models/br_rj_riodejaneiro_bilhetagem/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog - bilhetagem

## [1.2.1] - 2024-05-20

### Corrigido
- Altera alias da tabela `linha_sem_ressarcimento` no modelo `transacao.sql`

## [1.2.0] - 2024-05-20

### Alterado
Expand Down
4 changes: 2 additions & 2 deletions models/br_rj_riodejaneiro_bilhetagem/transacao.sql
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,9 @@ ON
AND t.data_transacao >= g.data_inicio_validade
AND (t.data_transacao < g.data_fim_validade OR g.data_fim_validade IS NULL)
LEFT JOIN
{{ ref("staging_linha_sem_ressarcimento") }} l
{{ ref("staging_linha_sem_ressarcimento") }} lsr
ON
t.cd_linha = l.id_linha
WHERE
l.id_linha IS NULL
lsr.id_linha IS NULL
AND DATE(data_transacao) >= "2023-07-17"
5 changes: 5 additions & 0 deletions models/dashboard_bilhetagem_implantacao_jae/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog - dashboard_bilhetagem_implantacao_jae

## [1.2.1] - 2024-05-20

### Corrigido
- Corrige coluna servico nos modelos `gps_agregado_brt.sql` e `gps_agregado_vlt.sql`

## [1.0.0] - 2024-04-15

### Adicionado
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
WITH gps_agregado AS (
SELECT
data,
servico,
servico_jae AS servico,
id_validador,
latitude,
longitude,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
WITH gps_agregado AS (
SELECT
data,
servico,
servico_jae AS servico,
id_validador,
latitude,
longitude,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ transacao_ordem AS (
op.valor_total_transacao_bruto,
op.valor_total_transacao_liquido,
t.quantidade_total_transacao_captura,
CAST(t.valor_total_transacao_captura+ op.valor_rateio_credito + op.valor_rateio_debito AS NUMERIC) AS valor_total_transacao_captura
CAST(t.valor_total_transacao_captura + op.valor_rateio_credito + op.valor_rateio_debito AS NUMERIC) AS valor_total_transacao_captura
FROM
ordem_pagamento op
FULL OUTER JOIN
Expand Down

0 comments on commit 25cb57e

Please sign in to comment.