corregido bug que no permitia guardar presupuesto

This commit is contained in:
75134972k
2024-03-13 14:29:39 +01:00
parent b645fb030c
commit 231a0c7cb2
16 changed files with 71 additions and 131 deletions

View File

@ -718,14 +718,7 @@ $(document).on('click', '.btn-remove', function(e) {
}
});
const url = window.location.href;
const url_parts = url.split('/');
if(url_parts[url_parts.length-2] == 'edit'){
id = url_parts[url_parts.length-1];
}
else{
id = -1;
}
<?=$this->endSection() ?>

View File

@ -79,12 +79,11 @@
const url = window.location.href;
const url_parts = url.split('/');
let id = -1;
if(url_parts[url_parts.length-2] == 'edit'){
id = url_parts[url_parts.length-1];
}
else{
id = -1;
}
const actionBtns_lineas = function(data) {
return `