mirror of
https://github.com/welton89/RRBEC.git
synced 2026-04-05 13:35:42 +00:00
feat: pagamento parcial comanda part1
This commit is contained in:
@@ -117,14 +117,24 @@ Detalhes {{comanda.name}}
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% for parcial in parcials %}
|
||||
<tr>
|
||||
<td style="text-align: left; color: chartreuse;">{{parcial.datetime}}</td>
|
||||
<td style="text-align: left; color: chartreuse;">R$ -{{parcial.value}}</td>
|
||||
<td style="text-align: left; color: chartreuse;">{{parcial.description}}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
|
||||
|
||||
<tfoot>
|
||||
<tr>
|
||||
<td colspan="2" style="text-align: center;">Total R$ {{total}}</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
</table>
|
||||
|
||||
|
||||
<button class="btn-secondary" onclick="modal_payment_parcial()">Pagamento Parcial</button>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -186,6 +196,24 @@ Detalhes {{comanda.name}}
|
||||
</dialog>
|
||||
|
||||
|
||||
<dialog id="payment-parcial" style="display: none;" >
|
||||
<article>
|
||||
<h2>Pagamento Parcial</h2>
|
||||
<form method="post" action="{% url 'paymentParcial' comanda.id %} ">
|
||||
{% csrf_token %}
|
||||
<input id="value-parcial" name="value-parcial" type="number" step="0.01" placeholder="Valor">
|
||||
<input id="name-parcial" name="name-parcial" type="text" placeholder="Nome" >
|
||||
<footer>
|
||||
<div style="display: flex;gap: 10px;">
|
||||
<button type="submit" class="btn-secondary" onclick="backPage()">Receber</button>
|
||||
<button type="button" class="btn-cancel" onclick="close_modal_payment_parcial()">Cancelar</button>
|
||||
</div>
|
||||
</footer>
|
||||
</form>
|
||||
</article>
|
||||
</dialog>
|
||||
|
||||
|
||||
<dialog id="Modal-alter-comanda">
|
||||
<article >
|
||||
<form id="form-comanda" method="post" action="{% url 'editComanda' %}">
|
||||
|
||||
Reference in New Issue
Block a user