{% import 'macros/empresa.html' as empresa_ui %} {% macro moeda(valor) -%} R$ {{ "{:,.2f}".format(valor or 0).replace(",", "X").replace(".", ",").replace("X", ".") }} {%- endmacro %} {% macro numero(valor) -%} {{ "{:,.3f}".format(valor or 0).replace(",", "X").replace(".", ",").replace("X", ".").rstrip("0").rstrip(",") }} {%- endmacro %}
CNPJ: {{ empresa.cnpj if empresa else '-' }}
Emitido em: {{ now.strftime('%d/%m/%Y %H:%M') }}
Período: {{ data_inicio_fmt }} a {{ data_fim_fmt }}
Período: {{ data_inicio_fmt }} a {{ data_fim_fmt }}{% if operador_filtro_nome %} · Operador: {{ operador_filtro_nome }}{% endif %}
| Operador | Código | Qtd. Itens | Vendas Distintas | Valor Total (R$) | % do Total |
|---|---|---|---|---|---|
| {{ op.operador_nome }} | {{ op.operador_codigo or '-' }} | {{ op.qtd_itens }} | {{ op.qtd_vendas_distintas }} | {{ moeda(op.valor_total) }} | {{ "{:.1f}".format(pct) }}% |
| TOTAL GERAL | {{ total_itens }} | {{ moeda(total_valor_itens) }} | 100% |
| Venda # | Data | Produto | Qtd. | Unit. (R$) | Total (R$) |
|---|---|---|---|---|---|
| {{ it.numero_pedido }} | {{ it.data_venda.strftime('%d/%m/%Y') if it.data_venda and it.data_venda.strftime is defined else it.data_venda or '-' }} | {{ it.produto_nome }} | {{ numero(it.quantidade) }} | {{ moeda(it.valor_unitario) }} | {{ moeda(it.valor_item) }} |
| Total {{ op.operador_nome }} | {{ moeda(ns.total_op) }} | ||||