Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adicionando model de Lançamento #140

Merged
merged 4 commits into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 77 additions & 48 deletions project/app/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.2.5 on 2023-10-06 17:38
# Generated by Django 4.2.5 on 2023-10-27 11:29

from django.db import migrations, models
import django.db.models.deletion
Expand All @@ -20,56 +20,85 @@ class Migration(migrations.Migration):
('formato', models.CharField(max_length=200)),
('nome_template', models.CharField(max_length=200)),
('nome_usuario', models.CharField(max_length=200)),
('id_projeto', models.CharField(max_length=200)),
('id_projeto', models.CharField(max_length=50)),
],
),
migrations.CreateModel(
name='Mapeamento',
fields=[
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('CODIGO', models.CharField(max_length=70)),
('NOME', models.CharField(max_length=70)),
('SALDO', models.CharField(max_length=70)),
('DATA_ASSINATURA', models.CharField(max_length=70)),
('DATA_VIGENCIA', models.CharField(max_length=70)),
('DATA_ENCERRAMENTO', models.CharField(max_length=70)),
('TIPO_CONTRATO', models.CharField(max_length=70)),
('INSTITUICAO_EXECUTORA', models.CharField(max_length=70)),
('PROCESSO', models.CharField(max_length=70)),
('SUBPROCESSO', models.CharField(max_length=70)),
('COD_PROPOSTA', models.CharField(max_length=70)),
('PROPOSTA', models.CharField(max_length=70)),
('OBJETIVOS', models.CharField(max_length=70)),
('VALOR_APROVADO', models.CharField(max_length=70)),
('NOME_TP_CONTROLE_SALDO', models.CharField(max_length=70)),
('GRUPO_GESTORES', models.CharField(max_length=70)),
('GESTOR_RESP', models.CharField(max_length=70)),
('COORDENADOR', models.CharField(max_length=70)),
('PROCEDIMENTO_COMPRA', models.CharField(max_length=70)),
('TAB_FRETE', models.CharField(max_length=70)),
('TAB_DIARIAS', models.CharField(max_length=70)),
('CUSTO_OP', models.CharField(max_length=70)),
('NOME_FINANCIADOR', models.CharField(max_length=70)),
('DEPARTAMENTO', models.CharField(max_length=70)),
('SITUACAO', models.CharField(max_length=70)),
('BANCO', models.CharField(max_length=70)),
('AGENCIA_BANCARIA', models.CharField(max_length=70)),
('CONTA_BANCARIA', models.CharField(max_length=70)),
('CENTRO_CUSTO', models.CharField(max_length=70)),
('CONTA_CAIXA', models.CharField(max_length=70)),
('CATEGORIA_PROJETO', models.CharField(max_length=70)),
('COD_CONVENIO_CONTA', models.CharField(max_length=70)),
('COD_STATUS', models.CharField(max_length=70)),
('IND_SUB_PROJETO', models.CharField(max_length=70)),
('TIPO_CUSTO_OP', models.CharField(max_length=70)),
('PROJETO_MAE', models.CharField(max_length=70)),
('ID_COORDENADOR', models.CharField(max_length=70)),
('ID_FINANCIADOR', models.CharField(max_length=70)),
('ID_INSTITUICAO', models.CharField(max_length=70)),
('ID_DEPARTAMENTO', models.CharField(max_length=70)),
('NOME_INSTITUICAO', models.CharField(max_length=70)),
('ID_INSTITUICAO_EXECUTORA', models.CharField(max_length=70)),
('ID_TIPO', models.CharField(max_length=70)),
('id_mapeamento', models.IntegerField(primary_key=True, serialize=False)),
('codigo', models.CharField(max_length=200)),
('nome', models.CharField(max_length=200)),
('saldo', models.CharField(max_length=200)),
('data_assinatura', models.CharField(max_length=200)),
('data_vigencia', models.CharField(max_length=200)),
('data_encerramento', models.CharField(max_length=200)),
('tipo_contrato', models.CharField(max_length=200)),
('instituicao_executora', models.CharField(max_length=200)),
('processo', models.CharField(max_length=200)),
('subprocesso', models.CharField(max_length=200)),
('cod_proposta', models.CharField(max_length=200)),
('proposta', models.CharField(max_length=200)),
('objetivos', models.CharField(max_length=200)),
('valor_aprovado', models.CharField(max_length=200)),
('nome_tp_controle_saldo', models.CharField(max_length=200)),
('grupo_gestores', models.CharField(max_length=200)),
('gestor_resp', models.CharField(max_length=200)),
('coordenador', models.CharField(max_length=200)),
('procedimento_compra', models.CharField(max_length=200)),
('tab_frete', models.CharField(max_length=200)),
('tab_diarias', models.CharField(max_length=200)),
('custo_op', models.CharField(max_length=200)),
('nome_financiador', models.CharField(max_length=200)),
('departamento', models.CharField(max_length=200)),
('situacao', models.CharField(max_length=200)),
('banco', models.CharField(max_length=200)),
('agencia_bancaria', models.CharField(max_length=200)),
('conta_bancaria', models.CharField(max_length=200)),
('centro_custo', models.CharField(max_length=200)),
('conta_caixa', models.CharField(max_length=200)),
('categoria_projeto', models.CharField(max_length=200)),
('cod_convenio_conta', models.CharField(max_length=200)),
('cod_status', models.CharField(max_length=200)),
('ind_sub_projeto', models.CharField(max_length=200)),
('tipo_custo_op', models.CharField(max_length=200)),
('projeto_mae', models.CharField(max_length=200)),
('id_coordenador', models.CharField(max_length=200)),
('id_financiador', models.CharField(max_length=200)),
('id_instituicao', models.CharField(max_length=200)),
('id_departamento', models.CharField(max_length=200)),
('nome_instituicao', models.CharField(max_length=200)),
('id_instituicao_executora', models.CharField(max_length=200)),
('id_tipo', models.CharField(max_length=201)),
],
),
migrations.CreateModel(
name='MapeamentoConveniar',
fields=[
('id_mapeamento', models.IntegerField(primary_key=True, serialize=False)),
('id_favorecido', models.CharField(max_length=200)),
('nome_favorecido', models.CharField(max_length=200)),
('cnpj_favorecido', models.CharField(max_length=200)),
('tipo_favorecido', models.CharField(max_length=200)),
('valor_lancado', models.CharField(max_length=200)),
('valor_pago', models.CharField(max_length=200)),
('data_vencimento', models.CharField(max_length=200)),
('id_status', models.CharField(max_length=200)),
('status_lancamento', models.CharField(max_length=200)),
('flag_receita', models.CharField(max_length=200)),
('data_baixa', models.CharField(max_length=200)),
('his_lancamento', models.CharField(max_length=200)),
('data_emissao', models.CharField(max_length=200)),
('num_doc_fin', models.CharField(max_length=200)),
('data_cria', models.CharField(max_length=200)),
('data_pagamento', models.CharField(max_length=200)),
('id_lancamento', models.CharField(max_length=200)),
('id_projeto', models.CharField(max_length=200)),
('id_rubrica', models.CharField(max_length=200)),
('nome_rubrica', models.CharField(max_length=200)),
('tipo_movimento', models.CharField(max_length=200)),
('id_tp_lancamento', models.CharField(max_length=200)),
('tipo_lancamento', models.CharField(max_length=200)),
],
),
migrations.CreateModel(
Expand All @@ -78,8 +107,8 @@ class Migration(migrations.Migration):
('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
('titulo', models.CharField(max_length=200)),
('descricao', models.CharField(max_length=200)),
('tipo_erro', models.CharField(max_length=200)),
('id_projeto', models.CharField(max_length=200)),
('tipo_erro', models.CharField(choices=[('erro1', 'Falta de informação no projeto'), ('erro2', 'Campo preenchido incorretamente')], max_length=20)),
('id_projeto', models.CharField(max_length=50)),
('nome_usuario', models.CharField(max_length=200)),
],
),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 4.2.5 on 2023-10-07 01:15
# Generated by Django 4.2.5 on 2023-10-27 11:30

from django.db import migrations

Expand All @@ -10,204 +10,8 @@ class Migration(migrations.Migration):
]

operations = [
migrations.RenameField(
model_name='mapeamento',
old_name='AGENCIA_BANCARIA',
new_name='agencia_bancaria',
),
migrations.RenameField(
model_name='mapeamento',
old_name='BANCO',
new_name='banco',
),
migrations.RenameField(
model_name='mapeamento',
old_name='CATEGORIA_PROJETO',
new_name='categoria_projeto',
),
migrations.RenameField(
model_name='mapeamento',
old_name='CENTRO_CUSTO',
new_name='centro_custo',
),
migrations.RenameField(
model_name='mapeamento',
old_name='CODIGO',
new_name='codigo',
),
migrations.RenameField(
model_name='mapeamento',
old_name='CONTA_BANCARIA',
new_name='conta_bancaria',
),
migrations.RenameField(
model_name='mapeamento',
old_name='CONTA_CAIXA',
new_name='conta_caixa',
),
migrations.RenameField(
model_name='mapeamento',
old_name='COORDENADOR',
new_name='coordenador',
),
migrations.RenameField(
model_name='mapeamento',
old_name='CUSTO_OP',
new_name='custo_op',
),
migrations.RenameField(
model_name='mapeamento',
old_name='DATA_ASSINATURA',
new_name='data_assinatura',
),
migrations.RenameField(
model_name='mapeamento',
old_name='DATA_ENCERRAMENTO',
new_name='data_encerramento',
),
migrations.RenameField(
model_name='mapeamento',
old_name='DATA_VIGENCIA',
new_name='data_vigencia',
),
migrations.RenameField(
model_name='mapeamento',
old_name='DEPARTAMENTO',
new_name='departamento',
),
migrations.RenameField(
model_name='mapeamento',
old_name='GESTOR_RESP',
new_name='gestor_resp',
),
migrations.RenameField(
model_name='mapeamento',
old_name='GRUPO_GESTORES',
new_name='grupo_gestores',
),
migrations.RenameField(
model_name='mapeamento',
old_name='ID_COORDENADOR',
new_name='id_coordenador',
),
migrations.RenameField(
model_name='mapeamento',
old_name='ID_DEPARTAMENTO',
new_name='id_departamento',
),
migrations.RenameField(
model_name='mapeamento',
old_name='ID_FINANCIADOR',
new_name='id_financiador',
),
migrations.RenameField(
model_name='mapeamento',
old_name='ID_INSTITUICAO',
new_name='id_instituicao',
),
migrations.RenameField(
model_name='mapeamento',
old_name='ID_INSTITUICAO_EXECUTORA',
new_name='id_instituicao_executora',
),
migrations.RenameField(
model_name='mapeamento',
old_name='ID_TIPO',
new_name='id_tipo',
),
migrations.RenameField(
model_name='mapeamento',
old_name='IND_SUB_PROJETO',
new_name='ind_sub_projeto',
),
migrations.RenameField(
model_name='mapeamento',
old_name='INSTITUICAO_EXECUTORA',
new_name='instituicao_executora',
),
migrations.RenameField(
model_name='mapeamento',
old_name='NOME',
new_name='nome',
),
migrations.RenameField(
model_name='mapeamento',
old_name='NOME_FINANCIADOR',
new_name='nome_financiador',
),
migrations.RenameField(
model_name='mapeamento',
old_name='NOME_INSTITUICAO',
new_name='nome_instituicao',
),
migrations.RenameField(
model_name='mapeamento',
old_name='NOME_TP_CONTROLE_SALDO',
new_name='nome_tp_controle_saldo',
),
migrations.RenameField(
model_name='mapeamento',
old_name='OBJETIVOS',
new_name='objetivos',
),
migrations.RenameField(
model_name='mapeamento',
old_name='PROCEDIMENTO_COMPRA',
new_name='procedimento_compra',
),
migrations.RenameField(
model_name='mapeamento',
old_name='PROCESSO',
new_name='processo',
),
migrations.RenameField(
model_name='mapeamento',
old_name='PROJETO_MAE',
new_name='projeto_mae',
),
migrations.RenameField(
model_name='mapeamento',
old_name='PROPOSTA',
new_name='proposta',
),
migrations.RenameField(
model_name='mapeamento',
old_name='SALDO',
new_name='saldo',
),
migrations.RenameField(
model_name='mapeamento',
old_name='SITUACAO',
new_name='situacao',
),
migrations.RenameField(
model_name='mapeamento',
old_name='SUBPROCESSO',
new_name='subprocesso',
),
migrations.RenameField(
model_name='mapeamento',
old_name='TAB_DIARIAS',
new_name='tab_diarias',
),
migrations.RenameField(
model_name='mapeamento',
old_name='TAB_FRETE',
new_name='tab_frete',
),
migrations.RenameField(
model_name='mapeamento',
old_name='TIPO_CONTRATO',
new_name='tipo_contrato',
),
migrations.RenameField(
model_name='mapeamento',
old_name='TIPO_CUSTO_OP',
new_name='tipo_custo_op',
),
migrations.RenameField(
model_name='mapeamento',
old_name='VALOR_APROVADO',
new_name='valor_aprovado',
migrations.RenameModel(
old_name='MapeamentoConveniar',
new_name='Lancamento',
),
]
28 changes: 27 additions & 1 deletion project/app/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,33 @@ class Mapeamento(models.Model):
nome_instituicao = models.CharField(max_length=200)
id_instituicao_executora = models.CharField(max_length=200)
id_tipo = models.CharField(max_length=200)


class Lancamento(models.Model):
id_mapeamento = models.IntegerField(primary_key=True)
id_favorecido = models.CharField(max_length=200)
nome_favorecido = models.CharField(max_length=200)
cnpj_favorecido = models.CharField(max_length=200)
tipo_favorecido = models.CharField(max_length=200)
valor_lancado = models.CharField(max_length=200)
valor_pago = models.CharField(max_length=200)
data_vencimento = models.CharField(max_length=200)
id_status = models.CharField(max_length=200)
status_lancamento = models.CharField(max_length=200)
flag_receita = models.CharField(max_length=200)
data_baixa = models.CharField(max_length=200)
his_lancamento = models.CharField(max_length=200)
data_emissao = models.CharField(max_length=200)
num_doc_fin = models.CharField(max_length=200)
data_cria = models.CharField(max_length=200)
data_pagamento = models.CharField(max_length=200)
id_lancamento = models.CharField(max_length=200)
id_projeto = models.CharField(max_length=200)
id_rubrica = models.CharField(max_length=200)
nome_rubrica = models.CharField(max_length=200)
tipo_movimento = models.CharField(max_length=200)
id_tp_lancamento = models.CharField(max_length=200)
tipo_lancamento = models.CharField(max_length=200)

class Template(models.Model):
nome_template = models.CharField(max_length=200)
endereco_template = models.CharField(max_length=200)
Expand Down
Loading