gestion affichage si plusieurs réductions
FossilOrigin-Name: 34367b01dc439cf6979ad81ed4735787c167d106a197d3172f5519fdd53fde3f
This commit is contained in:
parent
7b426d3e32
commit
f7aca72950
5 changed files with 54 additions and 23 deletions
|
|
@ -88,6 +88,37 @@ class RecusPDF extends tFPDF
|
|||
$this->Cell(0, 6, $libelle, 'R', 1);
|
||||
}
|
||||
|
||||
// imprimer le montant de la réduction et un libellé
|
||||
function imprimer_montant($texte, $montant, $libelle = "")
|
||||
{
|
||||
$this->SetFont('DejaVu');
|
||||
$this->Cell($this->GetStringWidth($texte),
|
||||
6,
|
||||
$texte,
|
||||
'L',
|
||||
0);
|
||||
$this->SetFont('DejaVu','B');
|
||||
$valeur = number_format($montant, 2, "," , "") . " euros";
|
||||
$this->Cell($this->GetStringWidth($valeur),
|
||||
6,
|
||||
$valeur,
|
||||
'',
|
||||
0);
|
||||
$this->SetFont('DejaVu');
|
||||
if ($libelle != "")
|
||||
{
|
||||
$this->Cell(0,
|
||||
6,
|
||||
" : " . $libelle,
|
||||
'R',
|
||||
1);
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->Cell(0, 6, "", 'R', 1);
|
||||
}
|
||||
}
|
||||
|
||||
function titre_rubrique($texte)
|
||||
{
|
||||
$this->SetFont('DejaVu','B',12);
|
||||
|
|
@ -130,24 +161,15 @@ class RecusPDF extends tFPDF
|
|||
$this->SetFont('DejaVu', '', 11);
|
||||
$this->Cell(0,
|
||||
6,
|
||||
"Le bénéficiaire reconnaît avoir reçu au titre des dons et versements ouvrant droit à réduction d'impôt",
|
||||
"Le bénéficiaire reconnaît avoir reçu au titre des dons et versements ouvrant droit à réduction d'impôt :",
|
||||
'LTR',
|
||||
1);
|
||||
$this->Cell($this->GetStringWidth("la somme de "),
|
||||
6,
|
||||
"la somme de ",
|
||||
'L',
|
||||
0);
|
||||
$this->SetFont('DejaVu','B');
|
||||
foreach ($lesMontants as $montant) {
|
||||
$this->Cell(0,
|
||||
6,
|
||||
number_format($montant, 2, "," , "") . " euros.",
|
||||
'R',
|
||||
1);
|
||||
foreach ($lesMontants as $montant)
|
||||
{
|
||||
$this->imprimer_montant(" - la somme de ", $montant, "aide aux personnes en difficulté");
|
||||
}
|
||||
$this->Cell(0, 3, "", 'LR', 1);
|
||||
$this->imprimer_description('Date du versement ou du don : ',
|
||||
$this->imprimer_description('Date des versements : ',
|
||||
'année ' . $annee_recu);
|
||||
$this->Cell(0, 3, "", 'LR', 1);
|
||||
$this->MultiCell(0, 6,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue