VENDA: {{ venda.numero_pedido }}
Data Venda:
{{ venda.data_venda.strftime('%d/%m/%Y') }}
Cliente:
{{ venda.get_cliente_nome() }}
{% if venda.empresa %}
Empresa:
{{ venda.empresa.razao_social }}
{% endif %}
RECEBIMENTO
Data:
{% if venda.data_recebimento %}{{ venda.data_recebimento.strftime('%d/%m/%Y %H:%M') }}{% else %}-{% endif %}
Recebido por:
{{ venda.recebido_por.nome if venda.recebido_por else current_user.nome }}
Forma Pgto:
{{ movimento.forma_pagamento.upper() if movimento and movimento.forma_pagamento else 'DINHEIRO' }}
{% if movimento and movimento.observacoes %}
Obs:
{{ movimento.observacoes }}
{% endif %}
ITENS DA VENDA
{% for item in venda.itens %}
{{ item.produto.descricao[:30] if item.produto else (item.descricao[:30] if item.descricao else 'N/A') }}
{{ item.quantidade }} x R$ {{ "%.2f"|format(item.valor_unitario) }}
R$ {{ "%.2f"|format(item.valor_total) }}
{% endfor %}
VALOR RECEBIDO
R$ {{ "%.2f"|format(venda.valor_total) }}
{% if movimento and movimento.forma_pagamento == 'boleto' %}
AUTORIZAÇÃO FATURAMENTO
Autorizo emissão de boleto(s)
_____________________________
Assinatura Cliente
{% endif %}