{% extends 'base.html' %} {% block title %}Comanda #{{ comanda.id }} - Sistema de Comandas{% endblock %} {% block content %}

Comanda #{{ comanda.id }}

{% if comanda.status == 'aberta' %} Adicionar Item Fechar Comanda {% endif %} Voltar

Informações da Comanda

Mesa: {{ comanda.mesa.numero }}

Garçom: {{ comanda.garcom.get_full_name|default:comanda.garcom.username }}

Status: {{ comanda.get_status_display }}

Abertura: {{ comanda.abertura|date:"d/m/Y H:i" }}

{% if comanda.fechamento %}

Fechamento: {{ comanda.fechamento|date:"d/m/Y H:i" }}

{% endif %} {% if comanda.observacoes %}

Observações: {{ comanda.observacoes }}

{% endif %}

Resumo

Total de Itens: {{ itens.count }}

Total Geral: R$ {{ comanda.total|floatformat:2 }}

{% if comanda.arquivo_gerado %}

Arquivo: {{ comanda.arquivo_gerado }}

{% endif %}

Itens da Comanda

{% if comanda.status == 'aberta' %} {% endif %} {% for item in itens %} {% if comanda.status == 'aberta' %} {% endif %} {% empty %} {% endfor %}
Produto Quantidade Preço Unit. Subtotal ObservaçõesAções
{{ item.produto.nome }} {{ item.quantidade }} R$ {{ item.preco_unitario|floatformat:2 }} R$ {{ item.subtotal|floatformat:2 }} {{ item.observacoes|default:"-" }} Remover
Nenhum item adicionado.
{% endblock %}