terminada la modificacion de las lineas de albaran

This commit is contained in:
2025-05-26 21:09:24 +02:00
parent 43e0ced1bd
commit 6dc91bfa4c
7 changed files with 32 additions and 10 deletions

View File

@ -153,6 +153,8 @@ class AlbaranComponent {
$('<th>', { class: 'lp-header', scope: 'col' }).css({ 'font-size': 'smaller' }).text(window.language.Albaran.titulo),
$('<th>', { class: 'lp-header', scope: 'col' }).css({ 'font-size': 'smaller', 'max-width':'15%' }).text(window.language.Albaran.ISBN),
$('<th>', { class: 'lp-header', scope: 'col' }).css({ 'font-size': 'smaller', 'max-width':'15%' }).text(window.language.Albaran.refCliente),
$('<th>', { class: 'lp-header', scope: 'col' }).css({ 'font-size': 'smaller', 'max-width':'15%' }).text(window.language.Albaran.cajas),
$('<th>', { class: 'lp-header', scope: 'col' }).css({ 'font-size': 'smaller', 'max-width':'15%' }).text(window.language.Albaran.unidadesCaja),
$('<th>', { class: 'lp-header', scope: 'col' }).css({ 'font-size': 'smaller', 'max-width':'8%' }).text(window.language.Albaran.precioU),
$('<th>', { class: 'lp-header', scope: 'col' }).css({ 'font-size': 'smaller', 'max-width':'8%' }).text(window.language.Albaran.subtotal),
$('<th>'),
@ -230,6 +232,8 @@ class AlbaranComponent {
{ data: "titulo" },
{ data: "isbn" },
{ data: "ref_cliente" },
{ data: "cajas"},
{ data: "unidades_cajas"},
{ data: "precio_unidad" },
{ data: "total" },
{ data: "iva_reducido", visible: false },
@ -244,13 +248,13 @@ class AlbaranComponent {
drawCallback: (settings) => {
if ($('#mostrar_precios_' + this.id).is(':checked')) {
this.table
.column(7).visible(true)
.column(8).visible(true);
.column(9).visible(true)
.column(10).visible(true);
}
else {
this.table
.column(7).visible(false)
.column(8).visible(false);
.column(9).visible(false)
.column(10).visible(false);
}
requestAnimationFrame(() => {
@ -316,12 +320,12 @@ class AlbaranComponent {
const checked = $(e.currentTarget).is(':checked');
if (checked) {
this.table
.column(7).visible(true)
.column(8).visible(true);
.column(9).visible(true)
.column(10).visible(true);
} else {
this.table
.column(7).visible(false)
.column(8).visible(false);
.column(9).visible(false)
.column(10).visible(false);
}
$.post('/albaranes/updateAlbaran', {