add mostrar_en_presupuesto_cliente field in models,entities and datatables in list views

This commit is contained in:
amazuecos
2025-02-16 20:10:27 +00:00
parent 8b03dc6de6
commit 71b8b2db13
12 changed files with 23 additions and 5 deletions

View File

@ -21,6 +21,7 @@
<th><?= lang('Tarifaacabado.precioMin') ?></th>
<th><?= lang('Tarifaacabado.importeFijo') ?></th>
<th><?= lang('Tarifaacabado.mostrar_en_presupuesto') ?></th>
<th><?= lang('Tarifaacabado.mostrar_en_presupuesto_cliente') ?></th>
<th><?= lang('Tarifaacabado.acabado_cubierta') ?></th>
<th><?= lang('Tarifaacabado.acabado_sobrecubierta') ?></th>
<th class="text-nowrap"><?= lang('Basic.global.Action') ?></th>
@ -95,6 +96,7 @@
{ 'data': 'precio_min' },
{ 'data': 'importe_fijo' },
{ 'data': 'mostrar_en_presupuesto' },
{ 'data': 'mostrar_en_presupuesto_cliente' },
{ 'data': 'acabado_cubierta' },
{ 'data': 'acabado_sobrecubierta' },
{ 'data': actionBtns }
@ -102,7 +104,7 @@
});
theTable.on( 'draw.dt', function () {
const boolCols = [3, 4, 5];
const boolCols = [3, 4, 5,6,7];
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>' : '';