{% extends "base.html" %} {% block title %}Status da Licença - CapeServer{% endblock %} {% block extra_css %} {% endblock %} {% block content %} {% set pagamento_confirmado = licenca_pagamento_confirmado|default({}, true) %} {% set ocultar_valores_cliente = financeiro.ocultar_valores_cliente if financeiro else false %} {% set mensagem_ocultacao_valores = (financeiro.mensagem_ocultacao_valores if financeiro and financeiro.mensagem_ocultacao_valores else 'Cobrança administrada pela revenda. Consulte sua revenda para valores e formas de pagamento.') %}
O CapeServer reconheceu a baixa da cobrança automaticamente e já deixou a licença pronta para continuar operando.
{% elif licenca.is_ativo %}Ambiente validado e pronto para operar.
{% elif licenca.is_expirado %}Renove a licença para continuar usando todos os recursos.
{% else %}Acompanhe o prazo restante e ative quando quiser.
{% endif %}{{ licenca.serial_maquina or '-' }}
{{ licenca.serial or '-' }}
{% else %}
{{ licenca.data_ativacao[:19] if licenca.data_ativacao else 'Pendente' }}
{% endif %}
{% if licenca.is_ativo and licenca.data_ativacao %}
Ativada em {{ licenca.data_ativacao[:19] }}
{% endif %}
{{ pagamento_confirmado.body or 'Recebemos a confirmação da cobrança no CapeServer.' }}
{% if pagamento_confirmado.paid_at_text %}Confirmado em {{ pagamento_confirmado.paid_at_text }}{% endif %}QR Code indisponível no momento.
{% endif %}Código PIX indisponível no momento.
{% endif %}Esta cobrança está disponível apenas em PIX no momento. O Master não retornou linha digitável de boleto para este título.
{% if link_pagamento %} {% endif %} {% else %}Sem boleto ativo para esta situação financeira.
{% endif %}| Tipo | {% if licenca.is_ativo %} Licenciado {% elif licenca.is_expirado %} Expirado {% else %} Trial D15 {% endif %} |
|---|---|
| Dias restantes | {{ licenca.dias_restantes }} dias |
| Expira em | {{ licenca.data_expiracao[:10] if licenca.data_expiracao else '-' }} |
| Data de instalação | {{ licenca.data_instalacao[:10] if licenca.data_instalacao else '-' }} |
| Chave de ativação | {{ licenca.serial or '-' }} |
| Serial da máquina | {{ licenca.serial_maquina or '-' }} |
| Revenda | {{ licenca.revenda_nome or 'Cape Sistemas' }} |
| Data de ativação | {{ licenca.data_ativacao[:19] if licenca.data_ativacao else '-' }} |
| Descrição | Status | Vencimento | Pagamento | {% if not ocultar_valores_cliente %}Valor | {% endif %}
|---|---|---|---|---|
| {{ item.descricao }} | {{ item.status }} | {{ item.data_vencimento.strftime('%d/%m/%Y %H:%M') if item.data_vencimento else '-' }} | {{ item.data_pagamento.strftime('%d/%m/%Y %H:%M') if item.data_pagamento else '-' }} | {% if not ocultar_valores_cliente %}R$ {{ ('%.2f'|format(item.valor)).replace('.', ',') if item.valor is not none else '-' }} | {% endif %}