コード例 #1
0
        }
        $this->Cell(18, 6, $tva, 1, 0, 'R');
        $this->Ln();
        //Display
        $this->SetFillColor(82, 189, 236);
        $this->SetTextColor(255);
        $this->SetFont('Arial', 'B', 10);
        $this->Cell(167, 6, 'Total in euro', 1, 0, 'R', true);
        $this->Cell(18, 6, number_format($order->getPrice() + $tva, 2, ',', ' '), 1, 0, 'R', true);
        $this->Ln();
    }
}
//Déclaration des texte
// /!\ A remplacer par des textes dans le TextFinder
$text_intro = $tf->getText(107);
if ($order->getDelayForDelivery() == 0) {
    $text_fin = "Lieferbedingungen: ex Works";
} else {
    $text_fin = $tf->getText(104) . ' ' . $order->getDelayForDelivery() . ' ' . $tf->getText(105);
}
$text_fin2 = $tf->getText(106);
// Déclaration des fonctions de générations du PDF
//Ecriture du texte en cas de bon de livraison
function writeParamDeliveryOrder(&$pdf)
{
    $pdf->Cell(0, 5, utf8_decode("Lieferung per / Livraison par / Delivery by:"), 0, 1, 'L', false);
    $pdf->Cell(0, 5, utf8_decode("Bruttogewicht / Quantité / Gross Weight:"), 0, 1, 'L', false);
    $pdf->Cell(0, 5, utf8_decode("Anzahlt Gebinde / Nombre d`emballages / Number of packages:"), 0, 1, 'L', false);
    $pdf->Cell(0, 5, utf8_decode("Anzahl Paletten / Nombre de Palettes / Numer of Pallets:"), 0, 1, 'L', false);
    $pdf->Cell(0, 5, utf8_decode("Abmessungen / Mesures / Measures:"), 0, 1, 'L', false);
}
コード例 #2
0
        }
        $this->Ln();
        //Ajouter la condition ici aussi
        $this->SetFillColor(82, 189, 236);
        $this->SetTextColor(255);
        $this->SetFont('Arial', 'B', 10);
        $this->Cell(167, 6, 'Total in euro', 1, 0, 'R', true);
        $this->Cell(18, 6, $order->getPrice() + $tva, 1, 0, 'R', true);
        $this->Ln();
    }
}
//récupération des textes
// /!\ Il faudra changer les textes en fonctions de langue que l'on rentre pour le client, mais la langue par défaut sera l'anglais /!\
//Pour le moment on met les allemands
$text_intro = "Sehr geehrte Damen und Herren, wir bedanken uns für Ihr Interesse und möchten Ihnen wie folgt anbieten:";
$text_fin = "Zahlungsbedingungen: " . $order->getDelayForDelivery() . " Tage netto \nDiesem Angebot liegen unsere allgemeinen Geschäftsbedingungen zugrunde. Wir halten uns bis 4 Wochen nach dem Ausstellungsdatum an das Angebot gebunden. Bitte beziehen Sie sich bei Ihrer Bestellung auf die Angebotsnummer in diesem Vorschlag. Nur so können wir Ihnen die hier angebotenen Preise einhalten. Alle Preise -sofern nicht anders ausgewiesen sind netto und ex works Werk Willstätt.";
$pdf = new PDF();
$pdf->AddPage();
$pdf->Image('../assets/datas/model-pdf.png', 0, 0, $pdf->w, $pdf->h, 'png');
//Marge top
$pdf->SetFont('Arial', 'U', 6);
$pdf->Cell(0, 40, '', 0, 1);
$pdf->Cell(0, 5, utf8_decode('Biothys GmbH | Gewerbestr. 6 | D-77731 Willstätt'), 0, 1, 'L', false);
$pdf->SetFont('Arial', '', 10);
$pdf->Cell(0, 5, utf8_decode($company->getName()), 0, 1, 'L', false);
$pdf->Cell(0, 5, utf8_decode($receiving_address->getLine() . ' ' . $receiving_address->getComplement()), 0, 1, 'L', false);
$pdf->Cell(0, 5, utf8_decode($receiving_address->getZip() . ' ' . $receiving_address->getCity() . ' ' . $receiving_address->getCountry()), 0, 1, 'L', false);
//Marge left
$pdf->SetFont('Arial', 'B', 20);
$pdf->Cell(180, 15, utf8_decode('Invoice for samples'), 0, 1, 'R', false);
//Marge top