finish send invoice pdf via mail

This commit is contained in:
Tiavina 2025-03-07 17:12:36 +03:00
parent 4f3707adaa
commit 24f98ec8dd

View File

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