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']); }