This commit is contained in:
2025-05-05 19:27:17 +02:00
parent 68a39bd749
commit 21e907ad50
2 changed files with 2 additions and 3 deletions

View File

@ -283,7 +283,6 @@ class EtiquetasTitulosService
array_push($data['grupos'], [
]);
$prefix = 1;
$lineas = array_filter($etiquetas_lineas, function ($linea) use ($caja) {
return $linea->numero_caja == $caja;
});
@ -313,7 +312,7 @@ class EtiquetasTitulosService
$data['grupos'][$index_etiqueta][] = [
'prefix' => $caja,
'prefix' => $lineaCounter,
'titulo' => mb_substr($datos_etiqueta->titulo, 0, 40),
'cantidad' => $linea->unidades,
'tirada' => $datos_etiqueta->total_tirada,

View File

@ -96,7 +96,7 @@ class ImpresoraEtiquetaService extends BaseService
// Crear variables específicas del grupo
foreach ($grupo as $libro) {
$prefix = $libro['prefix'];
$prefix = $libro['prefix']==0 ? '' : $libro['prefix'];
$variables = [
"titulo$prefix" => $libro['titulo'],