{% extends "base.html" %} {% block title %}Relatório de Entradas de Mercadorias{% endblock %} {% block content %}
| Fornecedor | Qtd. Entradas | Valor Total | Ticket Médio |
|---|---|---|---|
| {{ r.fornecedor }} | {{ r.qtd }} | R$ {{ "%.2f"|format(r.valor) }} | R$ {{ "%.2f"|format(r.valor / r.qtd if r.qtd > 0 else 0) }} |
| Nº | Data | Documento | Origem | Fornecedor | Usuário | Itens | Valor Produtos | Frete | Total | Status | Ações | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| #{{ e.id }} | {{ e.data_entrada.strftime('%d/%m/%Y') if e.data_entrada else '-' }} | {% if e.numero_nota %} {{ e.numero_nota }} {% if e.serie %}Série {{ e.serie }}{% endif %} {% else %} - {% endif %} | {{ e.origem_registro_lista }} | {% if e.nome_fornecedor_lista %} {% set fornecedor_label = ((e.fornecedor_codigo_lista ~ ' - ') if e.fornecedor_codigo_lista else '') ~ e.nome_fornecedor_lista %} {{ fornecedor_label[:35] }}{% if fornecedor_label|length > 35 %}...{% endif %} {% else %} Não informado {% endif %} | {{ e.usuario_lancamento_lista }} | {{ e.itens.all()|length if e.itens else 0 }} | R$ {{ "%.2f"|format(e.valor_produtos or 0) }} | {% if e.valor_frete and e.valor_frete > 0 %} R$ {{ "%.2f"|format(e.valor_frete) }} {% else %} - {% endif %} | R$ {{ "%.2f"|format(e.valor_total or 0) }} | {% if e.status == 'PENDENTE' %} Pendente {% elif e.status == 'CONFERIDO' %} Conferido {% elif e.status == 'IMPORTADO' %} Importado {% elif e.status == 'FINALIZADO' %} Finalizado {% elif e.status == 'CANCELADO' %} Cancelado {% else %} {{ e.status or 'Indefinido' }} {% endif %} | |||||||||||
Itens da Entrada{% if e.itens %}
Nenhum item cadastrado {% endif %} |
|||||||||||||||||||||
| TOTAIS: | R$ {{ "%.2f"|format(soma_produtos) }} | R$ {{ "%.2f"|format(soma_frete) }} | R$ {{ "%.2f"|format(valor_total) }} | ||||||||||||||||||
| Nº | Data | Documento | Origem | Fornecedor | Usuário | Itens | Valor Produtos | Frete | Total | Status | Ações |
|---|---|---|---|---|---|---|---|---|---|---|---|
| #{{ n.id }} | {{ (n.data_entrada or n.data_emissao).strftime('%d/%m/%Y') if (n.data_entrada or n.data_emissao) else '-' }} | {% if n.numero_nota %} {{ n.numero_nota }} {% if n.serie %}Série {{ n.serie }}{% endif %} {% else %} - {% endif %} | {{ n.origem_registro_lista }} | {% if n.nome_fornecedor_lista %} {% set fornecedor_label = ((n.fornecedor_codigo_lista ~ ' - ') if n.fornecedor_codigo_lista else '') ~ n.nome_fornecedor_lista %} {{ fornecedor_label[:35] }}{% if fornecedor_label|length > 35 %}...{% endif %} {% else %} Não informado {% endif %} | {{ n.usuario_lancamento_lista }} | {{ n.total_itens_lista or 0 }} | R$ {{ "%.2f"|format(n.valor_produtos_lista or 0) }} | {% if n.valor_frete_lista and n.valor_frete_lista > 0 %} R$ {{ "%.2f"|format(n.valor_frete_lista) }} {% else %} - {% endif %} | R$ {{ "%.2f"|format(n.valor_total_lista or 0) }} | {% if n.finalizada %} Finalizada {% elif n.status == 'cancelada' %} Cancelada {% else %} Pendente {% endif %} |