Feat(AddSaleLineButton): Sale Line Button

This commit is contained in:
2024-07-13 11:01:11 -05:00
parent a63ae668a2
commit 3e35807a87
2 changed files with 2 additions and 2 deletions

View File

@@ -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);