99 lines
3.3 KiB
PHP
Executable File
99 lines
3.3 KiB
PHP
Executable File
<?php
|
|
|
|
$ht0 = 8;
|
|
$ht = 6;
|
|
$tp = 8;
|
|
|
|
require_once 'Enteteavenant.php';
|
|
|
|
$corpsavenant = $this->editionpieceavenant_societe->get_edition_avenant_assures_ajoutes_renouvellement();
|
|
|
|
$donnees_total = null;
|
|
|
|
if(count($corpsavenant)>"0")
|
|
{
|
|
$donnees_total = $corpsavenant['0'];
|
|
}
|
|
|
|
// Un peu d'espace avant le dé but du corps
|
|
// $pdf->Ln(15);
|
|
// $pdf->Ln(5);
|
|
|
|
$pdf->SetFont('Arial','BIU', $tp);
|
|
|
|
$pdf->Cell(0,$ht0,convertirc(_("LISTE DES ASSURES AJOUTES LORS DU RENOUVELLEMENT")),0,1,'C',false);
|
|
|
|
|
|
|
|
$idCollege = "0";
|
|
$numeroAdherent = "";
|
|
|
|
$pdf->SetFont('Arial','I', $tp);
|
|
$pdf->Cell(0,$ht,convertirc(_('Edité le').' : '.heureCouranteLang($_SESSION['lang'])),0,1,'R',false);
|
|
|
|
$tp = 7;
|
|
|
|
$pdf->SetFont('Arial','BI', $tp);
|
|
|
|
$pdf->Cell(6,$ht,convertirc(_("Lien")),1,0,'C',false);
|
|
$pdf->Cell(69,$ht,convertirc(_("Bénéficiaire")),1,0,'C',false);
|
|
$pdf->Cell(22,$ht,convertirc(_("Numéro")),1,0,'C',false);
|
|
$pdf->Cell(8,$ht,convertirc(_("Sexe")),1,0,'C',false);
|
|
$pdf->Cell(16,$ht,convertirc(_("Naissance")),1,0,'C',false);
|
|
|
|
$pdf->Cell(21,$ht,convertirc(_("Prime HT")),1,0,'C',false);
|
|
$pdf->Cell(15,$ht,convertirc((isset($_SESSION['composanteprime']['Taxes'])) ? _($_SESSION['composanteprime']['Taxes']) : _("Taxes")),1,0,'C',false);
|
|
$pdf->Cell(12,$ht,convertirc(_("Cartes")),1,0,'C',false);
|
|
$pdf->Cell(21,$ht,convertirc(_("Prime TTC")),1,1,'C',false);
|
|
|
|
foreach ($corpsavenant as $donnee)
|
|
{
|
|
if($idCollege!=$donnee['idCollege'])
|
|
{
|
|
$pdf->SetFont('Arial','BIU', $tp);
|
|
$pdf->Cell(190,$ht,convertirc(_("Collège")." : ".$donnee['libelleCollege']),1,1,'C',false);
|
|
}
|
|
|
|
if($numeroAdherent!=$donnee['numeroAdherent'])
|
|
{
|
|
$pdf->SetFont('Arial','BI', $tp);
|
|
$pdf->Cell(190,$ht,convertirc(_("Famille")." : ".$donnee['adherent']),1,1,'C',false);
|
|
}
|
|
|
|
$pdf->SetFont('Arial','', $tp);
|
|
|
|
$pdf->Cell(6,$ht,convertirc($donnee['codeLienParente']),1,0,'C',false);
|
|
$pdf->Cell(69,$ht,convertirc($donnee['beneficiaire']),1,0,'L',false);
|
|
$pdf->Cell(22,$ht,convertirc($donnee['numeroBeneficiaire']),1,0,'C',false);
|
|
$pdf->Cell(8,$ht,convertirc($donnee['sexe']),1,0,'C',false);
|
|
$pdf->Cell(16,$ht, dateLang($donnee['dateNaissance'], $_SESSION['lang']),1,0,'C',false);
|
|
|
|
$pdf->Cell(21,$ht,convertirc(format_N($donnee['primeHt'])),1,0,'C',false);
|
|
$pdf->Cell(15,$ht,convertirc(format_N($donnee['taxe'])),1,0,'C',false);
|
|
$pdf->Cell(12,$ht,convertirc(format_N($donnee['fraisCarte'])),1,0,'C',false);
|
|
$pdf->Cell(21,$ht,convertirc(format_N($donnee['primeTtc'])),1,1,'C',false);
|
|
|
|
$idCollege = $donnee['idCollege'];
|
|
$numeroAdherent = $donnee['numeroAdherent'];
|
|
}
|
|
|
|
// Totaux
|
|
$pdf->SetFont('Arial','BI', $tp);
|
|
|
|
$pdf->Cell(121,$ht,convertirc(_("Totaux") . " => " . format_N($donnees_total['nbEmissionTotal']) . " " . _("Lignes") ),1,0,'C',false);
|
|
|
|
$pdf->Cell(21,$ht,convertirc(format_N($donnees_total['primeHtTotal'])),1,0,'C',false);
|
|
$pdf->Cell(15,$ht,convertirc(format_N($donnees_total['taxeTotal'])),1,0,'C',false);
|
|
$pdf->Cell(12,$ht,convertirc(format_N($donnees_total['fraisCarteTotal'])),1,0,'C',false);
|
|
$pdf->Cell(21,$ht,convertirc(format_N($donnees_total['primeTtcTotal'])),1,1,'C',false);
|
|
|
|
// $tp = 9;
|
|
|
|
// Un peu d'espace avant le pied de page
|
|
$pdf->Ln(10);
|
|
|
|
// Piedavenant
|
|
require_once 'Piedavenant.php';
|
|
|
|
?>
|