DANFE NFC-e (Prévia)
{{ empresa.razao_social if empresa else 'CAPESYSTEM' }}
{% if empresa %}
CNPJ {{ empresa.cnpj or '-' }}
{{ empresa.logradouro or '' }} {{ empresa.numero or '' }} - {{ empresa.municipio or '' }}/{{ empresa.uf or '' }}
{% endif %}
Ambiente: {{ (config_fiscal.ambiente_nfce if config_fiscal and config_fiscal.ambiente_nfce else 'Homologação')|upper }}
Chave de acesso:
{{ chave_preview }}
Número: {{ venda.numero_pedido or venda.id }} · Série {{ config_fiscal.serie_nfce if config_fiscal and config_fiscal.serie_nfce else '1' }}
Emissão: {{ datetime.now().strftime('%d/%m/%Y %H:%M') }}
Destinatário: {{ venda.get_cliente_nome() }}
Documento: Consumidor final
| Item |
Qtd |
Vlr Unit. |
Total |
{% for item in venda.itens %}
| {{ item.descricao or (item.produto.nome if item.produto else 'Produto') }} |
{{ '%.3f'|format(item.quantidade) }} |
{{ '%.2f'|format(item.valor_unitario) }} |
{{ '%.2f'|format(item.valor_total) }} |
{% endfor %}
{% if venda.observacoes %}
Observações
{{ venda.observacoes }}
{% endif %}
Subtotal{{ 'R$ %.2f'|format(subtotal_venda) }}
Descontos{{ 'R$ %.2f'|format(desconto_valor) }}
Acréscimos{{ 'R$ %.2f'|format(acrescimo_valor) }}
Valor total{{ 'R$ %.2f'|format(valor_total) }}
Pago{{ 'R$ %.2f'|format(total_recebido) }}
Troco{{ 'R$ %.2f'|format(total_troco) }}
{% if pagamentos %}
Pagamentos
{% for pg in pagamentos %}
| {{ pg.forma_nome }} |
{{ 'R$ %.2f'|format(pg.valor) }} |
{{ 'R$ %.2f'|format(pg.valor_recebido or pg.valor) }} |
{% set detalhe_pagamento = pg.detalhe_cupom_pagamento if pg.detalhe_cupom_pagamento is defined else '' %}
{% if detalhe_pagamento %}
| ↳ {{ detalhe_pagamento }} |
{% endif %}
{% endfor %}
{% endif %}
Consulta via QR Code
QR Code será gerado ao concluir a NFC-e
URL de consulta: https://www.sefaz.xx.gov.br/nfce/consulta
Código CSC/ID CSC devem ser preenchidos nas configurações fiscais.
Documento sem valor fiscal. Utilize apenas para validação visual antes do envio real da NFC-e.