view: calculando resumen de compra.

This commit is contained in:
2024-07-27 17:12:52 -05:00
parent 599b62771c
commit b4b6144611
5 changed files with 77 additions and 5 deletions

View File

@@ -1,8 +1,8 @@
<!doctype html>
{% load static %}
<form method="POST">
<form id="complete_form_purchase" method="POST">
{% csrf_token %}
{{ sale_form}}
{{ sale_form }}
{{ linea_formset.management_form }}
<div id="formset-container">
{% for form in linea_formset %}
@@ -13,7 +13,9 @@
</div>
{% endfor %}
</div>
{{ summary_form }}
<button id="add_line" type="button" onclick="add_line">Añadir Linea</button>
<br/><button name="form" type="submit" >Comprar</button>
<script src="{% static 'js/add_line.js' %}"></script>
<script src="{% static 'js/sale_summary.js' %}"></script>
</form>