production/Societes/envoyx/Tarifs/Controleur/Avenantfacture.php
2026-03-04 01:48:40 +00:00

69 lines
2.5 KiB
PHP
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
$ht0 = 8;
$ht = 6;
$htq = 5;
$tp = 9;
require_once 'Enteteavenant.php';
$corpsavenant = $this->editionpieceavenant_societe->get_edition_avenant_primes();
$pdf->SetFont('Arial','BIU', $tp);
$pdf->Cell(0,$ht0, _("FACTURE No") . " AV/" . $entetevenant['idAvenant'] ,0,1,'C',false);
$pdf->SetFont('Arial','BIU', $tp);
$pdf->Cell(0,$ht0, convertirc(_("Détail Facture")) ,0,1,'L',false);
$pdf->SetFont('Arial','', $tp);
$x=53; $y = 90; $w=95; $h=40; $r=3.50;
$pdf->RoundedRect($x, $y, $w, $h, $r, '1111');
$ht2=7;
$pdf->Cell(110,$ht2,convertirc(_("P Nette")),0,0,'C',false);
$pdf->Cell(4,$ht2,"=",0,0,'C',false);
$pdf->Cell(60,$ht2,convertirc(format_N($corpsavenant['primeNette'])),0,1,'L',false);
$pdf->Cell(110,$ht2,convertirc(_("Accessoires")),0,0,'C',false);
$pdf->Cell(4,$ht2,"=",0,0,'C',false);
$pdf->Cell(60,$ht2,convertirc(format_N($corpsavenant['accessoire'] + $corpsavenant['fraisCarte'])),0,1,'L',false);
$pdf->Cell(110,$ht2,convertirc(_("Prime HT")),0,0,'C',false);
$pdf->Cell(4,$ht2,"=",0,0,'C',false);
$pdf->Cell(60,$ht2,convertirc(format_N($corpsavenant['primeHt'])),0,1,'L',false);
$pdf->Cell(110,$ht2,convertirc((isset($_SESSION['composanteprime']['Taxes'])) ? _($_SESSION['composanteprime']['Taxes']) : _("Taxes")),0,0,'C',false);
$pdf->Cell(4,$ht2,"=",0,0,'C',false);
$pdf->Cell(60,$ht2,convertirc(format_N($corpsavenant['taxe'])),0,1,'L',false);
// Total
$pdf->SetFont('Arial','BI', $tp);
$pdf->Cell(110,$ht2,convertirc(_("Prime TTC")),0,0,'C',false);
$pdf->Cell(4,$ht2,"=",0,0,'C',false);
$pdf->Cell(60,$ht2,convertirc(format_N($corpsavenant['primeTtcInitial'])),0,1,'L',false);
$pdf->Ln(5);
$pdf->SetFont('Arial','IU', $tp);
$pdf->Cell(0,6,convertirc(_('Arrêté la présente facture à la somme de').' : '),0,1,'C',false);
$pdf->SetFont('Arial','BI', $tp);
$pdf->SetFillColor(135,206,250); // bleu
$pdf->Cell(0,10, convetirEnLettre($corpsavenant['primeTtcInitial'], $_SESSION['lang'])." ".$_SESSION['devise_C'],1,1,'C',true);
$pdf->Ln(5);
$pdf->SetFont('Arial','BI', 7);
$text = convertirc("Article 13 du Code CIMA : La prise deffet du contrat est subordonnée au paiement de la prime. Toutefois, sil a été
convenu dun délai de paiement avec l'assureur, le contrat sera résilié de plein droit à défaut de
paiement de la prime dans le délai convenu, la portion de prime courue restant acquise à lassureur.");
$pdf->MultiCell(0, $ht, $text);
// Piedavenant
require_once 'Piedavenant.php';
?>