From 247fa7e6f934732ecc3ef922d337054fdbe0aa61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Jim=C3=A9nez?= Date: Mon, 5 May 2025 19:36:33 +0200 Subject: [PATCH] prueba2 --- ci4/app/Services/EtiquetasTitulosService.php | 4 ++-- ci4/app/Services/ImpresoraEtiquetaService.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ci4/app/Services/EtiquetasTitulosService.php b/ci4/app/Services/EtiquetasTitulosService.php index af9c579a..35d617a8 100644 --- a/ci4/app/Services/EtiquetasTitulosService.php +++ b/ci4/app/Services/EtiquetasTitulosService.php @@ -312,12 +312,12 @@ class EtiquetasTitulosService $data['grupos'][$index_etiqueta][] = [ - 'prefix' => $lineaCounter, + 'prefix' => $lineaCounter+1, 'titulo' => mb_substr($datos_etiqueta->titulo, 0, 40), 'cantidad' => $linea->unidades, 'tirada' => $datos_etiqueta->total_tirada, 'ean' => str_replace('-', '', $datos_etiqueta->isbn), - 'npedido' => $datos_etiqueta->id, + 'npedido' => $datos_etiqueta->id_pedido, 'refcliente' => $datos_etiqueta->referencia_cliente, ]; diff --git a/ci4/app/Services/ImpresoraEtiquetaService.php b/ci4/app/Services/ImpresoraEtiquetaService.php index 88e4e4f2..fa823e24 100755 --- a/ci4/app/Services/ImpresoraEtiquetaService.php +++ b/ci4/app/Services/ImpresoraEtiquetaService.php @@ -96,7 +96,7 @@ class ImpresoraEtiquetaService extends BaseService // Crear variables específicas del grupo foreach ($grupo as $libro) { - $prefix = $libro['prefix']==0 ? '' : $libro['prefix']; + $prefix = $libro['prefix']==1 ? '' : $libro['prefix']; $variables = [ "titulo$prefix" => $libro['titulo'],