diff --git a/gestion/lib/Db/Bdd.php b/gestion/lib/Db/Bdd.php index af6501a..7dc8604 100644 --- a/gestion/lib/Db/Bdd.php +++ b/gestion/lib/Db/Bdd.php @@ -3829,6 +3829,7 @@ class Bdd { defunt.ref_pacemaker as defunt_reference_pacemaker, defunt.product_brand as defunt_product_brand, defunt.product_reference as defunt_product_reference, + defunt.date as defunt_date, client.nom as client_nom, client.prenom as client_prenom, client.mail as client_mail, diff --git a/gestion/lib/Service/Certificate/PdfHandler/CareCertificatePdfHandler.php b/gestion/lib/Service/Certificate/PdfHandler/CareCertificatePdfHandler.php index 16034dc..64b0df5 100644 --- a/gestion/lib/Service/Certificate/PdfHandler/CareCertificatePdfHandler.php +++ b/gestion/lib/Service/Certificate/PdfHandler/CareCertificatePdfHandler.php @@ -94,14 +94,19 @@ class CareCertificatePdfHandler extends FPDF { $this->MultiCell(0,7, FileExportHelpers::FormatTextForExport('Employé(e) au sein de notre société et titulaire du diplôme national de Thanatopracteur, a effectué des soins de conservation sur le corps du défunt :')); $this->SetFont('Arial', 'B', 14); $this->Cell(0,12, FileExportHelpers::FormatTextForExport($this->devisOfDefunt['defunt_nom']),0,1); + $this->SetFont('Arial', '', 14); + $this->Cell(0, 12, FileExportHelpers::FormatTextForExport("Date du décès") . ' : ' . $this->devisOfDefunt['defunt_date'] , 0, 1); $this->SetFont('Arial', '', 14); $this->Cell(0,12, FileExportHelpers::FormatTextForExport("Qui reposait à l'adresse suivante") . ' : ',0,1); $this->SetFont('Arial', 'B', 14); $this->MultiCell(0,6, FileExportHelpers::FormatTextForExport($this->devisOfDefunt['location_of_devis'])); + + + $this->SetFont('Arial', '', 14); $this->Cell(0,12, FileExportHelpers::FormatTextForExport("La présente attestation est établie pour faire valoir ce que de droit."),0,5); $this->Ln(5); - $this->MultiAlignCell(120,7,FileExportHelpers::FormatTextForExport('Fait à '). FileExportHelpers::FormatTextForExport($this->devisOfDefunt['configuration']->adresse),0); + $this->MultiAlignCell(120,7,FileExportHelpers::FormatTextForExport('Fait à '). FileExportHelpers::FormatTextForExport($this->devisOfDefunt['location_of_devis']),0); $this->SetX(140); $this->Cell(0,7,'le '. $this->devisOfDefunt['devis_date']->format('d/m/Y'),0); } diff --git a/gestion/lib/Service/Certificate/PdfHandler/PacemakerCertificatePdfHandler.php b/gestion/lib/Service/Certificate/PdfHandler/PacemakerCertificatePdfHandler.php index c7bb94b..08ea759 100644 --- a/gestion/lib/Service/Certificate/PdfHandler/PacemakerCertificatePdfHandler.php +++ b/gestion/lib/Service/Certificate/PdfHandler/PacemakerCertificatePdfHandler.php @@ -76,7 +76,7 @@ class PacemakerCertificatePdfHandler extends FPDF private function SetSigning() { $this->SetXY(140, $this->GetY() + 10); - $this->Cell(0, 10, 'Cachet et signaturess'); + // $this->Cell(0, 10, 'Cachet et signatures'); if($this->tamponImageExist){ $this->Image($this->imagePath."sign.jpg", 120, $this->GetY() + 8, 80, 30); @@ -99,7 +99,10 @@ class PacemakerCertificatePdfHandler extends FPDF $this->SetFont('Arial', 'B', 14); $this->Cell(0, 12, FileExportHelpers::FormatTextForExport($this->devisOfDefunt['defunt_nom']), 0, 1); $this->SetFont('Arial', '', 14); + $this->Cell(0, 12, FileExportHelpers::FormatTextForExport("Date du décès") . ' : ' . $this->devisOfDefunt['defunt_date'] , 0, 1); + $this->SetFont('Arial', '', 14); $this->Cell(0, 12, FileExportHelpers::FormatTextForExport("Qui reposait à l'adresse suivante") . ' : ', 0, 1); + $this->SetFont('Arial', 'B', 14); $this->MultiCell(0, 6, FileExportHelpers::FormatTextForExport($this->devisOfDefunt['location_of_devis'])); $this->Ln(6); @@ -123,9 +126,9 @@ class PacemakerCertificatePdfHandler extends FPDF $this->Cell(0, 12, FileExportHelpers::FormatTextForExport("La présente attestation est établie pour faire valoir ce que de droit."), 0, 5); $this->Ln(5); - $this->MultiAlignCell(120, 7, FileExportHelpers::FormatTextForExport('Fait à ') . FileExportHelpers::FormatTextForExport($this->devisOfDefunt['configuration']->adresse), 0); + $this->MultiAlignCell(120, 7, FileExportHelpers::FormatTextForExport('Fait à ') . FileExportHelpers::FormatTextForExport($this->devisOfDefunt['location_of_devis']), 0); $this->SetX(140); - $this->Cell(0, 7, 'le ' . $this->devisOfDefunt['devis_date']->format('d/m/Y'), 0); + $this->Cell(0, 7, 'le ' . $this->devisOfDefunt['devis_date']->format('d/m/Y'), 0); } private function SetPacemakerCertificateTitle() diff --git a/gestion/lib/Service/Devis/Pdf/DevisPdfHandler.php b/gestion/lib/Service/Devis/Pdf/DevisPdfHandler.php index 13b58e3..0c5372b 100644 --- a/gestion/lib/Service/Devis/Pdf/DevisPdfHandler.php +++ b/gestion/lib/Service/Devis/Pdf/DevisPdfHandler.php @@ -49,14 +49,14 @@ class DevisPdfHandler extends FPDF function Footer() { $this->SetY(-40); - $this->SetFont('ComicSans', '', 7); + $this->SetFont('Arial', '', 7); $this->MultiCell(0, 5, utf8_decode(html_entity_decode('Tout retard de paiement entraînera de plein droit une pénalité de retard de 3 fois le taux légal ( Loi 2008-776 du 4 août 2008) et une indemnité forfaitaire de 40 EUR pour frais de recouvrement sera appliquée.'))); $this->Ln(1); $this->MultiCell(0, 5, utf8_decode(html_entity_decode('Si les frais de recouvrement sont supérieurs à ce montant forfaitaire, une indemnisation complémentaire sera due sur présentation de justificatifs ( articles L.441-3 et L.441-6 du code de commerce ). '))); $this->SetY(-15); - $this->SetFont('ComicSans', 'B', 8); + $this->SetFont('Arial', 'B', 8); $this->Cell(0, 10, utf8_decode(html_entity_decode($this->devisData['configuration']->legal_one)), 0, 0, 'C'); } @@ -75,13 +75,12 @@ class DevisPdfHandler extends FPDF private function DrawDevisCompanyAndClientInfo() { $this->SetY(40); - $this->SetFont('ComicSans', '', 12); + $this->SetFont('Arial', '', 12); $this->Cell(0, 7, FileExportHelpers::FormatTextForExport($this->devisData['configuration']->entreprise), 0, 0); $this->Cell(0, 7, FileExportHelpers::FormatTextForExport($this->devisData['client_nom']), 0, 1, 'R'); $this->Cell(0, 7, FileExportHelpers::FormatTextForExport($this->devisData['configuration_adresse']), 0, 0); $this->Cell(0, 7, trim(FileExportHelpers::FormatTextForExport($this->devisData['client_real_adress'])), 0, 1, 'R'); $this->Cell(0, 7, FileExportHelpers::FormatTextForExport($this->devisData['configuration_adresse_city']), 0, 0); - border: $this->Cell(0, 7, trim(FileExportHelpers::FormatTextForExport($this->devisData['client_adress_city'])), 0, 1, 'R'); $this->Cell(0, 7, FileExportHelpers::FormatTextForExport('Tél : ') . FileExportHelpers::FormatTextForExport($this->devisData['configuration']->telephone), 0, 0); $this->Cell(0, 7, 'Siret: ' . $this->devisData['siret'], 0, 1, 'R'); @@ -91,12 +90,12 @@ class DevisPdfHandler extends FPDF private function DrawDevisInfoTable() { - $this->SetFont('ComicSans', 'B', 11); + $this->SetFont('Arial', 'B', 11); $this->Cell(30, 7, 'DATE', 1, 0, 'C'); $this->Cell(80, 7, 'CLIENT', 1, 0, 'C'); $this->Cell(40, 7, 'DEVIS', 1, 1, 'C'); - $this->SetFont('ComicSans', '', 10); + $this->SetFont('Arial', '', 10); $this->Cell(30, 7, $this->devisData['devis_date'], 1, 0, 'C'); $this->Cell(80, 7, utf8_decode(html_entity_decode($this->devisData['client_nom'])), 1, 0, 'C'); $this->Cell(40, 7, $this->devisData['devis_full_number'], 1, 1, 'C'); @@ -120,7 +119,7 @@ class DevisPdfHandler extends FPDF private function DrawArticlesTableHeader() { $tvaValue = $this->devisData["configuration"]->tva_default; - $this->SetFont('ComicSans', '', 10); + $this->SetFont('Arial', '', 10); $this->SetXY(10, 106); $this->Cell(20, 8, "Date", 0, 0, 'C'); @@ -140,7 +139,7 @@ class DevisPdfHandler extends FPDF public function DrawArticlesTableValueAndReturnTotalPrice() { - $this->SetFont('ComicSans', '', 10); + $this->SetFont('Arial', '', 10); $tvaValue = $this->devisData["configuration"]->tva_default; $totalHt = 0; $totalTtc = 0; @@ -187,14 +186,14 @@ class DevisPdfHandler extends FPDF private function DrawBankAndTotalPriceInfo($totalPriceArray) { $this->SetY(210); - $this->SetFont('ComicSans', '', 9); + $this->SetFont('Arial', '', 9); $this->MultiCell(0, 5, utf8_decode(html_entity_decode("Paiement à votre convenance par chèque à l'ordre de " . $this->devisData['configuration']->entreprise))); $this->MultiCell(0, 5, utf8_decode(html_entity_decode("en indiquant le numéro de facture, ou par virement :"))); $this->Ln(1); //Table IBAN - $this->SetFont('ComicSans', '', 11); + $this->SetFont('Arial', '', 11); $ibanWidth = 90; $ibanCursorY = $this->GetY(); $this->Cell($ibanWidth, 7, 'IBAN : FR76 1080 7004 4952 4211 5185 411', 1, 1, 'C'); diff --git a/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceFunecapPdfHandler.php b/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceFunecapPdfHandler.php index 34649a8..65042c0 100644 --- a/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceFunecapPdfHandler.php +++ b/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceFunecapPdfHandler.php @@ -34,7 +34,7 @@ class InvoiceFunecapPdfHandler extends InvoiceGroupPdfHandler { public int $maxArticlePerPage = 6; public function DrawArticlesTableValue(){ - $this->SetFont('ComicSans','',10); + $this->SetFont('Arial','',10); $devisData = $this->factureData['devis']; $tvaValue = $this->factureData["configuration"]->tva_default; $totalHt = 0; diff --git a/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceGroupPdfHandler.php b/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceGroupPdfHandler.php index 3737a79..1156070 100644 --- a/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceGroupPdfHandler.php +++ b/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceGroupPdfHandler.php @@ -114,7 +114,7 @@ class InvoiceGroupPdfHandler extends FPDF function Footer() { $this->SetY(-34); - $this->SetFont('ComicSans', '', 7); + $this->SetFont('Arial', '', 7); $this->MultiCell(0, 4, utf8_decode(html_entity_decode('Tout retard de paiement entraînera de plein droit une pénalité de retard de 3 fois le taux légal '))); $this->MultiCell(0, 4, utf8_decode(html_entity_decode('(Loi 2008-776 du 4 août 2008) et une indemnité forfaitaire de 40 EUR pour frais de recouvrement sera appliquée.'))); @@ -124,7 +124,7 @@ class InvoiceGroupPdfHandler extends FPDF $this->MultiCell(0, 4, utf8_decode(html_entity_decode('sera due sur présentation de justificatifs (articles L.441-3 et L.441-6 du code de commerce).'))); $this->SetY(-10); - $this->SetFont('ComicSans', '', 7); + $this->SetFont('Arial', '', 7); $this->Cell(0, 10, utf8_decode(html_entity_decode($this->factureData['configuration']->legal_one)), 0, 0, 'C'); } @@ -172,7 +172,7 @@ class InvoiceGroupPdfHandler extends FPDF public function DrawInvoiceCompanyInfo() { $this->SetY(40); - $this->SetFont('ComicSans', '', 10); + $this->SetFont('Arial', '', 10); $this->Cell(0, $this->interLigneHeader, FileExportHelpers::FormatTextForExport($this->factureData['configuration']->entreprise), 0, 1); $this->Cell(0, $this->interLigneHeader, FileExportHelpers::FormatTextForExport($this->factureData['configuration_adresse']), 0, 1); $this->Cell(0, $this->interLigneHeader, FileExportHelpers::FormatTextForExport($this->factureData['configuration_adresse_city']), 0, 1); @@ -181,7 +181,7 @@ class InvoiceGroupPdfHandler extends FPDF } public function DrawInvoiceClientInfo() { - $this->SetFont('ComicSans', '', 10); + $this->SetFont('Arial', '', 10); $clientName = $this->factureData['group_name']; $clientInfoXAxis = 135; @@ -271,13 +271,13 @@ class InvoiceGroupPdfHandler extends FPDF $factureDateEcheance->modify('last day of next month'); $factureDateEcheance = $factureDateEcheance->format('d-m-Y'); - $this->SetFont('ComicSans', '', 10); + $this->SetFont('Arial', '', 10); $this->Cell(25, 7, 'DATE', 1, 0, 'C'); $this->Cell(104, 7, 'CLIENT', 1, 0, 'C'); $this->Cell(39, 7, 'FACTURE', 1, 0, 'C'); $this->Cell(36, 7, 'ECHEANCE', 1, 1, 'C'); - $this->SetFont('ComicSans', '', 10); + $this->SetFont('Arial', '', 10); $this->Cell(25, 7, $factureDatePaiement, 1, 0, 'C'); $this->Cell(104, 7, utf8_decode(html_entity_decode($this->factureData['group_name'])), 1, 0, 'C'); $this->Cell(39, 7, $this->factureData['num'], 1, 0, 'C'); @@ -311,7 +311,7 @@ class InvoiceGroupPdfHandler extends FPDF $additionalMargRight = 1; $tvaValue = $this->factureData["configuration"]->tva_default; $columnNameY = $this->startingYOfArticlesTable - 1.5; - $this->SetFont('ComicSans', '', 10); + $this->SetFont('Arial', '', 10); $this->SetXY(12 + $additionalMargRight, $columnNameY); $this->Cell(7, 10, "Date", 0, 0, 'C'); @@ -332,7 +332,7 @@ class InvoiceGroupPdfHandler extends FPDF { // Set espacement avant de continue - $this->SetFont('ComicSans', '', 10); + $this->SetFont('Arial', '', 10); $devisData = $this->factureData['devis']; $tvaValue = $this->factureData["configuration"]->tva_default; $totalHt = 0; @@ -411,7 +411,7 @@ class InvoiceGroupPdfHandler extends FPDF { $startOfYAfterMainTable = 239; $this->SetY($startOfYAfterMainTable); - $this->SetFont('ComicSans', '', 8); + $this->SetFont('Arial', '', 8); $this->MultiCell(0, 4, utf8_decode(html_entity_decode("Paiement à votre convenance par chèque à l'ordre de " . $this->factureData['configuration']->entreprise))); $this->MultiCell(0, 4, utf8_decode(html_entity_decode("en indiquant le numéro de facture, ou par virement :"))); @@ -419,7 +419,7 @@ class InvoiceGroupPdfHandler extends FPDF //Table IBAN $startOftable = 3; $this->SetX($startOftable); - $this->SetFont('ComicSans', '', 8); + $this->SetFont('Arial', '', 8); $ibanWidth = 62; $this->Cell($ibanWidth, 6.5, 'IBAN : FR76 1080 7004 4952 4211 5185 411', 1, 1, 'C'); $ibanCursorX = $this->GetX(); @@ -435,7 +435,7 @@ class InvoiceGroupPdfHandler extends FPDF $startOfArrayX = $pageWidth - $tableWidth - $marginRight; $startOfArrayY = $startOfYAfterMainTable + 0.5; - $this->SetFont('ComicSans', '', 10); + $this->SetFont('Arial', '', 10); $totalPriceArray = $this->totalPrices; foreach ($totalPriceArray as $label => $price) { $this->SetXY($startOfArrayX, $startOfArrayY); diff --git a/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceOgfPdfHandler.php b/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceOgfPdfHandler.php index 4820d48..31212ae 100644 --- a/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceOgfPdfHandler.php +++ b/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceOgfPdfHandler.php @@ -33,7 +33,7 @@ use OCA\Gestion\Helpers\PriceHelpers; class InvoiceOgfPdfHandler extends InvoiceGroupPdfHandler { public function DrawInvoiceClientInfo(){ - $this->SetFont('ComicSans', '', 10); + $this->SetFont('Arial', '', 10); $clientName = $this->factureData['group_name']; $clientInfoXAxis = 125; @@ -78,14 +78,14 @@ class InvoiceOgfPdfHandler extends InvoiceGroupPdfHandler { $factureDatePaiement = $factureDatePaiement->format('d-m-Y'); $factureDateEcheance->modify('last day of next month'); $factureDateEcheance = $factureDateEcheance->format('d-m-Y'); - $this->SetFont('ComicSans', '', 9); + $this->SetFont('Arial', '', 9); $this->Cell(30, 7, 'DATE', 1, 0, 'C'); $this->Cell(60, 7, 'CLIENT', 1, 0, 'C'); $this->Cell(40, 7, 'FACTURE', 1, 0, 'C'); $this->Cell(40, 7, 'ECHEANCE', 1, 0, 'C'); $this->Cell(34, 7, 'COMMANDE', 1, 1, 'C'); - $this->SetFont('ComicSans', '', 10); + $this->SetFont('Arial', '', 10); $this->Cell(30, 7, $factureDatePaiement, 1, 0, 'C'); $this->Cell(60, 7, utf8_decode(html_entity_decode($this->factureData['group_name'])), 1, 0, 'C'); $this->Cell(40, 7, $this->factureData['num'], 1, 0, 'C'); diff --git a/gestion/lib/Service/InvoicePdfHandler.php b/gestion/lib/Service/InvoicePdfHandler.php index 7a47e72..851dc9b 100644 --- a/gestion/lib/Service/InvoicePdfHandler.php +++ b/gestion/lib/Service/InvoicePdfHandler.php @@ -100,7 +100,7 @@ class InvoicePdfHandler extends FPDF function Footer() { $this->SetY(-34); - $this->SetFont('ComicSans', '', 7); + $this->SetFont('Arial', '', 7); $this->MultiCell(0, 4, utf8_decode(html_entity_decode('Tout retard de paiement entraînera de plein droit une pénalité de retard de 3 fois le taux légal '))); $this->MultiCell(0, 4, utf8_decode(html_entity_decode('(Loi 2008-776 du 4 août 2008) et une indemnité forfaitaire de 40 EUR pour frais de recouvrement sera appliquée.'))); @@ -109,7 +109,7 @@ class InvoicePdfHandler extends FPDF $this->MultiCell(0, 4, utf8_decode(html_entity_decode('sera due sur présentation de justificatifs (articles L.441-3 et L.441-6 du code de commerce).'))); $this->SetY(-10); - $this->SetFont('ComicSans', '', 7); + $this->SetFont('Arial', '', 7); $this->Cell(0, 10, utf8_decode(html_entity_decode($this->factureData['configuration']->legal_one)), 0, 0, 'C'); } @@ -153,7 +153,7 @@ class InvoicePdfHandler extends FPDF private function DrawInvoiceCompanyInfo() { $this->SetY(40); - $this->SetFont('ComicSans', '', 10); + $this->SetFont('Arial', '', 10); $this->Cell(0, $this->interLigneHeader, FileExportHelpers::FormatTextForExport($this->factureData['configuration']->entreprise), 0, 1); $this->Cell(0, $this->interLigneHeader, FileExportHelpers::FormatTextForExport($this->factureData['configuration_adresse']), 0, 1); $this->Cell(0, $this->interLigneHeader, FileExportHelpers::FormatTextForExport($this->factureData['configuration_adresse_city']), 0, 1); @@ -162,7 +162,7 @@ class InvoicePdfHandler extends FPDF } private function DrawInvoiceClientInfo() { - $this->SetFont('ComicSans', '', 10); + $this->SetFont('Arial', '', 10); $clientName = $this->factureData['client_nom']; if ($this->factureData["group_name"] != null && $this->factureData["group_name"] != "") { $clientName = $this->factureData['group_name']; @@ -232,14 +232,14 @@ class InvoicePdfHandler extends FPDF $factureDateEcheance->modify('last day of next month'); $factureDateEcheance = $factureDateEcheance->format('d-m-Y'); - $this->SetFont('ComicSans', '', 10); + $this->SetFont('Arial', '', 10); $this->Cell(25, 7, 'DATE', 1, 0, 'C'); $this->Cell(104, 7, 'CLIENT', 1, 0, 'C'); $this->Cell(39, 7, 'FACTURE', 1, 0, 'C'); $this->Cell(36, 7, 'ECHEANCE', 1, 1, 'C'); - $this->SetFont('ComicSans', '', 10); + $this->SetFont('Arial', '', 10); $this->Cell(25, 7, $factureDatePaiement, 1, 0, 'C'); $this->Cell(104, 7, utf8_decode(html_entity_decode($this->factureData['client_nom'])), 1, 0, 'C'); $this->Cell(39, 7, $this->factureData['num'], 1, 0, 'C'); @@ -289,7 +289,7 @@ class InvoicePdfHandler extends FPDF $additionalMargRight = 1; $tvaValue = $this->factureData["configuration"]->tva_default; $columnNameY = $this->startingYOfArticlesTable - 1; - $this->SetFont('ComicSans', '', 10); + $this->SetFont('Arial', '', 10); $this->SetXY(12 + $additionalMargRight, $columnNameY); $this->Cell(7, 10, "Date", 0, 0, 'C'); @@ -308,7 +308,7 @@ class InvoicePdfHandler extends FPDF public function DrawArticlesTableValueAndReturnTotalPrice() { - $this->SetFont('ComicSans', '', 10); + $this->SetFont('Arial', '', 10); $devisDate = $this->factureData['devis_date']; $devisDate = DateTime::createFromFormat('Y-m-d', $devisDate); $devisDate = $devisDate->format('d-m-Y'); @@ -363,7 +363,7 @@ class InvoicePdfHandler extends FPDF { $startOfYAfterMainTable = 236; $this->SetY($startOfYAfterMainTable); - $this->SetFont('ComicSans', '', 8); + $this->SetFont('Arial', '', 8); $this->MultiCell(0, 4, utf8_decode(html_entity_decode("Paiement à votre convenance par chèque à l'ordre de " . $this->factureData['configuration']->entreprise))); $this->MultiCell(0, 4, utf8_decode(html_entity_decode("en indiquant le numéro de facture, ou par virement :"))); @@ -371,7 +371,7 @@ class InvoicePdfHandler extends FPDF $startOftable = 3; $this->SetX($startOftable); // Table IBAN - $this->SetFont('ComicSans', '', 8); + $this->SetFont('Arial', '', 8); $ibanWidth = 62; $this->Cell($ibanWidth, 6.5, 'IBAN : FR76 1080 7004 4952 4211 5185 411', 1, 1, 'C'); $this->SetX($startOftable); @@ -386,7 +386,7 @@ class InvoicePdfHandler extends FPDF $startOfArrayX = $pageWidth - $tableWidth - $marginRight; $startOfArrayY = $startOfYAfterMainTable + 0.5; - $this->SetFont('ComicSans', '', 10); + $this->SetFont('Arial', '', 10); foreach ($totalPriceArray as $label => $price) { $this->SetXY($startOfArrayX, $startOfArrayY); diff --git a/gestion/lib/Service/InvoicePdfService.php b/gestion/lib/Service/InvoicePdfService.php index 640117f..72f30cc 100644 --- a/gestion/lib/Service/InvoicePdfService.php +++ b/gestion/lib/Service/InvoicePdfService.php @@ -93,8 +93,8 @@ class InvoicePdfService { $clean_folder = html_entity_decode(string: $currentConfig->path).'/'; $factureFolders = $this->getFacturesFolder($invoicePdfData,$clean_folder); $pdf = new InvoicePdfHandler(); - $pdf->AddFont('ComicSans','','Comic Sans MS.php'); - $pdf->AddFont('ComicSans','B','comic-sans-bold.php'); + // $pdf->AddFont('ComicSans','','Comic Sans MS.php'); + // $pdf->AddFont('ComicSans','B','comic-sans-bold.php'); $pdf->InvoicePdfFactory($invoicePdfData,$logo); $pdf->SetFactureContent(); $pdfContent = $pdf->Output('','S'); @@ -188,8 +188,8 @@ class InvoicePdfService { $pdf = new InvoiceGroupPdfHandler(); break; } - $pdf->AddFont('ComicSans','','Comic Sans MS.php'); - $pdf->AddFont('ComicSans','B','comic-sans-bold.php'); + // $pdf->AddFont('ComicSans','','Comic Sans MS.php'); + // $pdf->AddFont('ComicSans','B','comic-sans-bold.php'); $pdf->InvoicePdfFactory($invoicePdfData,$logo); $pdf->SetFactureContent(); $pdfContent = $pdf->Output('','S'); @@ -230,8 +230,8 @@ class InvoicePdfService { return null; } $pdf = new InvoicePdfHandler(); - $pdf->AddFont('ComicSans','','Comic Sans MS.php'); - $pdf->AddFont('ComicSans','B','comic-sans-bold.php'); + // $pdf->AddFont('ComicSans','','Comic Sans MS.php'); + // $pdf->AddFont('ComicSans','B','comic-sans-bold.php'); $pdf->MutlipleInvoicePdfFactory($invoiceData,$logo); $pdf->SetMultipleFactureContent(); $racinePath = html_entity_decode(string: $currentConfig->path).'/'; diff --git a/gestion/lib/Service/InvoiceRecap/InvoiceRecapService.php b/gestion/lib/Service/InvoiceRecap/InvoiceRecapService.php index 5c56d92..ac977c6 100644 --- a/gestion/lib/Service/InvoiceRecap/InvoiceRecapService.php +++ b/gestion/lib/Service/InvoiceRecap/InvoiceRecapService.php @@ -151,8 +151,8 @@ class InvoiceRecapService { foreach ($data_temp as $key_annee => $annee) { foreach ($annee as $key_mois => $mois) { $pdf = new FPDF(); - $pdf->AddFont('ComicSans','','Comic Sans MS.php'); - $pdf->AddFont('ComicSans','B','comic-sans-bold.php'); + $pdf->AddFont('Arial','','Comic Sans MS.php'); + $pdf->AddFont('Arial','B','comic-sans-bold.php'); $date_facture = $mois[0]['date_facture']; $date_temp = date("t-m-Y", strtotime($date_facture)); @@ -177,7 +177,7 @@ class InvoiceRecapService { //adresse de mon entreprise $companyInfoXAxis = 10; $companyInfoYAxis = 40; - $pdf->SetFont('ComicSans', '', 11); + $pdf->SetFont('Arial', '', 11); $pdf->SetXY($companyInfoXAxis,$companyInfoYAxis); $pdf->Cell(0, 7, FileExportHelpers::FormatTextForExport($defaultConfig[0]->entreprise)); $companyInfoYAxis += 7; @@ -197,7 +197,7 @@ class InvoiceRecapService { // adresse du facture $clientInfoXAxis = 125; $clientInfoYAxis = 40; - $pdf->SetFont('ComicSans','',size: 11); + $pdf->SetFont('Arial','',size: 11); $pdf->SetXY($clientInfoXAxis,$clientInfoYAxis); $pdf->Cell( 0, 7, utf8_decode($clientGroupFacturation["group_facturation_name"])); $clientInfoYAxis += 7; @@ -223,26 +223,26 @@ class InvoiceRecapService { // observations $objetYAxis = 110; - $pdf->SetFont( "ComicSans", "BU", 10 ); $pdf->SetXY( 10, $objetYAxis ) ; $pdf->Cell($pdf->GetStringWidth("Objet:"), 0, "Objet:", 0, "L"); + $pdf->SetFont( "Arial", "BU", 10 ); $pdf->SetXY( 10, $objetYAxis ) ; $pdf->Cell($pdf->GetStringWidth("Objet:"), 0, "Objet:", 0, "L"); $objet = utf8_decode("Récapitulatif Facturation du mois de ").strtoupper(FileExportHelpers::ConvertSpecialChar(explode(' ', $date_formated)[1])); - $pdf->SetFont( "ComicSans", "", 10 ); $pdf->SetXY( $pdf->GetStringWidth("Objet")+15, $objetYAxis ) ; $pdf->Cell($pdf->GetStringWidth($objet), 0, $objet, 0, "L"); + $pdf->SetFont( "Arial", "", 10 ); $pdf->SetXY( $pdf->GetStringWidth("Objet")+15, $objetYAxis ) ; $pdf->Cell($pdf->GetStringWidth($objet), 0, $objet, 0, "L"); $objetYAxis += 10; - $pdf->SetFont( "ComicSans", "", 10 ); $pdf->SetXY( $pdf->GetStringWidth("Objet")+15, $objetYAxis ); $pdf->Cell($pdf->GetStringWidth("Madame, Monsieur"), 0, "Madame, Monsieur", 0, "L"); + $pdf->SetFont( "Arial", "", 10 ); $pdf->SetXY( $pdf->GetStringWidth("Objet")+15, $objetYAxis ); $pdf->Cell($pdf->GetStringWidth("Madame, Monsieur"), 0, "Madame, Monsieur", 0, "L"); $text1 = utf8_decode("Veuillez trouver ci-dessous le récapitulatif de la facturation du mois de ").strtoupper(FileExportHelpers::ConvertSpecialChar(explode(' ', $date_formated)[1]))."."; $text2 = utf8_decode("Vous en souhaitant bonne réception."); $text3 = utf8_decode("Veuillez agréer, Madame, Monsieur, mes salutations les meilleures."); $objetYAxis += 10; - $pdf->SetFont( "ComicSans", "", 10 ); $pdf->SetXY( $pdf->GetStringWidth("Objet")+15, $objetYAxis ) ; $pdf->Cell($pdf->GetStringWidth($text1), 0, $text1, 0, "L"); + $pdf->SetFont( "Arial", "", 10 ); $pdf->SetXY( $pdf->GetStringWidth("Objet")+15, $objetYAxis ) ; $pdf->Cell($pdf->GetStringWidth($text1), 0, $text1, 0, "L"); $objetYAxis += 5; - $pdf->SetFont( "ComicSans", "", 10 ); $pdf->SetXY( $pdf->GetStringWidth("Objet")+15, $objetYAxis ) ; $pdf->Cell($pdf->GetStringWidth($text2), 0, $text2, 0, "L"); + $pdf->SetFont( "Arial", "", 10 ); $pdf->SetXY( $pdf->GetStringWidth("Objet")+15, $objetYAxis ) ; $pdf->Cell($pdf->GetStringWidth($text2), 0, $text2, 0, "L"); $objetYAxis += 5; - $pdf->SetFont( "ComicSans", "", 10 ); $pdf->SetXY( $pdf->GetStringWidth("Objet")+15, $objetYAxis ) ; $pdf->Cell($pdf->GetStringWidth($text3), 0, $text3, 0, "L"); + $pdf->SetFont( "Arial", "", 10 ); $pdf->SetXY( $pdf->GetStringWidth("Objet")+15, $objetYAxis ) ; $pdf->Cell($pdf->GetStringWidth($text3), 0, $text3, 0, "L"); // signature - $pdf->SetFont('ComicSans','',11); $pdf->SetXY( 145, 170); + $pdf->SetFont('Arial','',11); $pdf->SetXY( 145, 170); $pdf->Cell( $pdf->GetStringWidth($defaultConfig[0]->nom.' '.$defaultConfig[0]->prenom), 0, utf8_decode(html_entity_decode($defaultConfig[0]->nom.' '.$defaultConfig[0]->prenom)), 0, 0, 'L'); if($doesSignatureExist){ $pdf->Image($this->defaultImagePath."sign.png", 140, 175, 45,30); @@ -251,7 +251,7 @@ class InvoiceRecapService { $y0 = 260; $pageWidth = $pdf->GetPageWidth(); //Positionnement en bas et tout centrer - $pdf->SetFont('ComicSans','',6); + $pdf->SetFont('Arial','',6); $pdf->SetXY( 1, $y0 + 4 ); $pdf->Cell( $pageWidth, 5, utf8_decode(html_entity_decode($defaultConfig[0]->legal_one)), 0, 0, 'C'); $pdf->SetXY( 1, $y0 + 8 ); $pdf->Cell( $pageWidth, 5, utf8_decode(html_entity_decode($defaultConfig[0]->legal_two)), 0, 0, 'C'); @@ -282,7 +282,7 @@ class InvoiceRecapService { //adresse de mon entreprise $companyInfoXAxis = 10; $companyInfoYAxis = 40; - $pdf->SetFont('ComicSans', '', 11); + $pdf->SetFont('Arial', '', 11); $pdf->SetXY($companyInfoXAxis,$companyInfoYAxis); $pdf->Cell(0, 7, FileExportHelpers::FormatTextForExport($defaultConfig[0]->entreprise)); $companyInfoYAxis += 7; @@ -300,13 +300,13 @@ class InvoiceRecapService { // n° page en haute à droite if($nb_page>1){ - $pdf->SetXY( 120, 5 ); $pdf->SetFont( "ComicSans", "B", 9 ); $pdf->Cell( 160, 8, $num_page . '/' . $nb_page, 0, 0, 'C'); + $pdf->SetXY( 120, 5 ); $pdf->SetFont( "Arial", "B", 9 ); $pdf->Cell( 160, 8, $num_page . '/' . $nb_page, 0, 0, 'C'); } // adresse du facture $clientInfoXAxis = 125; $clientInfoYAxis = $clientAdressIsMultiline ? 33 : 40; - $pdf->SetFont('ComicSans','',size: 11); + $pdf->SetFont('Arial','',size: 11); $pdf->SetXY($clientInfoXAxis,$clientInfoYAxis); $pdf->Cell( 0, 7, utf8_decode('Groupe '.$clientGroupFacturation["group_facturation_name"])); $clientInfoYAxis += 7; @@ -352,13 +352,13 @@ class InvoiceRecapService { $pdf->Line(99, 80, 99, 233); } // titre colonne - $pdf->SetXY( 1, 81 ); $pdf->SetFont('ComicSans','B',8); $pdf->Cell( 30, 8, FileExportHelpers::FormatTextForExport("N°"), 0, 0, 'C'); - $pdf->SetXY( 26, 81 ); $pdf->SetFont('ComicSans','B',8); $pdf->Cell( 18, 8, "Date", 0, 0, 'C'); - $pdf->SetXY( 47, 81 ); $pdf->SetFont('ComicSans','B',8); $pdf->Cell( 50, 8, FileExportHelpers::FormatTextForExport("Défunt"), 0, 0, 'C'); - $pdf->SetXY( 100, 81 ); $pdf->SetFont('ComicSans','B',8); $pdf->Cell( 45, 8, FileExportHelpers::FormatTextForExport("Articles"), 0, 0, 'C'); - $pdf->SetXY( 147, 81 ); $pdf->SetFont('ComicSans','B',8); $pdf->Cell( 13, 8, "H.T.", 0, 0, 'C'); - $pdf->SetXY( 168, 81 ); $pdf->SetFont('ComicSans','B',8); $pdf->Cell( 10, 8, "TVA 20%", 0, 0, 'C'); - $pdf->SetXY( 183, 81 ); $pdf->SetFont('ComicSans','B',8); $pdf->Cell( 22, 8, "T.T.C", 0, 0, 'C'); + $pdf->SetXY( 1, 81 ); $pdf->SetFont('Arial','B',8); $pdf->Cell( 30, 8, FileExportHelpers::FormatTextForExport("N°"), 0, 0, 'C'); + $pdf->SetXY( 26, 81 ); $pdf->SetFont('Arial','B',8); $pdf->Cell( 18, 8, "Date", 0, 0, 'C'); + $pdf->SetXY( 47, 81 ); $pdf->SetFont('Arial','B',8); $pdf->Cell( 50, 8, FileExportHelpers::FormatTextForExport("Défunt"), 0, 0, 'C'); + $pdf->SetXY( 100, 81 ); $pdf->SetFont('Arial','B',8); $pdf->Cell( 45, 8, FileExportHelpers::FormatTextForExport("Articles"), 0, 0, 'C'); + $pdf->SetXY( 147, 81 ); $pdf->SetFont('Arial','B',8); $pdf->Cell( 13, 8, "H.T.", 0, 0, 'C'); + $pdf->SetXY( 168, 81 ); $pdf->SetFont('Arial','B',8); $pdf->Cell( 10, 8, "TVA 20%", 0, 0, 'C'); + $pdf->SetXY( 183, 81 ); $pdf->SetFont('Arial','B',8); $pdf->Cell( 22, 8, "T.T.C", 0, 0, 'C'); // (new DateTime($facture['date_soin']))->format('d-M') $formatter_ds = new IntlDateFormatter('fr_FR', IntlDateFormatter::SHORT, IntlDateFormatter::NONE); @@ -376,20 +376,20 @@ class InvoiceRecapService { $defuntNameText = $mois[$index_facture_position]['defunt']; $defuntNameTextWidth = $pdf->GetStringWidth($defuntNameText); $defuntNameTextIsMultiline = $defuntNameTextWidth >= 50; - $pdf->SetXY( 6, $y_facture ); $pdf->SetFont('ComicSans','',8); $pdf->Cell( 28, 5, $mois[$index_facture_position]['num'], 0, 0, ''); - $pdf->SetXY( 29, $y_facture ); $pdf->SetFont('ComicSans','',8); $pdf->Cell( 28, 5, utf8_decode($formatter_ds->format($date_soin_temp)), 0, 0, ''); + $pdf->SetXY( 6, $y_facture ); $pdf->SetFont('Arial','',8); $pdf->Cell( 28, 5, $mois[$index_facture_position]['num'], 0, 0, ''); + $pdf->SetXY( 29, $y_facture ); $pdf->SetFont('Arial','',8); $pdf->Cell( 28, 5, utf8_decode($formatter_ds->format($date_soin_temp)), 0, 0, ''); $pdf->SetXY( 47, $y_facture ); - $pdf->SetFont('ComicSans','',8); + $pdf->SetFont('Arial','',8); if($defuntNameTextIsMultiline){ $pdf->MultiCell( 50, 5, FileExportHelpers::FormatTextForExport($defuntNameText),0,'L'); } else{ $pdf->Cell( 50, 5, FileExportHelpers::FormatTextForExport($defuntNameText),0); } - $pdf->SetXY( 100, $y_facture ); $pdf->SetFont('ComicSans','',8); $pdf->Cell( 38, 5, FileExportHelpers::FormatTextForExport($mois[$index_facture_position]['produit_references']), 0, 0, ''); - $pdf->SetXY( 147, $y_facture ); $pdf->SetFont('ComicSans','',8); $pdf->Cell( 13, 5, number_format($mois[$index_facture_position]['montant_htc'],2,'.','').chr(128), 0, 0, 'C'); - $pdf->SetXY( 168, $y_facture ); $pdf->SetFont('ComicSans','',8); $pdf->Cell( 10, 5, number_format($mois[$index_facture_position]['montant_tva'],2,'.','').chr(128), 0, 0, 'C'); - $pdf->SetXY( 183, $y_facture ); $pdf->SetFont('ComicSans','',8); $pdf->Cell( 22, 5, number_format($mois[$index_facture_position]['montant_ttc'],2,'.','').chr(128), 0, 0, 'C'); + $pdf->SetXY( 100, $y_facture ); $pdf->SetFont('Arial','',8); $pdf->Cell( 38, 5, FileExportHelpers::FormatTextForExport($mois[$index_facture_position]['produit_references']), 0, 0, ''); + $pdf->SetXY( 147, $y_facture ); $pdf->SetFont('Arial','',8); $pdf->Cell( 13, 5, number_format($mois[$index_facture_position]['montant_htc'],2,'.','').chr(128), 0, 0, 'C'); + $pdf->SetXY( 168, $y_facture ); $pdf->SetFont('Arial','',8); $pdf->Cell( 10, 5, number_format($mois[$index_facture_position]['montant_tva'],2,'.','').chr(128), 0, 0, 'C'); + $pdf->SetXY( 183, $y_facture ); $pdf->SetFont('Arial','',8); $pdf->Cell( 22, 5, number_format($mois[$index_facture_position]['montant_ttc'],2,'.','').chr(128), 0, 0, 'C'); $montant_ht_total = $montant_ht_total+$mois[$index_facture_position]['montant_htc']; $montant_tva_total = $montant_tva_total+$mois[$index_facture_position]['montant_tva']; @@ -409,13 +409,13 @@ class InvoiceRecapService { if ($num_page == $nb_page) { $pdf->Line(5, 225, 205, 225); - $pdf->SetFont('ComicSans','B',8); $pdf->SetXY( 5, 225 ); $pdf->Cell( 140, 8, 'TOTAL', 0, 0, 'C'); - $pdf->SetFont('ComicSans','',8); $pdf->SetXY( 147, 225 ); $pdf->Cell( 13, 8, number_format($montant_ht_total,2,'.','').chr(128), 0, 0, 'C'); - $pdf->SetFont('ComicSans','',8); $pdf->SetXY( 168, 225 ); $pdf->Cell( 10, 8, number_format($montant_tva_total,2,'.','').chr(128), 0, 0, 'C'); - $pdf->SetFont('ComicSans','',8); $pdf->SetXY( 183, 225 ); $pdf->Cell( 22, 8, number_format($montant_ttc_total,2,'.','').chr(128), 0, 0, 'C'); + $pdf->SetFont('Arial','B',8); $pdf->SetXY( 5, 225 ); $pdf->Cell( 140, 8, 'TOTAL', 0, 0, 'C'); + $pdf->SetFont('Arial','',8); $pdf->SetXY( 147, 225 ); $pdf->Cell( 13, 8, number_format($montant_ht_total,2,'.','').chr(128), 0, 0, 'C'); + $pdf->SetFont('Arial','',8); $pdf->SetXY( 168, 225 ); $pdf->Cell( 10, 8, number_format($montant_tva_total,2,'.','').chr(128), 0, 0, 'C'); + $pdf->SetFont('Arial','',8); $pdf->SetXY( 183, 225 ); $pdf->Cell( 22, 8, number_format($montant_ttc_total,2,'.','').chr(128), 0, 0, 'C'); - $pdf->SetFont('ComicSans','B',8); $pdf->SetXY( 147, 233 ); $pdf->Cell( 30, 6.5, 'TOTAL TTC', 0, 0, 'C'); - $pdf->SetFont('ComicSans','B',8); $pdf->SetXY( 183, 233 ); $pdf->Cell( 22, 6.5, number_format($montant_ttc_total,2,'.','').chr(128), 0, 0, 'C', true); + $pdf->SetFont('Arial','B',8); $pdf->SetXY( 147, 233 ); $pdf->Cell( 30, 6.5, 'TOTAL TTC', 0, 0, 'C'); + $pdf->SetFont('Arial','B',8); $pdf->SetXY( 183, 233 ); $pdf->Cell( 22, 6.5, number_format($montant_ttc_total,2,'.','').chr(128), 0, 0, 'C', true); $pdf->Line(145, 233, 145, 240); $pdf->Line(183, 233, 183, 240); $pdf->Line(183, 233, 205, 233); @@ -428,7 +428,7 @@ class InvoiceRecapService { $pdf->SetFillColor(255); $pdf->SetTextColor(0, 0, 0); - $pdf->SetFont('ComicSans','',9); + $pdf->SetFont('Arial','',9); $pdf->SetXY( 10, $y1 ); $pdf->Cell( $pdf->GetPageWidth(), 4, utf8_decode("Loi N° 92-442 du 31 décembre 1992: La présente facture est payable en comptant a réception."), 0, 0, 'L'); $pdf->SetXY( 10, $y1 + 4 ); $pdf->Cell( $pdf->GetPageWidth(), 4, utf8_decode("Indemnité forfaitaire pour frais de recouvrement due en cas de retard de paiement: 40").chr(128), 0, 0, 'L'); @@ -438,7 +438,7 @@ class InvoiceRecapService { // pied de page // ************************** - $pdf->SetFont('ComicSans','',6); + $pdf->SetFont('Arial','',6); $pdf->SetXY( 1, $y0 + 4 ); $pdf->Cell( $pageWidth, 5, utf8_decode(html_entity_decode($defaultConfig[0]->legal_one)), 0, 0, 'C'); $pdf->SetXY( 1, $y0 + 8 ); $pdf->Cell( $pageWidth, 5, utf8_decode(html_entity_decode($defaultConfig[0]->legal_two)), 0, 0, 'C'); $pdf->SetXY( 1, $y0 + 12 ); $pdf->Cell( $pageWidth, 5, utf8_decode(html_entity_decode($defaultConfig[0]->telephone)), 0, 0, 'C'); @@ -543,8 +543,8 @@ class InvoiceRecapService { foreach ($annee as $key_mois => $mois) { foreach ($mois as $key_client => $client) { $pdf = new FPDF(); - $pdf->AddFont('ComicSans','','Comic Sans MS.php'); - $pdf->AddFont('ComicSans','B','comic-sans-bold.php'); + $pdf->AddFont('Arial','','Comic Sans MS.php'); + $pdf->AddFont('Arial','B','comic-sans-bold.php'); $current_client = ''; $clientHeaderLabel = ''; $clientAddress = ''; @@ -595,7 +595,7 @@ class InvoiceRecapService { //adresse de mon entreprise $companyInfoXAxis = 10; $companyInfoYAxis = 40; - $pdf->SetFont('ComicSans', '', 11); + $pdf->SetFont('Arial', '', 11); $pdf->SetXY($companyInfoXAxis,$companyInfoYAxis); $pdf->Cell(0, 7, FileExportHelpers::FormatTextForExport($defaultConfig[0]->entreprise)); $companyInfoYAxis += 7; @@ -615,7 +615,7 @@ class InvoiceRecapService { // adresse du facture $clientInfoXAxis = 125; $clientInfoYAxis = 40; - $pdf->SetFont('ComicSans','',size: 11); + $pdf->SetFont('Arial','',size: 11); $pdf->SetXY($clientInfoXAxis,$clientInfoYAxis); $pdf->Cell( 0, 7, utf8_decode($clientHeaderLabel)); $clientInfoYAxis += 7; @@ -640,26 +640,26 @@ class InvoiceRecapService { // observations $objetYAxis = 110; - $pdf->SetFont( "ComicSans", "BU", 10 ); $pdf->SetXY( 10, $objetYAxis ) ; $pdf->Cell($pdf->GetStringWidth("Objet:"), 0, "Objet:", 0, "L"); + $pdf->SetFont( "Arial", "BU", 10 ); $pdf->SetXY( 10, $objetYAxis ) ; $pdf->Cell($pdf->GetStringWidth("Objet:"), 0, "Objet:", 0, "L"); $objet = utf8_decode("Récapitulatif Facturation du mois de ").strtoupper(FileExportHelpers::ConvertSpecialChar(explode(' ', $date_formated)[1])); - $pdf->SetFont( "ComicSans", "", 10 ); $pdf->SetXY( $pdf->GetStringWidth("Objet")+15, $objetYAxis ) ; $pdf->Cell($pdf->GetStringWidth($objet), 0, $objet, 0, "L"); + $pdf->SetFont( "Arial", "", 10 ); $pdf->SetXY( $pdf->GetStringWidth("Objet")+15, $objetYAxis ) ; $pdf->Cell($pdf->GetStringWidth($objet), 0, $objet, 0, "L"); $objetYAxis += 10; - $pdf->SetFont( "ComicSans", "", 10 ); $pdf->SetXY( $pdf->GetStringWidth("Objet")+15, $objetYAxis ); $pdf->Cell($pdf->GetStringWidth("Madame, Monsieur"), 0, "Madame, Monsieur", 0, "L"); + $pdf->SetFont( "Arial", "", 10 ); $pdf->SetXY( $pdf->GetStringWidth("Objet")+15, $objetYAxis ); $pdf->Cell($pdf->GetStringWidth("Madame, Monsieur"), 0, "Madame, Monsieur", 0, "L"); $text1 = utf8_decode("Veuillez trouver ci-dessous le récapitulatif de la facturation du mois de ").strtoupper(FileExportHelpers::ConvertSpecialChar(explode(' ', $date_formated)[1]))."."; $text2 = utf8_decode("Vous en souhaitant bonne réception."); $text3 = utf8_decode("Veuillez agréer, Madame, Monsieur, mes salutations les meilleures."); $objetYAxis += 10; - $pdf->SetFont( "ComicSans", "", 10 ); $pdf->SetXY( $pdf->GetStringWidth("Objet")+15, $objetYAxis ) ; $pdf->Cell($pdf->GetStringWidth($text1), 0, $text1, 0, "L"); + $pdf->SetFont( "Arial", "", 10 ); $pdf->SetXY( $pdf->GetStringWidth("Objet")+15, $objetYAxis ) ; $pdf->Cell($pdf->GetStringWidth($text1), 0, $text1, 0, "L"); $objetYAxis += 5; - $pdf->SetFont( "ComicSans", "", 10 ); $pdf->SetXY( $pdf->GetStringWidth("Objet")+15, $objetYAxis ) ; $pdf->Cell($pdf->GetStringWidth($text2), 0, $text2, 0, "L"); + $pdf->SetFont( "Arial", "", 10 ); $pdf->SetXY( $pdf->GetStringWidth("Objet")+15, $objetYAxis ) ; $pdf->Cell($pdf->GetStringWidth($text2), 0, $text2, 0, "L"); $objetYAxis += 5; - $pdf->SetFont( "ComicSans", "", 10 ); $pdf->SetXY( $pdf->GetStringWidth("Objet")+15, $objetYAxis ) ; $pdf->Cell($pdf->GetStringWidth($text3), 0, $text3, 0, "L"); + $pdf->SetFont( "Arial", "", 10 ); $pdf->SetXY( $pdf->GetStringWidth("Objet")+15, $objetYAxis ) ; $pdf->Cell($pdf->GetStringWidth($text3), 0, $text3, 0, "L"); // signature - $pdf->SetFont('ComicSans','',11); $pdf->SetXY( 145, 170); + $pdf->SetFont('Arial','',11); $pdf->SetXY( 145, 170); $pdf->Cell( $pdf->GetStringWidth($defaultConfig[0]->nom.' '.$defaultConfig[0]->prenom), 0, utf8_decode(html_entity_decode($defaultConfig[0]->nom.' '.$defaultConfig[0]->prenom)), 0, 0, 'L'); if($doesSignatureExist){ $pdf->Image($this->defaultImagePath."sign.png", 140, 175, 45,30); @@ -668,7 +668,7 @@ class InvoiceRecapService { $y0 = 260; $pageWidth = $pdf->GetPageWidth(); //Positionnement en bas et tout centrer - $pdf->SetFont('ComicSans','',7); + $pdf->SetFont('Arial','',7); $pdf->SetXY( 1, $y0 + 4 ); $pdf->Cell( $pageWidth, 5, utf8_decode(html_entity_decode($defaultConfig[0]->mentions_default)), 0, 0, 'C'); $pdf->SetXY( 1, $y0 + 8 ); $pdf->Cell( $pageWidth, 5, utf8_decode(html_entity_decode($defaultConfig[0]->legal_one)), 0, 0, 'C'); $pdf->SetXY( 1, $y0 + 12 ); $pdf->Cell( $pageWidth, 5, utf8_decode(html_entity_decode($defaultConfig[0]->legal_two)), 0, 0, 'C'); @@ -698,7 +698,7 @@ class InvoiceRecapService { //adresse de mon entreprise $companyInfoXAxis = 10; $companyInfoYAxis = 40; - $pdf->SetFont('ComicSans', '', 11); + $pdf->SetFont('Arial', '', 11); $pdf->SetXY($companyInfoXAxis,$companyInfoYAxis); $pdf->Cell(0, 7, FileExportHelpers::FormatTextForExport($defaultConfig[0]->entreprise)); $companyInfoYAxis += 7; @@ -716,13 +716,13 @@ class InvoiceRecapService { // n° page en haute à droite if($nb_page>1){ - $pdf->SetXY( 120, 5 ); $pdf->SetFont( "ComicSans", "B", 9 ); $pdf->Cell( 160, 8, $num_page . '/' . $nb_page, 0, 0, 'C'); + $pdf->SetXY( 120, 5 ); $pdf->SetFont( "Arial", "B", 9 ); $pdf->Cell( 160, 8, $num_page . '/' . $nb_page, 0, 0, 'C'); } // adresse du facture $clientInfoXAxis = 125; $clientInfoYAxis = $clientAdressIsMultiline ? 33 : 40; - $pdf->SetFont('ComicSans','',size: 11); + $pdf->SetFont('Arial','',size: 11); $pdf->SetXY($clientInfoXAxis,$clientInfoYAxis); $pdf->Cell( 0, 7, utf8_decode($clientHeaderLabel)); $clientInfoYAxis += 7; @@ -768,13 +768,13 @@ class InvoiceRecapService { $pdf->Line(99, 80, 99, 233); } // titre colonne - $pdf->SetXY( 1, 81 ); $pdf->SetFont('ComicSans','B',8); $pdf->Cell( 30, 8, FileExportHelpers::FormatTextForExport("N°"), 0, 0, 'C'); - $pdf->SetXY( 26, 81 ); $pdf->SetFont('ComicSans','B',8); $pdf->Cell( 18, 8, "Date", 0, 0, 'C'); - $pdf->SetXY( 47, 81 ); $pdf->SetFont('ComicSans','B',8); $pdf->Cell( 50, 8, FileExportHelpers::FormatTextForExport("Défunt"), 0, 0, 'C'); - $pdf->SetXY( 100, 81 ); $pdf->SetFont('ComicSans','B',8); $pdf->Cell( 45, 8, "Articles", 0, 0, 'C'); - $pdf->SetXY( 147, 81 ); $pdf->SetFont('ComicSans','B',8); $pdf->Cell( 13, 8, "H.T.", 0, 0, 'C'); - $pdf->SetXY( 168, 81 ); $pdf->SetFont('ComicSans','B',8); $pdf->Cell( 10, 8, "TVA 20%", 0, 0, 'C'); - $pdf->SetXY( 183, 81 ); $pdf->SetFont('ComicSans','B',8); $pdf->Cell( 22, 8, "T.T.C", 0, 0, 'C'); + $pdf->SetXY( 1, 81 ); $pdf->SetFont('Arial','B',8); $pdf->Cell( 30, 8, FileExportHelpers::FormatTextForExport("N°"), 0, 0, 'C'); + $pdf->SetXY( 26, 81 ); $pdf->SetFont('Arial','B',8); $pdf->Cell( 18, 8, "Date", 0, 0, 'C'); + $pdf->SetXY( 47, 81 ); $pdf->SetFont('Arial','B',8); $pdf->Cell( 50, 8, FileExportHelpers::FormatTextForExport("Défunt"), 0, 0, 'C'); + $pdf->SetXY( 100, 81 ); $pdf->SetFont('Arial','B',8); $pdf->Cell( 45, 8, "Articles", 0, 0, 'C'); + $pdf->SetXY( 147, 81 ); $pdf->SetFont('Arial','B',8); $pdf->Cell( 13, 8, "H.T.", 0, 0, 'C'); + $pdf->SetXY( 168, 81 ); $pdf->SetFont('Arial','B',8); $pdf->Cell( 10, 8, "TVA 20%", 0, 0, 'C'); + $pdf->SetXY( 183, 81 ); $pdf->SetFont('Arial','B',8); $pdf->Cell( 22, 8, "T.T.C", 0, 0, 'C'); // (new DateTime($facture['date_soin']))->format('d-M') $formatter_ds = new IntlDateFormatter('fr_FR', IntlDateFormatter::SHORT, IntlDateFormatter::NONE); @@ -792,19 +792,19 @@ class InvoiceRecapService { $defuntNameText = $client[$index_facture_position]['defunt']; $defuntNameTextWidth = $pdf->GetStringWidth($defuntNameText); $defuntNameTextIsMultiline = $defuntNameTextWidth >= 50; - $pdf->SetXY( 6, $y_facture ); $pdf->SetFont('ComicSans','',8); $pdf->Cell( 28, 5, $client[$index_facture_position]['num'], 0, 0, ''); - $pdf->SetXY( 29, $y_facture ); $pdf->SetFont('ComicSans','',8); $pdf->Cell( 18, 5, utf8_decode($formatter_ds->format($date_soin_temp)), 0, 0, ''); - $pdf->SetXY( 47, $y_facture ); $pdf->SetFont('ComicSans','',8); + $pdf->SetXY( 6, $y_facture ); $pdf->SetFont('Arial','',8); $pdf->Cell( 28, 5, $client[$index_facture_position]['num'], 0, 0, ''); + $pdf->SetXY( 29, $y_facture ); $pdf->SetFont('Arial','',8); $pdf->Cell( 18, 5, utf8_decode($formatter_ds->format($date_soin_temp)), 0, 0, ''); + $pdf->SetXY( 47, $y_facture ); $pdf->SetFont('Arial','',8); if($defuntNameTextIsMultiline){ $pdf->MultiCell( 50, 5, FileExportHelpers::FormatTextForExport($defuntNameText)); } else{ $pdf->Cell( 50, 5, FileExportHelpers::FormatTextForExport($defuntNameText),0); } - $pdf->SetXY( 100, $y_facture ); $pdf->SetFont('ComicSans','',8); $pdf->Cell( 28, 5, utf8_decode(html_entity_decode($client[$index_facture_position]['produit_references'])), 0, 0, ''); - $pdf->SetXY( 147, $y_facture ); $pdf->SetFont('ComicSans','',8); $pdf->Cell( 13, 5, number_format($client[$index_facture_position]['montant_htc'],2,'.','').chr(128), 0, 0, 'C'); - $pdf->SetXY( 168, $y_facture ); $pdf->SetFont('ComicSans','',8); $pdf->Cell( 10, 5, number_format($client[$index_facture_position]['montant_tva'],2,'.','').chr(128), 0, 0, 'C'); - $pdf->SetXY( 183, $y_facture ); $pdf->SetFont('ComicSans','',8); $pdf->Cell( 22, 5, number_format($client[$index_facture_position]['montant_ttc'],2,'.','').chr(128), 0, 0, 'C'); + $pdf->SetXY( 100, $y_facture ); $pdf->SetFont('Arial','',8); $pdf->Cell( 28, 5, utf8_decode(html_entity_decode($client[$index_facture_position]['produit_references'])), 0, 0, ''); + $pdf->SetXY( 147, $y_facture ); $pdf->SetFont('Arial','',8); $pdf->Cell( 13, 5, number_format($client[$index_facture_position]['montant_htc'],2,'.','').chr(128), 0, 0, 'C'); + $pdf->SetXY( 168, $y_facture ); $pdf->SetFont('Arial','',8); $pdf->Cell( 10, 5, number_format($client[$index_facture_position]['montant_tva'],2,'.','').chr(128), 0, 0, 'C'); + $pdf->SetXY( 183, $y_facture ); $pdf->SetFont('Arial','',8); $pdf->Cell( 22, 5, number_format($client[$index_facture_position]['montant_ttc'],2,'.','').chr(128), 0, 0, 'C'); $montant_ht_total = $montant_ht_total+$client[$index_facture_position]['montant_htc']; $montant_tva_total = $montant_tva_total+$client[$index_facture_position]['montant_tva']; @@ -824,13 +824,13 @@ class InvoiceRecapService { { $pdf->Line(5, 225, 205, 225); - $pdf->SetFont('ComicSans','B',8); $pdf->SetXY( 5, 225 ); $pdf->Cell( 140, 8, 'TOTAL', 0, 0, 'C'); - $pdf->SetFont('ComicSans','',8); $pdf->SetXY( 147, 225 ); $pdf->Cell( 13, 8, number_format($montant_ht_total,2,'.','').chr(128), 0, 0, 'C'); - $pdf->SetFont('ComicSans','',8); $pdf->SetXY( 168, 225 ); $pdf->Cell( 10, 8, number_format($montant_tva_total,2,'.','').chr(128), 0, 0, 'C'); - $pdf->SetFont('ComicSans','',8); $pdf->SetXY( 183, 225 ); $pdf->Cell( 22, 8, number_format($montant_ttc_total,2,'.','').chr(128), 0, 0, 'C'); + $pdf->SetFont('Arial','B',8); $pdf->SetXY( 5, 225 ); $pdf->Cell( 140, 8, 'TOTAL', 0, 0, 'C'); + $pdf->SetFont('Arial','',8); $pdf->SetXY( 147, 225 ); $pdf->Cell( 13, 8, number_format($montant_ht_total,2,'.','').chr(128), 0, 0, 'C'); + $pdf->SetFont('Arial','',8); $pdf->SetXY( 168, 225 ); $pdf->Cell( 10, 8, number_format($montant_tva_total,2,'.','').chr(128), 0, 0, 'C'); + $pdf->SetFont('Arial','',8); $pdf->SetXY( 183, 225 ); $pdf->Cell( 22, 8, number_format($montant_ttc_total,2,'.','').chr(128), 0, 0, 'C'); - $pdf->SetFont('ComicSans','B',8); $pdf->SetXY( 147, 233 ); $pdf->Cell( 30, 6.5, 'TOTAL TTC', 0, 0, 'C'); - $pdf->SetFont('ComicSans','B',8); $pdf->SetXY( 183, 233 ); $pdf->Cell( 22, 6.5, number_format($montant_ttc_total,2,'.','').chr(128), 0, 0, 'C', true); + $pdf->SetFont('Arial','B',8); $pdf->SetXY( 147, 233 ); $pdf->Cell( 30, 6.5, 'TOTAL TTC', 0, 0, 'C'); + $pdf->SetFont('Arial','B',8); $pdf->SetXY( 183, 233 ); $pdf->Cell( 22, 6.5, number_format($montant_ttc_total,2,'.','').chr(128), 0, 0, 'C', true); $pdf->Line(145, 233, 145, 240); $pdf->Line(183, 233, 183, 240); $pdf->Line(183, 233, 205, 233); @@ -843,7 +843,7 @@ class InvoiceRecapService { $pdf->SetFillColor(255); $pdf->SetTextColor(0, 0, 0); - $pdf->SetFont('ComicSans','',9); + $pdf->SetFont('Arial','',9); $pdf->SetXY( 10, $y1 );$pdf->Cell( $pdf->GetPageWidth(), 4, utf8_decode("Loi N° 92-442 du 31 décembre 1992: La présente facture est payable en comptant a réception."), 0, 0, 'L'); $pdf->SetXY( 10, $y1 + 4 );$pdf->Cell( $pdf->GetPageWidth(), 4, utf8_decode("Indemnité forfaitaire pour frais de recouvrement due en cas de retard de paiement: 40").chr(128), 0, 0, 'L'); @@ -853,7 +853,7 @@ class InvoiceRecapService { // pied de page // ************************** - $pdf->SetFont('ComicSans','',7); + $pdf->SetFont('Arial','',7); $pdf->SetXY( 1, $y0 + 4 ); $pdf->Cell( $pageWidth, 5, utf8_decode(html_entity_decode($defaultConfig[0]->mentions_default)), 0, 0, 'C'); $pdf->SetXY( 1, $y0 + 8 );$pdf->Cell( $pageWidth, 5, utf8_decode(html_entity_decode($defaultConfig[0]->legal_one)), 0, 0, 'C'); $pdf->SetXY( 1, $y0 + 12 );$pdf->Cell( $pageWidth, 5, utf8_decode(html_entity_decode($defaultConfig[0]->legal_two)), 0, 0, 'C');