//$pdf->addLineFormat($cols); $y = 130; for ($i = 0; $i < 10; $i++) { $desc[$i] = "Himalayan Dog Chew Website"; $descWeb[$i] = "www.himalayandogchew.com"; $amount[$i] = "\$2406.48"; $line = array($snHeader => $i + 1, $descHeader => $desc[$i] . "(" . $descWeb[$i] . ")", $amountHeader => $amount[$i]); $size = $pdf->addLine($y, $line); $y += $size + 2; } $totalAmount = "\$2406.48"; $vat = "13%"; $totalDue = "\$2719.32"; $pdf->addSubTotal($totalAmount); $pdf->addVat($vat); $pdf->addTotalDue($totalDue); //$pdf->addCadreTVAs(); // invoice = array( "px_unit" => value, // "qte" => qte, // "tva" => code_tva ); // tab_tva = array( "1" => 19.6, // "2" => 5.5, ... ); // params = array( "RemiseGlobale" => [0|1], // "remise_tva" => [1|2...], // {la remise s'applique sur ce code TVA} // "remise" => value, // {montant de la remise} // "remise_percent" => percent, // {pourcentage de remise sur ce montant de TVA} // "FraisPort" => [0|1], // "portTTC" => value, // montant des frais de ports TTC // // par defaut la TVA = 19.6 % // "portHT" => value, // montant des frais de ports HT // "portTVA" => tva_value, // valeur de la TVA a appliquer sur le montant HT