Browse Source

Fix #1838 (#1847)

pull/1894/head
Talitha Pumar 7 years ago
committed by Edward
parent
commit
5593435d73
  1. 6
      sapl/relatorios/templates/pdf_etiqueta_protocolo_gerar.py
  2. 5
      sapl/relatorios/views.py

6
sapl/relatorios/templates/pdf_etiqueta_protocolo_gerar.py

@ -96,7 +96,11 @@ def protocolos(lst_protocolos, dic_cabecalho):
tmp_data += '\t\t<para style="P2"><b>' + \
dic['data'] + '</b></para>\n'
tmp_data += '\t\t<para style="P2"><b>' + \
dic['natureza'] + '</b></para>\n'
dic['natureza']
if dic['ident_processo']:
tmp_data += ' - ' + dic['ident_processo'] + '</b></para>\n'
else:
tmp_data += '</b></para>\n'
tmp_data += '\t</story>\n'
return tmp_data

5
sapl/relatorios/views.py

@ -955,10 +955,7 @@ def get_etiqueta_protocolos(prots):
if p.tipo_processo == 0:
dic['natureza'] = 'Administrativo'
if p.tipo_processo == 1:
if dic['num_materia']:
dic['natureza'] = dic['num_materia']
else:
dic['natureza'] = 'Legislativo'
dic['natureza'] = 'Legislativo'
dic['num_documento'] = ''
for documento in DocumentoAdministrativo.objects.filter(

Loading…
Cancel
Save