facture = new Facture(); } public function index() { $idDossierClassique = $_SESSION['idDossierClassique']; $dossier = $this->facture->getdossierclassique($idDossierClassique); $pdf = new FPDF_Protection(); $pdf->SetAuthor('EBENE SOLUTIONS INFORMATIQUES'); $userPassword = ''; $ownerPassword = null; $pdf->SetProtection(['print'], $userPassword, $ownerPassword); $pdf->AliasNbPages(); $pdf->AddPage(); $ht=10; $lg=60; $pdf->SetMargins(10, 10, 10) ; $pdf->SetFont('Arial','B', 15); $pdf->SetY(20); $pdf->Image($_SESSION['p_lienLogo'],95,3,18); $pdf->SetFont('Arial','BU', 15); $pdf->SetFontSize(12); $pdf->Cell(0,10,convertirc(_("DEMANDE DE REGLEMENT")." No ".$dossier['numeroDemandeReglement']),0,1,'C',false); $pdf->Ln(5); $pdf->SetFont('Arial','B', 11); $pdf->Cell($lg,10,convertirc(_('NOMS ET PRENOMS')),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(0,10,convertirc(': '.$dossier['beneficiaireReglement']),0,1,'L'); $pdf->SetFont('Arial','B', 11); $pdf->Cell($lg,10,convertirc(_("No LOT")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(0,10,convertirc(': '.$dossier['numeroLotDecompte']),0,1,'L'); $pdf->SetFont('Arial','B', 11); $pdf->Cell($lg,10,convertirc(_('POLICE')),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(0,10,convertirc(': '.$dossier['numeroPolice']),0,1,'L'); $pdf->SetFont('Arial','B', 11); $pdf->Cell($lg,10,convertirc(_("SOUSCRIPTEUR")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(0,10,convertirc(': '.$dossier['souscripteur']),0,1,'L'); $pdf->SetFont('Arial','B', 11); $pdf->Cell($lg,10,convertirc(_("GARANT")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(0,10,convertirc(': '.$dossier['codeGcAssureur']),0,1,'L'); $pdf->SetFont('Arial','B', 11); $pdf->Cell($lg,10,convertirc(_('MONTANT EN CHIFFRES')),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(0,10,": ".format_N($dossier['montantApayer'])." ".$_SESSION['devise_C'],0,1,'L'); $pdf->Cell(0,10, convetirEnLettre($dossier['montantApayer'], $_SESSION['lang'])." ".$_SESSION['devise_C'],1,1,'C'); $pdf->SetFont('Arial','B', 11); $pdf->Cell($lg,10,convertirc(_("MOTIF (Rembourser soins de )")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(0,10,convertirc(": ".$dossier['beneficiaire']),0,1,'L'); $pdf->SetFont('Arial','B', 11); $pdf->Cell($lg,10,convertirc(_('A VERSER AU COMPTE')).' No',0,0,'L',false); $pdf->SetFont('Arial','I',11); if($dossier['banqueBeneficiaire']>" ") { $pdf->Cell(0,10,convertirc(': '.$dossier['numeroCompteBeneficiaire'].' SUR : '.$dossier['banqueBeneficiaire']),0,1,'L'); } else { $pdf->Cell(0,10,convertirc(': '),0,1,'L'); } $pdf->Ln(5); $pdf->Cell(0,10,convertirc(_('Fait à')).' '.$_SESSION['villeSociete'].' '._('le').' '.heureCouranteLang($_SESSION['lang']),0,1,'C',false); $pdf->Ln(5); $pdf->SetFont('Arial','B', 11); $pdf->Cell($lg,10,convertirc(_("SERVICE DEMANDEUR")),0,0,'L',false); $pdf->SetFont('Arial','I',11); $pdf->Cell(0,10,convertirc(": .........................................."),0,1,'L'); $pdf->Ln(15); $pdf->SetFont('Arial','B', 11); /* $pdf->Cell($lg,10,convertirc(_("VISA DIRECTION SANTE")),0,0,'L',false); $pdf->Cell(0,10,convertirc(_("VISA DAF")." "),0,1,'R'); */ $pdf->Cell($lg,10,convertirc((isset($_SESSION['affichagedynamique']['VISA DIRECTION SANTE'])) ? _($_SESSION['affichagedynamique']['VISA DIRECTION SANTE']) : _("VISA DIRECTION SANTE")),0,0,'L',false); $pdf->Cell(0,10,convertirc((isset($_SESSION['affichagedynamique']['VISA DAF'])) ? _($_SESSION['affichagedynamique']['VISA DAF']) : _("VISA DAF")),0,1,'R'); $pdf->Ln(30); $pdf->SetFont('Arial','I',10); $pdf->Cell(0,10,convertirc(_("Chèque").' / '._('OP')." No : _______________________________________"),0,1,'R'); $pdf->Cell(0,10,convertirc(_("Sur")." : _______________________________________"),0,1,'R'); $pdf->Cell(0,10,convertirc("Date : _______________________________________"),0,1,'R'); $fichier="Temp/TMP_DMDE_REGT_REMB_CLASS"."_".uniqid().".pdf"; $pdf->Output($fichier,"F"); $t_html ='
'; $t_html .=' '._("TELECHARGER").' '; $t_html .='
facture->getdossierclassique($idDossierClassique); //$factures = $this->facture->getfacturesdossierclassiquegaranties($idDossierClassique); $facture_total = $this->facture->getfacturesdossierclassique_total($idDossierClassique); $prestations = $this->facture->getprestationsdossierclassique($idDossierClassique); $nbExclu = $this->facture->getNbreExclu($idDossierClassique); $nbRejet = $this->facture->getNbreRejet($idDossierClassique); $pdf = new FPDF_Protection("L"); $pdf->SetAuthor('EBENE SOLUTIONS INFORMATIQUES'); $userPassword = ''; $ownerPassword = null; $pdf->SetProtection(['print'], $userPassword, $ownerPassword); $pdf->AliasNbPages(); $pdf->AddPage(); $ht=10; $lg=50; $pdf->SetMargins(10, 10, 10) ; $pdf->SetFont('Arial','B', 15); $pdf->SetY(25); $pdf->Image($_SESSION['p_lienLogo'],140,3,18); $pdf->SetFont('Arial','BU', 15); $pdf->SetFontSize(12); $pdf->Cell(0,7,convertirc(_('RELEVE REMBOURSEMENT HORS TIERS PAYANT')),0,1,'C',false); $pdf->Ln(5); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg,7,convertirc(_("No LOT")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(0,7,convertirc(': '.$dossier['numeroLotDecompte']),0,0,'L'); $pdf->SetX(185); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg,7,convertirc(_('POLICE')),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(0,7,convertirc(': '.$dossier['numeroPolice']),0,1,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg,7,convertirc(_("SOUSCRIPTEUR")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(0,7,convertirc(': '.$dossier['souscripteur']),0,0,'L'); $garant = $dossier['garant']; if(strlen($garant) > "25"){ $garant = $dossier['codeGcAssureur']; } $pdf->SetX(185); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg,7,convertirc(_("GARANT")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(0,7,convertirc(': '.$garant),0,1,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg,7,convertirc(_("ADHERENT")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(0,7,convertirc(': '.$dossier['adherent']),0,0,'L'); $pdf->SetX(185); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg,7,convertirc(_("No BENEFICIAIRE")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(0,7,convertirc(': '.$dossier['numeroBeneficiaire']),0,1,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg,7,convertirc(_('BENEFICIAIRE DES SOINS')),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(0,7,convertirc(': '.$dossier['beneficiaire']),0,0,'L'); $pdf->SetX(185); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg,7,convertirc("TOTAL"),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(0,7,": ".format_N($dossier['montantApayer'])." ".$_SESSION['devise_C'],0,1,'L'); $pdf->Cell(281,7, convetirEnLettre($dossier['montantApayer'], $_SESSION['lang'])." ".$_SESSION['devise_C'],1,1,'C'); $pdf->Ln(5); $pdf->SetFont('Arial','BIU', 10); $pdf->Cell(0,7,convertirc(_('Liste des Factures du Dossier') . ' : ' . $idDossierClassique ),0,1,'C',false); $pdf->Ln(2); $pdf->SetFont('Arial','BI', 8); $ht=7; $pdf->Cell(20,$ht,convertirc("Date soins"),1,0,'C',false); $pdf->Cell(20,$ht,convertirc(_('Date compta')),1,0,'C',false); $pdf->Cell(55,$ht,convertirc(_("Prestataire")),1,0,'C',false); $pdf->Cell(60,$ht,convertirc(_("Actes")),1,0,'C',false); //$pdf->Cell(20,$ht,convertirc(_('No Fact')),1,0,'C',false); $pdf->Cell(22,$ht,convertirc(_("Réclamé")),1,0,'C',false); $pdf->Cell(20,$ht,convertirc(_("Rejet")),1,0,'C',false); $pdf->Cell(20,$ht,convertirc(_("Exclu")),1,0,'C',false); $pdf->Cell(20,$ht,convertirc(_('T M')),1,0,'C',false); $pdf->Cell(22,$ht,convertirc(_('A Remb')),1,0,'C',false); $pdf->Cell(22,$ht,convertirc(_('Retenu')),1,1,'C',false); $pdf->SetFont('Arial','I', 8); foreach ($prestations as $v) { $pdf->Cell(20,$ht,dateFr($v['datePrestation']),1,0,'C',false); $pdf->Cell(20,$ht,date('d/m/Y'),1,0,'C',false); $pdf->Cell(55,$ht,convertirc(substr($v['prestataire'],0,30)),1,0,'C',false); $pdf->Cell(60,$ht,convertirc(substr($v['libelleActe'],0,25)),1,0,'C',false); //$pdf->Cell(20,$ht,$facture['numeroFacture'],1,0,'C',false); $pdf->Cell(22,$ht,format_N($v['fraisReel']),1,0,'C',false); $pdf->Cell(20,$ht,format_N($v['montantRejete']),1,0,'C',false); $pdf->Cell(20,$ht,format_N($v['fraisExclu']),1,0,'C',false); $pdf->Cell(20,$ht,format_N($v['montantTm']),1,0,'C',false); $pdf->Cell(22,$ht,format_N($v['montantArembourser']),1,0,'C',false); $pdf->Cell(22,$ht,format_N($v['fraisRetenu']),1,1,'C',false); } $pdf->Cell(155,$ht,convertirc("Total"),1,0,'C',false); $pdf->Cell(22,$ht,format_N($facture_total['fraisReel_total']),1,0,'C',false); $pdf->Cell(20,$ht,format_N($facture_total['montantRejete_total']),1,0,'C',false); $pdf->Cell(20,$ht,format_N($facture_total['exclusion_total']),1,0,'C',false); $pdf->Cell(20,$ht,format_N($facture_total['montantTm_total']),1,0,'C',false); $pdf->Cell(22,$ht,format_N($facture_total['montantArembourser_total']),1,0,'C',false); $pdf->Cell(22,$ht,format_N($facture_total['fraisRetenu_total']),1,1,'C',false); $pdf->Ln(4); if($nbExclu > "0" || $nbRejet > "0" ){ $pdf->Cell(281,$ht,convertirc(_("Description des montants non remboursés")),1,1,'C',false); foreach ($prestations as $v){ $detailExclusion =""; if(strlen($v['detailExclusion'])>"0"){ $detailExclusion = " (".$v['detailExclusion'].")"; } $detailRejet =""; if(strlen($v['detailRejet'])>"0"){ $detailRejet = " (".$v['detailRejet'].")"; } if($v['codeMotifExclusion'] !=""){ $pdf->Cell(10,$ht,convertirc($v['codeMotifExclusion']),'LB',0,'L',false); $pdf->Cell(271,$ht,convertirc($v['libelleMotifExclusion'].$detailExclusion),'BR',1,'L',false); } if($v['codeMotifRejet'] !=""){ $pdf->Cell(10,$ht,convertirc($v['codeMotifRejet']),'LB',0,'L',false); $pdf->Cell(271,$ht,convertirc($v['libellemotifRejet'].$detailRejet),'BR',1,'L',false); } } } // ajouté le 21/11/2018 $pdf->Ln(8); $pdf->SetFont('Arial','BU', 10); $pdf->Cell(230); $pdf->Cell(40,$ht,convertirc(_('Pour:').' '.$garant),0,1,'L',false); $pdf->Ln(8); $pdf->SetFont('Arial','B', 10); $pdf->Cell(0,10,convertirc(_('Fait à')).' '.$_SESSION['villeSociete'].', '._('le').' '.heureCouranteLang($_SESSION['lang']),0,1,'C',false); $pdf->SetY(179); $pdf->Ln(4); $pdf->SetFont('Arial','', 8); $pdf->Cell(55); $text = convertirc("Mtt non remboursé = Montant non remboursé qui comporte les exclusions, les dépassements et tout montant non remboursé."); $text .= convertirc("Pour être recevable, toute contestation doit être faite par écrit dans les 30 jours qui suivent la date du présent décompte."); $pdf->MultiCell(165, 3, $text,0,'C'); $fichier="Temp/TMP_RELEVE_REMB_CLASS"."_".uniqid().".pdf"; $pdf->Output($fichier,"F"); $t_html ='
'; $t_html .=' '._("TELECHARGER").' '; $t_html .='
facture->getdossierclassiquepolice($idDossierClassiquePolice); $listedossierspolice = $this->facture->getdlisteossiersclassiquespoliceimpression($idDossierClassiquePolice); $pdf = new FPDF_Protection("L"); $pdf->SetAuthor('EBENE SOLUTIONS INFORMATIQUES'); $userPassword = ''; $ownerPassword = null; $pdf->SetProtection(['print'], $userPassword, $ownerPassword); $pdf->AliasNbPages(); $pdf->AddPage(); $ht=10; $lg=30; $lg2=15; $pdf->SetMargins(10, 10, 10) ; $pdf->SetFont('Arial','B', 15); $pdf->SetY(25); $pdf->Cell(0,7,convertirc($_SESSION['nomSociete'] ),1,1,'C',false); $pdf->Ln(5); $pdf->SetFont('Arial','BU', 15); $pdf->SetFontSize(12); $pdf->Cell(0,7,convertirc(_('RELEVE HORS TIERS PAYANT POUR UNE POLICE')),0,1,'C',false); $pdf->Ln(5); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg,7,convertirc(_("Souscripteur")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(70,7,convertirc(': '.$dossierpolice['souscripteur']),0,0,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg,7,convertirc(_("ID Bordéreau")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(10,7,convertirc(': '.$dossierpolice['idDossierClassiquePolice']),0,0,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg,7,convertirc(_("Date réclamation")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell($lg,7,convertirc(': '.dateFr($dossierpolice['dateReclamation'])),0,0,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell(25,7,convertirc(_("Nb dossiers")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(10,7,convertirc(': '.$dossierpolice['nbDossier']),0,0,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell(25,7,convertirc(_("Nb Factures")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(10,7,convertirc(': '.$dossierpolice['ndFacture']),0,1,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg,7,convertirc(_("Réclamé")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(25,7,convertirc(': '.format_N($dossierpolice['fraisReel'])),0,0,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg2,7,convertirc(_("Rejet")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(25,7,convertirc(': '.format_N($dossierpolice['montantRejete'])),0,0,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg2,7,convertirc(_("Exclu")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(25,7,convertirc(': '.format_N($dossierpolice['exclusion'])),0,0,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg2,7,convertirc(_("T M")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(25,7,convertirc(': '.format_N($dossierpolice['montantTm'])),0,0,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg2,7,convertirc(_("A Remb")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(25,7,convertirc(': '.format_N($dossierpolice['montantArembourser'])),0,0,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg2,7,convertirc(_("Dépas")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(25,7,convertirc(': '.format_N($dossierpolice['depassementLimite'])),0,1,'L'); /* $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg2,7,convertirc(_("Retenu")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(25,7,convertirc(': '.format_N($dossierpolice['fraisRetenu'])),0,0,'L'); */ $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg,7,convertirc("Total Bordéreau"),0,0,'L',false); $pdf->SetFont('Arial','BI',10); $pdf->Cell(0,7,": ".format_N($dossierpolice['montantApayer'])." ".$_SESSION['devise_C'],0,1,'L'); $pdf->Cell(0,7, convetirEnLettre($dossierpolice['montantApayer'], $_SESSION['lang'])." ".$_SESSION['devise_C'],1,1,'C'); $pdf->Ln(5); $pdf->SetFont('Arial','BIU', 10); $pdf->Cell(0,7,convertirc(_('DOSSIERS DU RELEVE')),0,1,'C',false); // $pdf->Ln(5); // $listedossierspolice foreach ($listedossierspolice as $dossier) { $pdf->Ln(5); $x1 = $pdf->GetX(); $y1 = $pdf->GetY(); $x2 = $x1 + 280; $y2 = $y1; $pdf->Line($x1, $y1, $x2, $y2); // $pdf->Ln(2); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg,7,convertirc(_("Patient")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(100,7,convertirc(': '.$dossier['beneficiaire']),0,0,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg,7,convertirc(_("ID Dossier")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(10,7,convertirc(': '.$dossier['idDossierClassique']),0,0,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg,7,convertirc(_("Consultation")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell($lg,7,convertirc(': '.dateFr($dossier['dateConsultation'])),0,0,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell(25,7,convertirc(_("Nb Factures")),0,1,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(10,7,convertirc(': '.$dossier['ndFacture']),0,1,'L'); /* $pdf->SetFont('Arial','B', 10); $pdf->Cell(25,7,convertirc(_("Nb Factures")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(10,7,convertirc(': '.$dossier['ndFacture']),0,1,'L'); */ $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg,7,convertirc(_("Réclamé")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(25,7,convertirc(': '.format_N($dossier['fraisReel'])),0,0,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg2,7,convertirc(_("Rejet")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(25,7,convertirc(': '.format_N($dossier['montantRejete'])),0,0,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg2,7,convertirc(_("Exclu")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(25,7,convertirc(': '.format_N($dossier['exclusion'])),0,0,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg2,7,convertirc(_("T M")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(25,7,convertirc(': '.format_N($dossier['montantTm'])),0,0,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg2,7,convertirc(_("A Remb")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(25,7,convertirc(': '.format_N($dossier['montantArembourser'])),0,0,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg2,7,convertirc(_("Dépas")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(25,7,convertirc(': '.format_N($dossier['depassementLimite'])),0,1,'L'); $pdf->SetFont('Arial','B', 10); $pdf->Cell($lg,7,convertirc("Total Dossier"),0,0,'L',false); $pdf->SetFont('Arial','BI',10); $pdf->Cell(0,7,": ".format_N($dossier['montantApayer'])." ".$_SESSION['devise_C'],0,1,'L'); $pdf->Cell(0,7, convetirEnLettre($dossier['montantApayer'], $_SESSION['lang'])." ".$_SESSION['devise_C'],1,1,'C'); $idDossierClassique = $dossier['idDossierClassique']; // $factures = $this->facture->getfacturesdossierclassique($idDossierClassique); $factures = $this->facture->getfacturesdossierclassiqueimpression($idDossierClassique); $pdf->Ln(2); $pdf->SetFont('Arial','BIU', 10); $pdf->Cell(0,7,convertirc(_('Liste des Factures du Dossier') . ' : ' . $idDossierClassique ),0,1,'C',false); $pdf->Ln(2); $pdf->SetFont('Arial','BI', 8); $ht=7; $pdf->Cell(20,$ht,convertirc("Date"),1,0,'C',false); $pdf->Cell(90,$ht,convertirc(_("Prestataire")),1,0,'C',false); $pdf->Cell(20,$ht,convertirc(_('No Fact')),1,0,'C',false); $pdf->Cell(22,$ht,convertirc(_("Réclamé")),1,0,'C',false); $pdf->Cell(20,$ht,convertirc(_("Rejet")),1,0,'C',false); $pdf->Cell(20,$ht,convertirc(_("Exclu")),1,0,'C',false); $pdf->Cell(20,$ht,convertirc(_('T M')),1,0,'C',false); $pdf->Cell(22,$ht,convertirc(_('A Remb')),1,0,'C',false); $pdf->Cell(20,$ht,convertirc(_('Dépas')),1,0,'C',false); $pdf->Cell(22,$ht,convertirc(_('Retenu')),1,1,'C',false); $pdf->SetFont('Arial','I', 8); foreach ($factures as $facture) { $pdf->Cell(20,$ht,dateFr($facture['dateFacture']),1,0,'C',false); $pdf->Cell(90,$ht,convertirc($facture['prestataire']),1,0,'C',false); $pdf->Cell(20,$ht,$facture['numeroFacture'],1,0,'C',false); $pdf->Cell(22,$ht,format_N($facture['fraisReel']),1,0,'C',false); $pdf->Cell(20,$ht,format_N($facture['montantRejete']),1,0,'C',false); $pdf->Cell(20,$ht,format_N($facture['exclusion']),1,0,'C',false); $pdf->Cell(20,$ht,format_N($facture['montantTm']),1,0,'C',false); $pdf->Cell(22,$ht,format_N($facture['montantArembourser']),1,0,'C',false); $pdf->Cell(20,$ht,format_N($facture['fraisExclu']),1,0,'C',false); $pdf->Cell(22,$ht,format_N($facture['fraisRetenu']),1,1,'C',false); } /* $pdf->Ln(2); $x1 = $pdf->GetX(); $y1 = $pdf->GetY(); $x2 = $x1 + 280; $y2 = $y1; $pdf->Line($x1, $y1, $x2, $y2); $pdf->Ln(2); */ $pdf->Ln(5); } $pdf->Ln(5); $pdf->Cell(0,10,convertirc(_('Fait à')).' '.$_SESSION['villeSociete'].', '._('le').' '.heureCouranteLang($_SESSION['lang']),0,1,'C',false); $fichier="Temp/TMP_RELEVE_REMB_CLASS"."_".uniqid().".pdf"; $pdf->Output($fichier,"F"); $t_html ='
'; $t_html .=' '._("TELECHARGER").' '; $t_html .='
facture->getdossierclassiquepolice($idDossierClassiquePolice); $pdf = new FPDF_Protection(); $pdf->SetAuthor('EBENE SOLUTIONS INFORMATIQUES'); $userPassword = ''; $ownerPassword = null; $pdf->SetProtection(['print'], $userPassword, $ownerPassword); $pdf->AliasNbPages(); $pdf->AddPage(); $ht=10; $lg=50; $pdf->SetMargins(10, 10, 10) ; $pdf->SetFont('Arial','B', 15); $pdf->SetY(20); $pdf->Cell(0,10,convertirc($_SESSION['nomSociete'] ),1,1,'C',false); $pdf->Ln(10); $pdf->SetFont('Arial','BU', 15); $pdf->SetFontSize(12); $pdf->Cell(0,10,convertirc(_("DEMANDE DE REGLEMENT")." No ".$dossierpolice['numeroDemandeReglement']),0,1,'C',false); $pdf->Ln(5); $pdf->SetFont('Arial','B', 11); $pdf->Cell($lg,10,convertirc(_("Souscripteur")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(0,10,convertirc(': '.$dossierpolice['souscripteur']),0,1,'L'); $pdf->SetFont('Arial','B', 11); $pdf->Cell($lg,10,convertirc(_("ID Police")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell($lg,10,convertirc(': ' . $dossierpolice['idPolice']),0,0,'L'); $pdf->SetFont('Arial','B', 11); $pdf->Cell($lg,10,convertirc(_("Nb dossiers")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell($lg,10,convertirc(': ' . $dossierpolice['nbDossier']),0,1,'L'); $pdf->SetFont('Arial','B', 11); $pdf->Cell($lg,10,convertirc(_("ID Bordéreau")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell($lg,10,convertirc(': ' . $idDossierClassiquePolice),0,0,'L'); $pdf->SetFont('Arial','B', 11); $pdf->Cell($lg,10,convertirc(_("Nb Factures")),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell($lg,10,convertirc(': ' . $dossierpolice['ndFacture']),0,1,'L'); $pdf->SetFont('Arial','B', 11); $pdf->Cell($lg,10,convertirc(_('Montant en chiffre')),0,0,'L',false); $pdf->SetFont('Arial','I',10); $pdf->Cell(0,10,": ".format_N($dossierpolice['montantApayer'])." ".$_SESSION['devise_C'],0,1,'L'); $pdf->Cell(0,10, convetirEnLettre($dossierpolice['montantApayer'], $_SESSION['lang'])." ".$_SESSION['devise_C'],1,1,'C'); $pdf->SetFont('Arial','B', 11); $pdf->Cell(0,10,convertirc(_("Remboursement des soins des employés de") . ' : ' . $dossierpolice['souscripteur']),0,1,'L',false); $pdf->SetFont('Arial','B', 11); $pdf->Cell($lg,10,convertirc(_('A VERSER AU COMPTE')) . ' No',0,0,'L',false); $pdf->SetFont('Arial','I',11); if($dossierpolice['banqueBeneficiaire']>" ") { $pdf->Cell(0,10,convertirc(': '.$dossierpolice['numeroCompteBeneficiaire'].' SUR : '.$dossierpolice['banqueBeneficiaire']),0,1,'L'); } else { $pdf->Cell(0,10,convertirc(': '),0,1,'L'); } $pdf->Ln(5); $pdf->Cell(0,10,convertirc(_('Fait à')).' '.$_SESSION['villeSociete'].' '._('le').' '.heureCouranteLang($_SESSION['lang']),0,1,'C',false); $pdf->Ln(5); $pdf->SetFont('Arial','B', 11); $pdf->Cell($lg,10,convertirc(_("SERVICE DEMANDEUR")),0,0,'L',false); $pdf->SetFont('Arial','I',11); $pdf->Cell(0,10,convertirc(": .........................................."),0,1,'L'); $pdf->Ln(15); $pdf->SetFont('Arial','B', 11); /* $pdf->Cell($lg,10,convertirc(_("VISA DIRECTION SANTE")),0,0,'L',false); $pdf->Cell(0,10,convertirc(_("VISA DAF")." "),0,1,'R'); */ $pdf->Cell($lg,10,convertirc((isset($_SESSION['affichagedynamique']['VISA DIRECTION SANTE'])) ? _($_SESSION['affichagedynamique']['VISA DIRECTION SANTE']) : _("VISA DIRECTION SANTE")),0,0,'L',false); $pdf->Cell(0,10,convertirc((isset($_SESSION['affichagedynamique']['VISA DAF'])) ? _($_SESSION['affichagedynamique']['VISA DAF']) : _("VISA DAF")),0,1,'R'); $pdf->Ln(30); $pdf->SetFont('Arial','I',10); $pdf->Cell(0,10,convertirc(_("Chèque").' / '._('OP')." No : _______________________________________"),0,1,'R'); $pdf->Cell(0,10,convertirc(_("Sur")." : _______________________________________"),0,1,'R'); $pdf->Cell(0,10,convertirc("Date : _______________________________________"),0,1,'R'); $fichier="Temp/TMP_DMDE_REGT_REMB_CLASS"."_".uniqid().".pdf"; $pdf->Output($fichier,"F"); $t_html ='
'; $t_html .=' '._("TELECHARGER").' '; $t_html .='