diff --git a/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceGroupPdfHandler.php b/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceGroupPdfHandler.php index 7e208a7..3ed38a5 100644 --- a/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceGroupPdfHandler.php +++ b/gestion/lib/Service/InvoiceGroupPdfHandler/InvoiceGroupPdfHandler.php @@ -56,7 +56,7 @@ class InvoiceGroupPdfHandler extends FPDF { function Header() { if($this->logo != "nothing"){ - $this->Image($this->logoPath."logo.png", 10, 10, 75 ,25); + $this->Image($this->logoPath."logo.png", 2, 10, 75 ,25); $this->AddWatermark(); } else{ @@ -111,11 +111,11 @@ class InvoiceGroupPdfHandler extends FPDF { $this->SetFont('ComicSans', '', 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.'))); - $this->MultiCell(0,4,utf8_decode(html_entity_decode('sera appliquée.'))); + $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.'))); + $this->Ln(1); $this->MultiCell(0,4,utf8_decode(html_entity_decode('Si les frais de recouvrement sont supérieurs à ce montant forfaitaire, une indemnisation complémentaire'))); - $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->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); diff --git a/gestion/lib/Service/InvoicePdfHandler.php b/gestion/lib/Service/InvoicePdfHandler.php index f7e7615..2574326 100644 --- a/gestion/lib/Service/InvoicePdfHandler.php +++ b/gestion/lib/Service/InvoicePdfHandler.php @@ -52,7 +52,7 @@ class InvoicePdfHandler extends FPDF function Header() { if ($this->logo != "nothing") { - $this->Image($this->logoPath . "logo.png", 10, 10, 75, 25); + $this->Image($this->logoPath . "logo.png", 2, 10, 75, 25); $this->AddWatermark(); } else { $this->Cell(55, 30, ''); @@ -99,11 +99,10 @@ class InvoicePdfHandler extends FPDF $this->SetFont('ComicSans', '', 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.'))); - $this->MultiCell(0,4,utf8_decode(html_entity_decode('sera appliquée.'))); + $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.'))); $this->Ln(1); $this->MultiCell(0,4,utf8_decode(html_entity_decode('Si les frais de recouvrement sont supérieurs à ce montant forfaitaire, une indemnisation complémentaire'))); - $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->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); @@ -255,7 +254,7 @@ class InvoicePdfHandler extends FPDF $this->Line(3, $this->startingYOfArticlesTable + $gapBetweenStartingOfArticlesTableAndColumnName, 207, $this->startingYOfArticlesTable + $gapBetweenStartingOfArticlesTableAndColumnName); // les traits verticaux colonnes $additionalMargRight = 1; - $endingLine = $this->thereIsOrderOrCaseNumber ? 233 : 230; // mois +1 pour le groupe + $endingLine = $this->thereIsOrderOrCaseNumber ? 231 : 230; // mois +1 pour le groupe $this->Line(27 + $additionalMargRight, $this->startingYOfArticlesTable, 27+ $additionalMargRight , $endingLine); $this->Line(142 + $additionalMargRight, $this->startingYOfArticlesTable, 142+ $additionalMargRight , $endingLine); $this->Line(164 + $additionalMargRight, $this->startingYOfArticlesTable, 164+ $additionalMargRight , $endingLine); @@ -269,7 +268,7 @@ class InvoicePdfHandler extends FPDF $columnNameY = $this->startingYOfArticlesTable - 1; $this->SetFont('ComicSans', '', 10); $this->SetXY(12 + $additionalMargRight, $columnNameY); - $this->Cell(7, 10, "Datess", 0, 0, 'C'); + $this->Cell(7, 10, "Date", 0, 0, 'C'); $this->SetXY(30 + $additionalMargRight, $columnNameY); $this->Cell(100, 10, "Description", 0, 0, 'C');