{% extends "base.html" %} {% block title %}Crédito Loja #{{ credito.id }} - CapeSystem{% endblock %} {% block content %}
{{ credito.pessoa.cpf_cnpj }}
{% endif %}{% if credito.tipo_origem == 'devolucao' %} Devolução {% elif credito.tipo_origem == 'bonificacao' %} Bonificação {% elif credito.tipo_origem == 'cortesia' %} Cortesia {% elif credito.tipo_origem == 'manual' %} Manual {% else %} {{ credito.tipo_origem or 'N/A' }} {% endif %}
{{ credito.data_validade.strftime('%d/%m/%Y') if credito.data_validade else 'Sem validade' }}
{{ credito.usuario.username if credito.usuario else 'Sistema' }}
{{ credito.observacoes }}
| Data | Valor | Venda | Usuário | Observação |
|---|---|---|---|---|
| {{ u.data_utilizacao.strftime('%d/%m/%Y %H:%M') if u.data_utilizacao else '-' }} | R$ {{ "%.2f"|format(u.valor) }} | {% if u.venda_id %} Venda #{{ u.venda_id }} {% else %} - {% endif %} | {{ u.usuario.username if u.usuario else '-' }} | {{ u.observacao or '-' }} |
{{ credito.pessoa.cpf_cnpj }}
{% endif %} {% if credito.pessoa.telefone %}{{ credito.pessoa.telefone }}
{% endif %} {% if credito.pessoa.email %}{{ credito.pessoa.email }}
{% endif %}