Modelar cuadre de caja #10 #12

Merged
mono merged 17 commits from modelar_cuadre_de_caja_#10 into main 2024-07-27 13:42:05 -05:00
2 changed files with 27 additions and 2 deletions
Showing only changes of commit f9ee2ad9c2 - Show all commits

View File

@ -1,2 +1,28 @@
<!doctype html>
{{ summary.total }}
{% if summary.total %}
<div class="reconciliate_jar summary">
<h2>Pagos No reconciliados</h2>
<table>
<thead>
<th><td>Fecha</td>Monto</th>
{% for payment in summary.payments %}
<tr><td>payment.date_time</td><td>payment.amount</td></tr>
{% endfor %}
</thead>
{{ summary.total }}
</div>
<form method="POST">
<table style="border: solid 1px blue; margin: 10px">
{% csrf_token %}
{{ form.as_table }}
</table>
<br/><button name="form" type="submit" >Comprar</button>
</form>
{% else %}
<div class="reconciliate_jar information noform">
<h2>No hay pagos registrados.</h2>
</div>
{% endif %}

View File

@ -76,7 +76,6 @@ def reconciliate_jar(request):
form = ReconciliationJarForm()
summary = Payment.get_reconciliation_jar_summary()
# raise Exception(Payment.get_reconciliation_jar_summary().payments)
return render(
request,
"don_confiao/reconciliate_jar.html",