diff --git a/Js/fonctions.js b/Js/fonctions.js
index 7fc3498..93396cc 100755
--- a/Js/fonctions.js
+++ b/Js/fonctions.js
@@ -5382,3 +5382,23 @@ function ControlerEcheanceRen()
}
}
}
+
+/**
+ * Gère le changement d'état du switch dans le tableau
+ */
+function toggleBeneficiaireSelection(checkbox, id) {
+ // On met à jour la valeur interne
+ const newValue = checkbox.checked ? '1' : '0';
+ checkbox.value = newValue;
+
+ // Appel de votre fonction métier existante
+ beneficiaire_a_retirer(newValue, id);
+
+ // Optionnel : On peut ajouter un effet visuel sur la ligne
+ const row = $(checkbox).closest('tr');
+ if (checkbox.checked) {
+ row.addClass('table-info');
+ } else {
+ row.removeClass('table-info');
+ }
+}
\ No newline at end of file
diff --git a/Vue/gabarit.php b/Vue/gabarit.php
index 2350d40..906e81d 100755
--- a/Vue/gabarit.php
+++ b/Vue/gabarit.php
@@ -654,7 +654,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte'];
-
+