Skip to content

Commit

Permalink
Edita etiqueta de protocolo (#1744)
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorFabreF authored and edwardoliveira committed Mar 9, 2018
1 parent b9afef9 commit 219cb89
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions sapl/relatorios/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -944,16 +944,22 @@ def get_etiqueta_protocolos(prots):

dic['nom_autor'] = str(p.autor or ' ')

dic['num_materia'] = ''
for materia in MateriaLegislativa.objects.filter(
numero_protocolo=p.numero, ano=p.ano):
dic['num_materia'] = materia.tipo.sigla + ' ' + str(materia.numero) + '/' + str(materia.ano)


dic['natureza'] = ''
if p.tipo_processo == 0:
dic['natureza'] = 'Administrativo'
if p.tipo_processo == 1:
dic['natureza'] = 'Legislativo'
if dic['num_materia']:
dic['natureza'] = dic['num_materia']
else:
dic['natureza'] = 'Legislativo'


dic['num_materia'] = ''
for materia in MateriaLegislativa.objects.filter(
numero_protocolo=p.numero, ano=p.ano):
dic['num_materia'] = str(materia)

dic['num_documento'] = ''
for documento in DocumentoAdministrativo.objects.filter(
Expand Down

0 comments on commit 219cb89

Please sign in to comment.