From cef38cf69cdafe7611e50197faeb155db94046bc Mon Sep 17 00:00:00 2001 From: ale Date: Mon, 9 Dec 2024 20:59:34 -0300 Subject: [PATCH] Borrada funcion innecesaria --- app/Producto.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/app/Producto.php b/app/Producto.php index 861cdee..1d002a6 100644 --- a/app/Producto.php +++ b/app/Producto.php @@ -92,7 +92,6 @@ class Producto extends Model $cantidadesPorBarrio = self::cantidadesPorBarrio(); $planilla = []; $ultimaFila = 1; - $filaTransporte = self::filaTransporte(); foreach ($cantidadesPorBarrio as $productoCantidades) { $fila = $productoCantidades->fila; @@ -159,17 +158,4 @@ class Producto extends Model var_export($e->getRecords()); } } - - private static function filaTransporte() - { - $csv = Reader::createFromPath(resource_path('csv/productos.csv'), 'r'); - $csv->setDelimiter("|"); - $csv->setEnclosure("'"); - $registros = $csv->getRecords(); - - foreach ($registros as $key => $registro) - if ($registro[0] == 'T') return $key; - - throw new Exception('No hay bono de transporte'); - } }