{% extends "base.html" %} {% block title %}Melhor Envio{% endblock %} {% block content %} {% set cotacao_aplicada = melhor_envio_cotacao_aplicada or {} %} {% set cotacao_aplicada_opcao = cotacao_aplicada.get('selected_option') if cotacao_aplicada else None %} {% set cotacao_aplicada_id = cotacao_aplicada_opcao.get('id') if cotacao_aplicada_opcao else None %} {% set checkout_atual = melhor_envio_checkout_atual or {} %} {% set tracking_atual = melhor_envio_tracking_atual or {} %}
Fase inicial da implantação do frete para vendas online. Nesta tela o CapeServer já separa o que está apto para cotação, o que deve seguir por entrega local e o que ainda precisa de cliente/endereço.
| Pedido | Cliente | Pagamento | Rota sugerida | Endereço | Valor | Ações |
|---|---|---|---|---|---|---|
|
#{{ registro.numero_pedido }}
{{ registro.data_venda_fmt }}
|
{{ registro.cliente_nome }}
{{ registro.cidade }}{% if registro.bairro %} • {{ registro.bairro }}{% endif %}
|
{{ registro.pagamento_descricao }}
{{ registro.checkout_status_label }}
{{ registro.financeiro_status_label }}
|
{% if registro.entrega_local_sugerida %} Entrega local pode ser mais adequada {% else %} Cotar no Melhor Envio {% endif %} |
{{ registro.endereco_resumo }}
|
R$ {{ '%.2f'|format(registro.valor_total or 0) }} |
{{ melhor_envio_diagnostico.payload_preview|tojson(indent=2) }}
{{ melhor_envio_checkout_diagnostico.payload_preview|tojson(indent=2) }}
| Serviço | Transportadora | Preço | Aplicar |
|---|---|---|---|
|
{{ opcao.name }}
{% if opcao.delivery_time %}
Prazo: {{ opcao.delivery_time }}
{% endif %}
{% if opcao.error %}
{{ opcao.error }}
{% endif %}
|
{{ opcao.company_name }} | R$ {{ '%.2f'|format(opcao.price or 0) }} | {% if opcao.error %} Indisponível {% else %} {% endif %} |