funcion/arreglar-planilla-totales #38

Merged
atasistro merged 23 commits from funcion/arreglar-planilla-totales into master 2024-12-21 11:06:25 -03:00
1 changed files with 3 additions and 2 deletions
Showing only changes of commit 1c5b8ecb29 - Show all commits

View File

@ -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');