realizados cambios (también algo que faltaba de lo del importe fijo precio min)

This commit is contained in:
jaimejimenezortega
2024-04-22 20:29:47 +02:00
parent 9505268763
commit 0c9a8ac85e
5 changed files with 1760 additions and 10 deletions

View File

@ -80,9 +80,9 @@
<th>ID</th>
<th><?= lang('TarifaEncuadernacionLineas.dimensiones') ?></th>
<th><?= lang('TarifaEncuadernacionLineas.paginasMin') ?></th>
<th><?= lang('TarifaEncuadernacionLineas.precioMax') ?></th>
<th><?= lang('TarifaEncuadernacionLineas.paginasMax') ?></th>
<th><?= lang('TarifaEncuadernacionLineas.precioMin') ?></th>
<th><?= lang('TarifaEncuadernacionLineas.paginasMax') ?></th>
<th><?= lang('TarifaEncuadernacionLineas.precioMax') ?></th>
<th><?= lang('TarifaEncuadernacionLineas.margen') ?></th>
<th style="min-width:100px"></th>
</tr>
@ -472,11 +472,11 @@
{
name: "paginas_libro_min"
}, {
name: "precio_max"
name: "precio_min"
}, {
name: "paginas_libro_max"
}, {
name: "precio_min"
name: "precio_max"
}, {
name: "margen"
}, {

View File

@ -17,8 +17,6 @@
<thead>
<tr>
<th><?= lang('Tarifaencuadernacion.nombre') ?></th>
<th><?= lang('Tarifaencuadernacion.precioMin') ?></th>
<th><?= lang('Tarifaencuadernacion.importeFijo') ?></th>
<th><?= lang('Tarifaencuadernacion.mostrar_en_presupuesto') ?></th>
<th><?= lang('Tarifaencuadernacion.tipo_encuadernacion') ?></th>
<th><?= lang('Tarifaencuadernacion.servicio_encuadernacion') ?></th>
@ -90,8 +88,6 @@
],
columns : [
{ 'data': 'nombre' },
{ 'data': 'precio_min' },
{ 'data': 'importe_fijo' },
{ 'data': 'mostrar_en_presupuesto' },
{ 'data': 'tipo_encuadernacion' },
{ 'data': 'servicio_encuadernacion' },
@ -100,7 +96,7 @@
});
theTable.on( 'draw.dt', function () {
const boolCols = [3,4,5];
const boolCols = [1,2,3];
for (let coln of boolCols) {
theTable.column(coln, { page: 'current' }).nodes().each( function (cell, i) {
cell.innerHTML = cell.innerHTML == '1' ? '<i class="ti ti-check"></i>' : '';