-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1454 from prefeiturasp/hotfix/1.33.5
Hotfix/1.33.5
- Loading branch information
Showing
8 changed files
with
430 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = "1.33.4" | ||
__version__ = "1.33.5" | ||
|
||
|
||
__version_info__ = tuple( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
-- noinspection SqlNoDataSourceInspectionForFile | ||
|
||
-- Lista solicitações de devolução ao tesouro sem uma devolução ao tesouro vinculada | ||
select | ||
a.unidade_id as "codigo_eol", | ||
u.nome, | ||
pc.id as "pc_id", | ||
p.referencia, | ||
d.id as "despesa_id", d.numero_documento, d.valor_total | ||
from | ||
core_prestacaoconta as pc, | ||
core_periodo as p, | ||
core_associacao as a, | ||
core_unidade as u, | ||
core_analiseprestacaoconta as apc, | ||
core_analiselancamentoprestacaoconta as al, | ||
despesas_despesa as d, | ||
core_solicitacaoacertolancamento as sal, | ||
core_tipoacertolancamento as tal | ||
where | ||
pc.periodo_id = p.id | ||
and a.unidade_id = u.codigo_eol | ||
and pc.associacao_id = a.id | ||
and apc.prestacao_conta_id = pc.id | ||
and al.analise_prestacao_conta_id = apc.id | ||
and al.despesa_id = d.id | ||
and sal.analise_lancamento_id = al.id | ||
and tal.id = sal.tipo_acerto_id | ||
and tal.categoria = 'DEVOLUCAO' | ||
and (select count(dt.id) from core_devolucaoaotesouro as dt where dt.prestacao_conta_id = pc.id and dt.despesa_id = d.id) = 0 | ||
group by | ||
pc.id, | ||
p.referencia, | ||
a.unidade_id, | ||
u.nome, | ||
d.id, d.numero_documento, d.valor_total | ||
order by | ||
a.unidade_id, | ||
u.nome, | ||
p.referencia, | ||
d.id, d.numero_documento | ||
|
||
-- Lista de Prestações de Conta com devoluções ao tesouro faltando | ||
select | ||
a.unidade_id as "codigo_eol", | ||
u.nome, | ||
pc.id as "pc_id", | ||
p.referencia | ||
from | ||
core_prestacaoconta as pc, | ||
core_periodo as p, | ||
core_associacao as a, | ||
core_unidade as u, | ||
core_analiseprestacaoconta as apc, | ||
core_analiselancamentoprestacaoconta as al, | ||
despesas_despesa as d, | ||
core_solicitacaoacertolancamento as sal, | ||
core_tipoacertolancamento as tal | ||
where | ||
pc.periodo_id = p.id | ||
and a.unidade_id = u.codigo_eol | ||
and pc.associacao_id = a.id | ||
and apc.prestacao_conta_id = pc.id | ||
and al.analise_prestacao_conta_id = apc.id | ||
and al.despesa_id = d.id | ||
and sal.analise_lancamento_id = al.id | ||
and tal.id = sal.tipo_acerto_id | ||
and tal.categoria = 'DEVOLUCAO' | ||
and (select count(dt.id) from core_devolucaoaotesouro as dt where dt.prestacao_conta_id = pc.id and dt.despesa_id = d.id) = 0 | ||
group by | ||
pc.id, | ||
p.referencia, | ||
a.unidade_id, | ||
u.nome | ||
order by | ||
a.unidade_id, | ||
u.nome, | ||
p.referencia |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 2.2.10 on 2022-09-23 15:25 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('core', '0270_remove_prestacaoconta_devolucao_tesouro'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='arquivo', | ||
name='tipo_carga', | ||
field=models.CharField(choices=[('REPASSE_REALIZADO', 'Repasses realizados'), ('CARGA_PERIODO_INICIAL', 'Carga período inicial'), ('REPASSE_PREVISTO', 'Repasses previstos'), ('CARGA_ASSOCIACOES', 'Carga de Associações'), ('CARGA_USUARIOS', 'Carga de usuários'), ('CARGA_CENSO', 'Carga de censo'), ('CARGA_REPASSE_PREVISTO_SME', 'Repasses previstos sme'), ('CARGA_DEVOLUCAO_TESOURO', 'Devoluções ao Tesouro')], default='REPASSE_REALIZADO', max_length=35, verbose_name='tipo de carga'), | ||
), | ||
migrations.AlterField( | ||
model_name='modelocarga', | ||
name='tipo_carga', | ||
field=models.CharField(choices=[('REPASSE_REALIZADO', 'Repasses realizados'), ('CARGA_PERIODO_INICIAL', 'Carga período inicial'), ('REPASSE_PREVISTO', 'Repasses previstos'), ('CARGA_ASSOCIACOES', 'Carga de Associações'), ('CARGA_USUARIOS', 'Carga de usuários'), ('CARGA_CENSO', 'Carga de censo'), ('CARGA_REPASSE_PREVISTO_SME', 'Repasses previstos sme'), ('CARGA_DEVOLUCAO_TESOURO', 'Devoluções ao Tesouro')], default='CARGA_ASSOCIACOES', max_length=35, unique=True, verbose_name='tipo de carga'), | ||
), | ||
] |
Oops, something went wrong.