From f8484959d663b6c6248810502d7ebfb83e01a385 Mon Sep 17 00:00:00 2001 From: Ale Date: Sat, 12 Nov 2022 18:53:06 -0300 Subject: [PATCH] =?UTF-8?q?Las=20planillas=20se=20descargan=20autom=C3=A1t?= =?UTF-8?q?icamente=20y=20tienen=20el=20nombre=20del=20barrio?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/GrupoDeCompra.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/GrupoDeCompra.php b/app/GrupoDeCompra.php index dfdd3d7..39e8376 100644 --- a/app/GrupoDeCompra.php +++ b/app/GrupoDeCompra.php @@ -35,8 +35,9 @@ class GrupoDeCompra extends Model $mpdf->WriteHTML($tabla); $mpdf->AddPage(); } + $filename = $this->nombre . '.pdf'; // imprimir el pdf - $mpdf->Output(); + $mpdf->Output($filename, "D"); } //Asume que los productos están gruadados en orden de fila