1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
| <?php
header('Content-Type: text/html; charset=UTF-8');
$auj = date("d/m/Y");
//// ...... INFOS FACTURES ........... ////
//// ...... Recuperation de toutes les variables ........... ////
//// ................ ////
date_default_timezone_set('Europe/Paris');
include('./invoicr.php');
$invoice = new invoicr("A4","","fr");
$invoice->setNumberFormat('.',',');
$invoice->setLogo("http://www.nomdemonsite.com/facture/images/monlogo.jpg","250","60");
$invoice->setColor("#9194FF");
$invoice->setType("FACTURE");
$invoice->setReference("111111");
$invoice->setDue("01-01-2018");
$invoice->setFrom(array("aaaa.com","direction@uuuuuuu.com","07"));
$invoice->setTo(array("toto","titi","toto@titi.com"));
$invoice->addItem("A","B","1","100","100");
$prix_tot = 100;
$invoice->addTotal("Total HT",$prix_tot);
$invoice->addTotal("TVA*","0.00");
$invoice->addTotal("Total TTC",$prix_tot,true);
$invoice->addTitle("Conditions de paiement");
$invoice->addParagraph("texte");
$invoice->setFooternote("texte footer");
$invoice->render('pdf/111111.pdf','I');
$invoice->render('pdf/111111.pdf','F');
?> |
Partager