mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Añadida opcion 'uso' en las queries de catalogo
This commit is contained in:
@ -248,11 +248,11 @@ class ImportadorCatalogo extends BaseResourceController
|
|||||||
'entrega_taller' => 1,
|
'entrega_taller' => 1,
|
||||||
];
|
];
|
||||||
|
|
||||||
/*return $this->response->setJSON([
|
return $this->response->setJSON([
|
||||||
'success' => true,
|
'success' => true,
|
||||||
'message' => 'Libro encontrado y preparado para importar.',
|
'message' => 'Libro encontrado y preparado para importar.',
|
||||||
'data' => $dataToImport
|
'data' => $dataToImport
|
||||||
]);*/
|
]);
|
||||||
|
|
||||||
|
|
||||||
// Procedemos a intentar guardar el presupuesto
|
// Procedemos a intentar guardar el presupuesto
|
||||||
|
|||||||
@ -31,6 +31,7 @@ class Catalogo {
|
|||||||
tirada: () => this.tirada_no_pod,
|
tirada: () => this.tirada_no_pod,
|
||||||
ancho: () => this.getDimensionLibro().ancho,
|
ancho: () => this.getDimensionLibro().ancho,
|
||||||
alto: () => this.getDimensionLibro().alto,
|
alto: () => this.getDimensionLibro().alto,
|
||||||
|
uso: 'interior',
|
||||||
sopalas: 0,
|
sopalas: 0,
|
||||||
lomo: 0,
|
lomo: 0,
|
||||||
tipo: () => this.tipo_impresion.val().includes('hq') ? 'negrohq' : 'negro',
|
tipo: () => this.tipo_impresion.val().includes('hq') ? 'negrohq' : 'negro',
|
||||||
@ -42,6 +43,7 @@ class Catalogo {
|
|||||||
tirada: () => this.tirada_pod,
|
tirada: () => this.tirada_pod,
|
||||||
ancho: () => this.getDimensionLibro().ancho,
|
ancho: () => this.getDimensionLibro().ancho,
|
||||||
alto: () => this.getDimensionLibro().alto,
|
alto: () => this.getDimensionLibro().alto,
|
||||||
|
uso: 'interior',
|
||||||
sopalas: 0,
|
sopalas: 0,
|
||||||
lomo: 0,
|
lomo: 0,
|
||||||
tipo: () => this.tipo_impresion.val().includes('hq') ? 'negrohq' : 'negro',
|
tipo: () => this.tipo_impresion.val().includes('hq') ? 'negrohq' : 'negro',
|
||||||
@ -54,6 +56,7 @@ class Catalogo {
|
|||||||
tirada: () => this.tirada_no_pod,
|
tirada: () => this.tirada_no_pod,
|
||||||
ancho: () => this.getDimensionLibro().ancho,
|
ancho: () => this.getDimensionLibro().ancho,
|
||||||
alto: () => this.getDimensionLibro().alto,
|
alto: () => this.getDimensionLibro().alto,
|
||||||
|
uso: 'interior',
|
||||||
sopalas: 0,
|
sopalas: 0,
|
||||||
lomo: 0,
|
lomo: 0,
|
||||||
tipo: () => this.tipo_impresion.val().includes('hq') ? 'negrohq' : 'negro',
|
tipo: () => this.tipo_impresion.val().includes('hq') ? 'negrohq' : 'negro',
|
||||||
@ -66,6 +69,7 @@ class Catalogo {
|
|||||||
tirada: () => this.tirada_pod,
|
tirada: () => this.tirada_pod,
|
||||||
ancho: () => this.getDimensionLibro().ancho,
|
ancho: () => this.getDimensionLibro().ancho,
|
||||||
alto: () => this.getDimensionLibro().alto,
|
alto: () => this.getDimensionLibro().alto,
|
||||||
|
uso: 'interior',
|
||||||
sopalas: 0,
|
sopalas: 0,
|
||||||
lomo: 0,
|
lomo: 0,
|
||||||
tipo: () => this.tipo_impresion.val().includes('hq') ? 'negrohq' : 'negro',
|
tipo: () => this.tipo_impresion.val().includes('hq') ? 'negrohq' : 'negro',
|
||||||
@ -79,6 +83,7 @@ class Catalogo {
|
|||||||
tirada: () => this.tirada_no_pod,
|
tirada: () => this.tirada_no_pod,
|
||||||
ancho: () => this.getDimensionLibro().ancho,
|
ancho: () => this.getDimensionLibro().ancho,
|
||||||
alto: () => this.getDimensionLibro().alto,
|
alto: () => this.getDimensionLibro().alto,
|
||||||
|
uso: 'interior',
|
||||||
sopalas: 0,
|
sopalas: 0,
|
||||||
lomo: 0,
|
lomo: 0,
|
||||||
tipo: () => this.tipo_impresion.val().includes('hq') ? 'colorhq' : 'color',
|
tipo: () => this.tipo_impresion.val().includes('hq') ? 'colorhq' : 'color',
|
||||||
@ -90,6 +95,7 @@ class Catalogo {
|
|||||||
tirada: () => this.tirada_pod,
|
tirada: () => this.tirada_pod,
|
||||||
ancho: () => this.getDimensionLibro().ancho,
|
ancho: () => this.getDimensionLibro().ancho,
|
||||||
alto: () => this.getDimensionLibro().alto,
|
alto: () => this.getDimensionLibro().alto,
|
||||||
|
uso: 'interior',
|
||||||
sopalas: 0,
|
sopalas: 0,
|
||||||
lomo: 0,
|
lomo: 0,
|
||||||
tipo: () => this.tipo_impresion.val().includes('hq') ? 'colorhq' : 'color',
|
tipo: () => this.tipo_impresion.val().includes('hq') ? 'colorhq' : 'color',
|
||||||
@ -102,6 +108,7 @@ class Catalogo {
|
|||||||
tirada: () => this.tirada_no_pod,
|
tirada: () => this.tirada_no_pod,
|
||||||
ancho: () => this.getDimensionLibro().ancho,
|
ancho: () => this.getDimensionLibro().ancho,
|
||||||
alto: () => this.getDimensionLibro().alto,
|
alto: () => this.getDimensionLibro().alto,
|
||||||
|
uso: 'interior',
|
||||||
sopalas: 0,
|
sopalas: 0,
|
||||||
lomo: 0,
|
lomo: 0,
|
||||||
tipo: () => this.tipo_impresion.val().includes('hq') ? 'colorhq' : 'color',
|
tipo: () => this.tipo_impresion.val().includes('hq') ? 'colorhq' : 'color',
|
||||||
@ -114,6 +121,7 @@ class Catalogo {
|
|||||||
tirada: () => this.tirada_pod,
|
tirada: () => this.tirada_pod,
|
||||||
ancho: () => this.getDimensionLibro().ancho,
|
ancho: () => this.getDimensionLibro().ancho,
|
||||||
alto: () => this.getDimensionLibro().alto,
|
alto: () => this.getDimensionLibro().alto,
|
||||||
|
uso: 'interior',
|
||||||
sopalas: 0,
|
sopalas: 0,
|
||||||
lomo: 0,
|
lomo: 0,
|
||||||
tipo: () => this.tipo_impresion.val().includes('hq') ? 'colorhq' : 'color',
|
tipo: () => this.tipo_impresion.val().includes('hq') ? 'colorhq' : 'color',
|
||||||
@ -126,6 +134,7 @@ class Catalogo {
|
|||||||
tirada: () => this.tirada_no_pod,
|
tirada: () => this.tirada_no_pod,
|
||||||
ancho: () => this.getDimensionLibro().ancho,
|
ancho: () => this.getDimensionLibro().ancho,
|
||||||
alto: () => this.getDimensionLibro().alto,
|
alto: () => this.getDimensionLibro().alto,
|
||||||
|
uso: 'cubierta',
|
||||||
sopalas: () => $('#cubierta_ancho_solapas').val(),
|
sopalas: () => $('#cubierta_ancho_solapas').val(),
|
||||||
lomo: () => 0,
|
lomo: () => 0,
|
||||||
tipo: 'colorhq',
|
tipo: 'colorhq',
|
||||||
@ -138,6 +147,7 @@ class Catalogo {
|
|||||||
tirada: () => this.tirada_pod,
|
tirada: () => this.tirada_pod,
|
||||||
ancho: () => this.getDimensionLibro().ancho,
|
ancho: () => this.getDimensionLibro().ancho,
|
||||||
alto: () => this.getDimensionLibro().alto,
|
alto: () => this.getDimensionLibro().alto,
|
||||||
|
uso: 'cubierta',
|
||||||
sopalas: () => $('#cubierta_ancho_solapas').val(),
|
sopalas: () => $('#cubierta_ancho_solapas').val(),
|
||||||
lomo: () => 0,
|
lomo: () => 0,
|
||||||
tipo: 'colorhq',
|
tipo: 'colorhq',
|
||||||
@ -151,6 +161,7 @@ class Catalogo {
|
|||||||
tirada: () => this.tirada_no_pod,
|
tirada: () => this.tirada_no_pod,
|
||||||
ancho: () => this.getDimensionLibro().ancho,
|
ancho: () => this.getDimensionLibro().ancho,
|
||||||
alto: () => this.getDimensionLibro().alto,
|
alto: () => this.getDimensionLibro().alto,
|
||||||
|
uso: 'cubierta',
|
||||||
sopalas: () => $('#cubierta_ancho_solapas').val(),
|
sopalas: () => $('#cubierta_ancho_solapas').val(),
|
||||||
lomo: 0,
|
lomo: 0,
|
||||||
tipo: 'colorhq',
|
tipo: 'colorhq',
|
||||||
@ -163,6 +174,7 @@ class Catalogo {
|
|||||||
tirada: () => this.tirada_pod,
|
tirada: () => this.tirada_pod,
|
||||||
ancho: () => this.getDimensionLibro().ancho,
|
ancho: () => this.getDimensionLibro().ancho,
|
||||||
alto: () => this.getDimensionLibro().alto,
|
alto: () => this.getDimensionLibro().alto,
|
||||||
|
uso: 'cubierta',
|
||||||
sopalas: () => $('#cubierta_ancho_solapas').val(),
|
sopalas: () => $('#cubierta_ancho_solapas').val(),
|
||||||
lomo: 0,
|
lomo: 0,
|
||||||
tipo: 'colorhq',
|
tipo: 'colorhq',
|
||||||
@ -184,10 +196,10 @@ class Catalogo {
|
|||||||
tirada: () => this.tirada_no_pod,
|
tirada: () => this.tirada_no_pod,
|
||||||
ancho: () => this.getDimensionLibro().ancho,
|
ancho: () => this.getDimensionLibro().ancho,
|
||||||
alto: () => this.getDimensionLibro().alto,
|
alto: () => this.getDimensionLibro().alto,
|
||||||
|
uso: 'sobrecubierta',
|
||||||
sopalas: () => $('#sobrecubierta_ancho_solapas').val(),
|
sopalas: () => $('#sobrecubierta_ancho_solapas').val(),
|
||||||
lomo: () => 0,
|
lomo: () => 0,
|
||||||
tipo: 'colorhq',
|
tipo: 'colorhq',
|
||||||
uso: 'sobrecubierta',
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.selectPapelSobrecubiertaPod = new ClassSelect($("#sobrecubierta_pod_papel_id"), '/presupuestoadmin/papelgenerico', "Seleccione un papel", false,
|
this.selectPapelSobrecubiertaPod = new ClassSelect($("#sobrecubierta_pod_papel_id"), '/presupuestoadmin/papelgenerico', "Seleccione un papel", false,
|
||||||
@ -196,10 +208,10 @@ class Catalogo {
|
|||||||
tirada: () => this.tirada_pod,
|
tirada: () => this.tirada_pod,
|
||||||
ancho: () => this.getDimensionLibro().ancho,
|
ancho: () => this.getDimensionLibro().ancho,
|
||||||
alto: () => this.getDimensionLibro().alto,
|
alto: () => this.getDimensionLibro().alto,
|
||||||
|
uso: 'sobrecubierta',
|
||||||
sopalas: () => $('#sobrecubierta_ancho_solapas').val(),
|
sopalas: () => $('#sobrecubierta_ancho_solapas').val(),
|
||||||
lomo: () => 0,
|
lomo: () => 0,
|
||||||
tipo: 'colorhq',
|
tipo: 'colorhq',
|
||||||
uso: 'sobrecubierta',
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this.selectGramajeSobrecubierta = new ClassSelect($('#sobrecubierta_gramaje'), '/presupuestoadmin/papelgramaje', 'Seleccione un gramaje', false,
|
this.selectGramajeSobrecubierta = new ClassSelect($('#sobrecubierta_gramaje'), '/presupuestoadmin/papelgramaje', 'Seleccione un gramaje', false,
|
||||||
@ -209,6 +221,7 @@ class Catalogo {
|
|||||||
tirada: () => this.tirada_no_pod,
|
tirada: () => this.tirada_no_pod,
|
||||||
ancho: () => this.getDimensionLibro().ancho,
|
ancho: () => this.getDimensionLibro().ancho,
|
||||||
alto: () => this.getDimensionLibro().alto,
|
alto: () => this.getDimensionLibro().alto,
|
||||||
|
uso: 'sobrecubierta',
|
||||||
sopalas: () => $('#sobrecubierta_ancho_solapas').val(),
|
sopalas: () => $('#sobrecubierta_ancho_solapas').val(),
|
||||||
lomo: 0,
|
lomo: 0,
|
||||||
tipo: 'colorhq',
|
tipo: 'colorhq',
|
||||||
@ -221,6 +234,7 @@ class Catalogo {
|
|||||||
tirada: () => this.tirada_pod,
|
tirada: () => this.tirada_pod,
|
||||||
ancho: () => this.getDimensionLibro().ancho,
|
ancho: () => this.getDimensionLibro().ancho,
|
||||||
alto: () => this.getDimensionLibro().alto,
|
alto: () => this.getDimensionLibro().alto,
|
||||||
|
uso: 'sobrecubierta',
|
||||||
sopalas: () => $('#sobrecubierta_ancho_solapas').val(),
|
sopalas: () => $('#sobrecubierta_ancho_solapas').val(),
|
||||||
lomo: 0,
|
lomo: 0,
|
||||||
tipo: 'colorhq',
|
tipo: 'colorhq',
|
||||||
|
|||||||
Reference in New Issue
Block a user