Borrada funcion innecesaria

This commit is contained in:
Alejandro Tasistro 2024-12-09 20:59:34 -03:00
parent 8a0f8fbe13
commit cef38cf69c
1 changed files with 0 additions and 14 deletions

View File

@ -92,7 +92,6 @@ class Producto extends Model
$cantidadesPorBarrio = self::cantidadesPorBarrio(); $cantidadesPorBarrio = self::cantidadesPorBarrio();
$planilla = []; $planilla = [];
$ultimaFila = 1; $ultimaFila = 1;
$filaTransporte = self::filaTransporte();
foreach ($cantidadesPorBarrio as $productoCantidades) { foreach ($cantidadesPorBarrio as $productoCantidades) {
$fila = $productoCantidades->fila; $fila = $productoCantidades->fila;
@ -159,17 +158,4 @@ class Producto extends Model
var_export($e->getRecords()); 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');
}
} }