52 lines
2.0 KiB
PHP
Executable File
52 lines
2.0 KiB
PHP
Executable File
<?php
|
|
//$pdf = new FPDF();
|
|
require("entetefacture.php");
|
|
|
|
$pdf->SetFont('Arial','B', 10);
|
|
|
|
$pdf->Cell(70,$ht,convertirc(_("PERIODE")),1,0,'C',false);
|
|
$pdf->Cell(40,$ht,convertirc(_("HONORAIRES HT")),1,0,'C',false);
|
|
$pdf->Cell(40,$ht,convertirc(_("T.V.A")),1,0,'C',false);
|
|
$pdf->Cell(40,$ht,convertirc(_("TOTAL")),1,1,'C',false);
|
|
|
|
|
|
$pdf->SetFont('Arial','', 10);
|
|
$pdf->Cell(70,$ht,convertirc("DU ".datelang($entetefacturegarant['dateDebut'],$_SESSION['lang'])." AU ".datelang($entetefacturegarant['dateFin'],$_SESSION['lang'])),1,0,'C',false);
|
|
$pdf->Cell(40,$ht,convertirc(format_N($entetefacturegarant['honoraireSinistre'])),1,0,'C',false);
|
|
$pdf->Cell(40,$ht,convertirc(format_N($entetefacturegarant['taxe'])),1,0,'C',false);
|
|
$pdf->Cell(40,$ht,convertirc(format_N($entetefacturegarant['montantTtc'])),1,1,'C',false);
|
|
|
|
$pdf->SetFont('Arial','B', 10);
|
|
$pdf->Cell(70,$ht,convertirc("Solde : "),0,0,'C',false);
|
|
$pdf->Cell(40,$ht,convertirc(format_N($entetefacturegarant['honoraireSinistre'])),0,0,'C',false);
|
|
$pdf->Cell(40,$ht,convertirc(format_N($entetefacturegarant['taxe'])),0,0,'C',false);
|
|
$pdf->Cell(40,$ht,convertirc(format_N($entetefacturegarant['montantTtc'])),0,1,'C',false);
|
|
|
|
|
|
$x1=10; $y1 = $pdf->GetY(); $x2=200; $y2=$y1;
|
|
$pdf->Line($x1, $y1, $x2, $y2);
|
|
|
|
$pdf->Ln(5);
|
|
// Détail par collège
|
|
$pdf->SetFont('Arial','BIU', 10);
|
|
$pdf->Cell(0,$ht,convertirc(_('DETAIL PAR COLLEGE')),0,1,'C',false);
|
|
|
|
$pdf->SetFont('Arial','BI', 8);
|
|
$pdf->Cell(65,$ht,convertirc(_("POLICE")),1,0,'C',false);
|
|
$pdf->Cell(100,$ht,convertirc(_("COLLEGE")),1,0,'C',false);
|
|
$pdf->Cell(25,$ht,convertirc(_("HONORAIRES HT")),1,1,'C',false);
|
|
$pdf->SetFont('Arial','', 8);
|
|
|
|
//
|
|
foreach ($colleges as $v)
|
|
{
|
|
$pdf->Cell(65,$ht,convertirc($v['libellePolice']),1,0,'L',false);
|
|
$pdf->Cell(100,$ht,convertirc(substr($v['libelleCollege'], 0, 58)),1,0,'L',false);
|
|
$pdf->Cell(25,$ht,convertirc(format_N($v['honoraireSinistre'])),1,1,'C',false);
|
|
}
|
|
|
|
$pdf->Ln(2);
|
|
|
|
require("piedfacture.php");
|
|
|