finish send invoice pdf via mail
This commit is contained in:
parent
4f3707adaa
commit
24f98ec8dd
@ -90,6 +90,7 @@ class InvoiceController extends Controller
|
|||||||
$message->setSubject("Facture");
|
$message->setSubject("Facture");
|
||||||
$message->setPlainBody("Veuiller trouver ci-joint votre facture");
|
$message->setPlainBody("Veuiller trouver ci-joint votre facture");
|
||||||
$this->mailer->send($message);
|
$this->mailer->send($message);
|
||||||
|
$this->gestionRepository->setFactureSentDate($factureId);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
return new DataResponse("Veuillez configurer le mail sur nextcloud ?", 500, ['Content-Type' => 'application/json']);
|
return new DataResponse("Veuillez configurer le mail sur nextcloud ?", 500, ['Content-Type' => 'application/json']);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user