59 lines
2.5 KiB
PHP
Executable File
59 lines
2.5 KiB
PHP
Executable File
<?php
|
|
//$pdf = new FPDF();
|
|
require("entetefacture.php");
|
|
|
|
$pdf->SetFont('Arial','B', 10);
|
|
|
|
$pdf->Cell(58,$ht,convertirc(_("PERIODE")),1,0,'C',false);
|
|
$pdf->Cell(33,$ht,convertirc(_("COMMISSIONS")),1,0,'C',false);
|
|
$pdf->Cell(33,$ht,convertirc(_("ACCESSOIRES")),1,0,'C',false);
|
|
$pdf->Cell(33,$ht,convertirc(_("T.V.A")),1,0,'C',false);
|
|
$pdf->Cell(33,$ht,convertirc(_("TOTAL")),1,1,'C',false);
|
|
|
|
|
|
$pdf->SetFont('Arial','', 10);
|
|
$pdf->Cell(58,$ht,convertirc("DU ".datelang($entetefacturegarant['dateDebut'],$_SESSION['lang'])." AU ".datelang($entetefacturegarant['dateFin'],$_SESSION['lang'])),1,0,'C',false);
|
|
$pdf->Cell(33,$ht,convertirc(format_N($entetefacturegarant['commissionGestion'])),1,0,'C',false);
|
|
$pdf->Cell(33,$ht,convertirc(format_N($entetefacturegarant['accessoire'])),1,0,'C',false);
|
|
$pdf->Cell(33,$ht,convertirc(format_N($entetefacturegarant['taxe'])),1,0,'C',false);
|
|
$pdf->Cell(33,$ht,convertirc(format_N($entetefacturegarant['montantTtc'])),1,1,'C',false);
|
|
|
|
$pdf->SetFont('Arial','B', 10);
|
|
$pdf->Cell(58,$ht,convertirc("Solde : "),0,0,'C',false);
|
|
$pdf->Cell(33,$ht,convertirc(format_N($entetefacturegarant['commissionGestion'])),0,0,'C',false);
|
|
$pdf->Cell(33,$ht,convertirc(format_N($entetefacturegarant['accessoire'])),0,0,'C',false);
|
|
$pdf->Cell(33,$ht,convertirc(format_N($entetefacturegarant['taxe'])),0,0,'C',false);
|
|
$pdf->Cell(33,$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 police
|
|
$pdf->SetFont('Arial','BIU', 10);
|
|
$pdf->Cell(0,$ht,convertirc(_('DETAIL PAR POLICE')),0,1,'C',false);
|
|
|
|
$pdf->SetFont('Arial','BI', 8);
|
|
$pdf->Cell(90,$ht,convertirc(_("POLICE")),1,0,'C',false);
|
|
$pdf->Cell(25,$ht,convertirc(_("COMMISSIONS")),1,0,'C',false);
|
|
$pdf->Cell(25,$ht,convertirc(_("ACCESSOIRES")),1,0,'C',false);
|
|
$pdf->Cell(25,$ht,convertirc(_("T.V.A")),1,0,'C',false);
|
|
$pdf->Cell(25,$ht,convertirc(_("TOTAL")),1,1,'C',false);
|
|
|
|
$pdf->SetFont('Arial','', 8);
|
|
|
|
foreach ($polices as $v)
|
|
{
|
|
$pdf->Cell(90,$ht,convertirc($v['libellePolice']),1,0,'L',false);
|
|
$pdf->Cell(25,$ht,convertirc(format_N($v['commissionGestion'])),1,0,'C',false);
|
|
$pdf->Cell(25,$ht,convertirc(format_N($v['accessoire'])),1,0,'C',false);
|
|
$pdf->Cell(25,$ht,convertirc(format_N($v['taxe'])),1,0,'C',false);
|
|
$pdf->Cell(25,$ht,convertirc(format_N($v['montantTtc'])),1,1,'C',false);
|
|
|
|
}
|
|
|
|
$pdf->Ln(2);
|
|
|
|
require("piedfacture.php");
|
|
|