diff --git a/tienda_ilusion/don_confiao/static/js/add_line.js b/tienda_ilusion/don_confiao/static/js/add_line.js
index aed4bec..bfb38ed 100644
--- a/tienda_ilusion/don_confiao/static/js/add_line.js
+++ b/tienda_ilusion/don_confiao/static/js/add_line.js
@@ -1,7 +1,7 @@
document.addEventListener('DOMContentLoaded', function(){
var button = document.getElementById('add_line');
var formContainer = document.getElementById('formset-container');
- var totalForms = document.getElementById('id_form-TOTAL_FORMS');
+ var totalForms = document.getElementById('id_saleline_set-TOTAL_FORMS');
button.addEventListener('click', function(){
// Clonar un formulario vacío
var newForm = formContainer.querySelector('.form-container').cloneNode(true);
diff --git a/tienda_ilusion/don_confiao/templates/don_confiao/purchase.html b/tienda_ilusion/don_confiao/templates/don_confiao/purchase.html
index 7f6c8d9..d174357 100644
--- a/tienda_ilusion/don_confiao/templates/don_confiao/purchase.html
+++ b/tienda_ilusion/don_confiao/templates/don_confiao/purchase.html
@@ -13,7 +13,7 @@
{% endfor %}
-
+