From 1c5b8ecb293ee458827cf307a643e1fe9d3232c9 Mon Sep 17 00:00:00 2001 From: ale Date: Mon, 25 Nov 2024 21:45:09 -0300 Subject: [PATCH] =?UTF-8?q?Cambio=20de=20m=C3=A9todo=20en=20ruta=20de=20de?= =?UTF-8?q?scarga=20de=20pedidos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/ComprasController.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/ComprasController.php b/app/Http/Controllers/ComprasController.php index e39eeda..93f2ef9 100644 --- a/app/Http/Controllers/ComprasController.php +++ b/app/Http/Controllers/ComprasController.php @@ -3,6 +3,7 @@ namespace App\Http\Controllers; use App\GrupoDeCompra; +use App\Producto; class ComprasController { @@ -11,11 +12,11 @@ class ComprasController } public function descargarPedidos() { - GrupoDeCompra::exportarTodosLosPedidosEnCSV(); + Producto::planillaTotales(); $file = resource_path('csv/exports/total-pedidos.csv'); return response()->download($file); } - + public function descargarNotas() { GrupoDeCompra::exportarProductosConNotasEnCSV(); $file = resource_path('csv/exports/pedidos-notas.csv');