ya se filtra bien

This commit is contained in:
2024-06-07 16:47:11 +02:00
parent aac17468c3
commit 38abbe22a7
3 changed files with 18 additions and 14 deletions

View File

@ -211,7 +211,13 @@ theTable = $('#tableOfPresupuestos').DataTable({
orderable: false,
searchable: false,
targets: [lastColNr]
}
},
<?php if (auth()->user()->inGroup('cliente-admin') || auth()->user()->inGroup('cliente-editor')): ?>
{
target: 3,
visible: false
}
<?php endif; ?>
],
columns : [
@ -264,9 +270,9 @@ theTable = $('#tableOfPresupuestos').DataTable({
}
},
},
<?php if ($clienteId == 0): ?>
{ 'data': 'cliente' },
<?php endif; ?>
{ 'data': 'cliente'},
{ 'data': 'titulo' },
{ 'data': 'paginas' },
{ 'data': 'tirada' },