Function de validation des fiches et reversement des frais HF

This commit is contained in:
pierre renaudot
2024-01-29 14:06:39 +01:00
parent e4574d7ff4
commit 2819759da7
5 changed files with 76 additions and 4 deletions

View File

@@ -70,12 +70,13 @@ class Class_gestionFiche
public function get_Page(int $nPage, string $idUtilisateur): array
{
$decalage = ($nPage - 1) * $this::$NB_LIGNES_PAGINATION;
$req = 'SELECT "rMois", "rVisiteur", "rEtat", ROUND("rMontantValide", 2)
as "rMontantValide", "eLibelle"
FROM remboursement
INNER JOIN etat ON etat."eId"=remboursement."rEtat"
WHERE "rVisiteur"= :userId
ORDER BY "rDateModif" DESC LIMIT :nbLignes offset :decalage;';
ORDER BY "rMois" DESC LIMIT :nbLignes offset :decalage;';
$result = $this->pdo->prepare($req);
$result->bindParam('nbLignes', $this::$NB_LIGNES_PAGINATION);
$result->bindParam('decalage', $decalage);