From 24f98ec8ddd41c5d172f5b037d0349f71d7287a2 Mon Sep 17 00:00:00 2001 From: Tiavina Date: Fri, 7 Mar 2025 17:12:36 +0300 Subject: [PATCH] finish send invoice pdf via mail --- gestion/lib/Controller/InvoiceController.php | 1 + 1 file changed, 1 insertion(+) diff --git a/gestion/lib/Controller/InvoiceController.php b/gestion/lib/Controller/InvoiceController.php index ef5fe2a..e9d76c9 100644 --- a/gestion/lib/Controller/InvoiceController.php +++ b/gestion/lib/Controller/InvoiceController.php @@ -90,6 +90,7 @@ class InvoiceController extends Controller $message->setSubject("Facture"); $message->setPlainBody("Veuiller trouver ci-joint votre facture"); $this->mailer->send($message); + $this->gestionRepository->setFactureSentDate($factureId); } catch (Exception $e) { return new DataResponse("Veuillez configurer le mail sur nextcloud ?", 500, ['Content-Type' => 'application/json']); }