{% import 'macros/empresa.html' as empresa_ui %}
CNPJ: {{ empresa.cnpj or '-' }}
{% if empresa.endereco %}{{ empresa.endereco }}{% if empresa.numero %}, {{ empresa.numero }}{% endif %}{% if empresa.cidade %} — {{ empresa.cidade }}/{{ empresa.uf }}{% endif %}
{% endif %}{{ now.strftime('%d/%m/%Y %H:%M') }}
{% if entrada.data_entrada %}Data entrada: {{ entrada.data_entrada.strftime('%d/%m/%Y') }}
{% endif %}NF {{ entrada.tipo_documento or 'NF-e' }} n° {{ entrada.numero_nota }}{% if entrada.serie and entrada.serie != '0' %} — Série {{ entrada.serie }}{% endif %}
{% endif %} {% set status_class, status_text = entrada.status_display %} {{ status_text }}| # | Descrição | UN | Qtd | Custo Unit. | Custo Total | Produto Vinc. |
|---|---|---|---|---|---|---|
| {{ item.numero_item }} |
{{ item.descricao }}
NCM: {{ item.ncm or '-' }} | CFOP: {{ item.cfop or '-' }}{% if item.ean %} | EAN: {{ item.ean }}{% endif %}
|
{{ item.unidade }} | {{ "%.3f"|format(item.quantidade) }} | {{ "%.2f"|format(item.custo_unitario) }} | {{ "%.2f"|format(item.custo_total) }} | {% if item.produto %} {{ item.produto.nome[:18] }}{% if item.produto.nome|length > 18 %}...{% endif %} {% else %} — {% endif %} |