[FIX] fix email facture (photo and quotes), add siret to invoicegrouppdfhandler

This commit is contained in:
Tiavina 2025-05-20 10:09:04 +03:00
parent 3a690ed967
commit 1c5a38e1b4
3 changed files with 5 additions and 2 deletions

View File

@ -113,7 +113,7 @@ class InvoiceController extends Controller
$message->setHtmlBody( $message->setHtmlBody(
"<p>Bonjour.</p>". "<p>Bonjour.</p>".
"<p> Vous trouverez en pièce jointe la facture des soins de « " . $factureDate . " » .</p>". "<p> Vous trouverez en pièce jointe la facture des soins de " . $factureDate . ".</p>".
$signature $signature
); );
$appAdminEmail = $this->gestionRepository->getUserEmailByNextcloudId(BddConstant::DEFAULT_ADMIN_APP_ID_NEXTCLOUD); $appAdminEmail = $this->gestionRepository->getUserEmailByNextcloudId(BddConstant::DEFAULT_ADMIN_APP_ID_NEXTCLOUD);

View File

@ -238,6 +238,9 @@ class InvoiceGroupPdfHandler extends FPDF {
$this->SetXY($clientInfoXAxis,$clientInfoYAxis + 1); $this->SetXY($clientInfoXAxis,$clientInfoYAxis + 1);
$this->Cell(0, $this->interLigneHeader, trim(FileExportHelpers::FormatTextForExport($this->factureData['client_adress_city']))); $this->Cell(0, $this->interLigneHeader, trim(FileExportHelpers::FormatTextForExport($this->factureData['client_adress_city'])));
$clientInfoYAxis += $this->interLigneHeader + 1;
$this->SetXY($clientInfoXAxis,$clientInfoYAxis);
$this->Cell(0, $this->interLigneHeader, 'Siret: ' . ($this->factureData['siret'] ?? ""));
} }

View File

@ -51,7 +51,7 @@ class MailerService {
if (!$signatureImage) { if (!$signatureImage) {
return ""; return "";
} }
return "<img style= 'width: 250px;height: 150;' src='data:image/jpeg;base64,".base64_encode($signatureImage)."'>" ; return "<img style= 'width: 250px;height: 150px;' src='data:image/jpeg;base64,".base64_encode($signatureImage)."'>" ;
} }
private function getSignatureContent(){ private function getSignatureContent(){