mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
terminada la modificacion de las lineas de albaran
This commit is contained in:
@ -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', {
|
||||
|
||||
Reference in New Issue
Block a user