{% extends "base.html" %} {% block title %}Devolução de Nota ao Fornecedor{% endblock %} {% block content %}
| Número | Série | Fornecedor | Data | Valor | Chave de Acesso | Status Dev. | Ações | |
|---|---|---|---|---|---|---|---|---|
| {{ nota.serie or '1' }} | {{ nota.data_emissao.strftime('%d/%m/%Y') if nota.data_emissao else '-' }} | R$ {{ "%.2f"|format(nota.valor_total or 0) }} | {{ (nota.chave_acesso[:20] + '...') if nota.chave_acesso else '-' }} | {% if nota.devolucoes|length > 0 %} {% set total_dev = nota.devolucoes|sum(attribute='valor_total') %} {% if total_dev >= nota.valor_total %} Total {% else %} Parcial {% endif %} {% else %} Não devolvida {% endif %} | ||||
| Nenhuma nota de entrada encontrada. Cadastre notas de entrada para fazer devoluções. | ||||||||