Browse Source

Fix #2054 (#2056)

pull/2067/head
Victor Fabre 7 years ago
committed by Edward
parent
commit
79efc588a4
  1. 3
      sapl/relatorios/views.py
  2. 18
      sapl/templates/protocoloadm/comprovante.html

3
sapl/relatorios/views.py

@ -963,7 +963,8 @@ def get_etiqueta_protocolos(prots):
dic['num_documento'] = '' dic['num_documento'] = ''
for documento in DocumentoAdministrativo.objects.filter( for documento in DocumentoAdministrativo.objects.filter(
protocolo=p): protocolo=p):
dic['num_documento'] = str(documento) dic['num_documento'] = documento.tipo.sigla + ' ' + \
str(documento.numero) + '/' + str(documento.ano)
dic['ident_processo'] = dic['num_materia'] or dic['num_documento'] dic['ident_processo'] = dic['num_materia'] or dic['num_documento']

18
sapl/templates/protocoloadm/comprovante.html

@ -70,15 +70,15 @@
<th>Autor</th> <th>Autor</th>
<td>{{ protocolo.autor }}</td> <td>{{ protocolo.autor }}</td>
</tr> </tr>
{% else %} {% else %}
<tr> <tr>
<th>Assunto</th> <th>Assunto</th>
<td>{{ protocolo.assunto_ementa }}</td> <td>{{ protocolo.assunto_ementa }}</td>
</tr> </tr>
<tr> <tr>
<th>Interessado</th> <th>Interessado</th>
<td>{{ protocolo.interessado }}</td> <td>{{ protocolo.interessado }}</td>
</tr> </tr>
{% endif %} {% endif %}
<tr> <tr>
<th>Natureza</th> <th>Natureza</th>

Loading…
Cancel
Save