feat: update status comanda for PAYING

This commit is contained in:
2024-12-20 10:11:50 -03:00
parent dfb7418e7a
commit aed3b906a4
9 changed files with 37 additions and 7 deletions

View File

@@ -21,8 +21,24 @@ Detalhes {{comanda.name}}
<body>
<div class="grid-container" >
<div>
<button class="primary" id="openModal">Adicionar Produto</button>
<button id="pagarComanda">Pagar Comanda</button>
<button class="primary" id="openModal"
{% if comanda.status != 'OPEN'%}
disabled
{% endif %}
>Adicionar Produto</button>
<button id="pagarComanda" hx-get="{% url 'closeComanda' comanda.id %} " hx-trigger="click"
{% if comanda.status != 'OPEN' %}
style="display: none;"
{% endif %}
>Fechar Comanda</button>
<button id="pagarComanda"
{% if comanda.status != 'PAYING' %}
style="display: none;"
{% endif %}
>Receber</button>
<button class="button" id="imprimirFichas" onclick="imprimirFichas()">Imprimir Fichas</button>