Cambio de método en ruta de descarga de pedidos

This commit is contained in:
Alejandro Tasistro 2024-11-25 21:45:09 -03:00
parent d170f9e46e
commit 1b16669512
1 changed files with 3 additions and 2 deletions

View File

@ -3,6 +3,7 @@
namespace App\Http\Controllers;
use App\GrupoDeCompra;
use App\Producto;
class ComprasController
{
@ -11,7 +12,7 @@ class ComprasController
}
public function descargarPedidos() {
GrupoDeCompra::exportarTodosLosPedidosEnCSV();
Producto::planillaTotales();
$file = resource_path('csv/exports/total-pedidos.csv');
return response()->download($file);
}