corregido el problema que no cogia la rotativa al mostrar los papeles

This commit is contained in:
2025-01-20 12:58:42 +01:00
parent f4ef65ab78
commit 398cb23f11

View File

@ -253,7 +253,7 @@
url: '<?= route_to('updateMaquinaPapelOnTarifasChange') ?>',
data: {
maquina_id: id,
isRotativa: isRotativa.watch,
isRotativa: ()=>{ return $('#isRotativa').prop('checked')?1:0},
isInkjet: $('#isTinta').prop('checked'),
<?= csrf_token() ?? "token" ?>: <?= csrf_token() ?>v,
},
@ -435,11 +435,7 @@
yeniden(json.<?= csrf_token() ?>);
if(json.error){
document.getElementById("check_" + json.data.papel_impresion_id).checked = false;
Swal.fire({
icon: 'error',
title: '<?= lang('Basic.global.sweet.error_tittle') ?>',
text: json.error,
});
popErrorAlert(json.error, 'sk-alert-2');
}
});
@ -543,7 +539,7 @@
url: '<?= route_to('dataTableOfMaquinasPapelesImpresion') ?>',
data: function (d) {
d.maquina_id = id;
d.isRotativa = isRotativa.watch;
d.isRotativa = $('#isRotativa').prop('checked')?1:0;
d.webguard_token = '<?= csrf_hash() ?>';
},
method: 'POST',