Ajout génération de reçus pour les versements sélectionnés
FossilOrigin-Name: 2432aca0a12d32cf1e55e196df21fdb9da144420d6c1c3e21de4c46b018a2695
This commit is contained in:
parent
c2a3a77f24
commit
36060b71c8
8 changed files with 595 additions and 8 deletions
52
lib/Personne.php
Normal file
52
lib/Personne.php
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
<?php
|
||||
|
||||
namespace Garradin\Plugin\RecusFiscaux;
|
||||
|
||||
/**
|
||||
* rassembler les infos d'une personne
|
||||
*/
|
||||
class Personne
|
||||
{
|
||||
public $id;
|
||||
public $nomPrenom;
|
||||
public $adresse;
|
||||
public $ville;
|
||||
public $codePostal;
|
||||
public $courriel;
|
||||
public $versements;
|
||||
|
||||
public function __construct(
|
||||
$id,
|
||||
$nomPrenom,
|
||||
$adresse,
|
||||
$ville,
|
||||
$codePostal,
|
||||
$courriel
|
||||
) {
|
||||
$this->id = $id;
|
||||
$this->nomPrenom = $nomPrenom;
|
||||
$this->adresse = $adresse;
|
||||
$this->ville = $ville;
|
||||
$this->codePostal = $codePostal;
|
||||
$this->courriel = $courriel;
|
||||
$this->versements = array();
|
||||
}
|
||||
|
||||
/*
|
||||
* ajouter un versement
|
||||
*/
|
||||
public function ajouterVersement(
|
||||
$idActivite,
|
||||
$idTarif,
|
||||
$montant
|
||||
) {
|
||||
// var_dump($this);
|
||||
$this->versements[] =
|
||||
new Versement(
|
||||
$idActivite,
|
||||
$idTarif,
|
||||
$montant
|
||||
);
|
||||
// var_dump($this);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue