diff --git a/Js/fonctions.js b/Js/fonctions.js
index e6f56812..0a0d1bb0 100755
--- a/Js/fonctions.js
+++ b/Js/fonctions.js
@@ -52324,6 +52324,8 @@ function afficher_bareme_accessoire_garant() {
if (!codeGcAssureur) return;
+ afficheBoutons(0);
+
// 1. Feedback visuel (SaaS UX)
const loadingMsg = (codeLangue === "en_US") ? "Loading schedule..." : "Chargement du barème...";
$divLister.html(`
@@ -87725,5366 +87727,4 @@ function maj_etape_3_import_assures_d(numeroOptionTarif)
{
donnees = 'numeroOptionTarif='+numeroOptionTarif;
- $.ajax({
- url: $("#racineWeb").val()+"Ajaximporterlisteassuredevis/majetape/",
- type: 'POST',
- data: donnees,
- success: function(data)
- {
- },
- error : function(resultat, statut, erreur)
- {
- },
- complete: function(data)
- {
- window.location.assign($("#racineWeb" ).val()+"Listeimportassuredevis/");
- }
- });
-}
-
-function afficher_adherent_importee_devis()
-{
- idCollege=$("#idCollege").val();
-
- if (idCollege<=" ")
- {
- v_msg="Veuillez sélectionner un collège!";
- v_msgEng="Please select a college!";
- alert_ebene(v_msg, v_msgEng);
-
- return;
- }
-
- donnees = 'idCollege='+idCollege;
-
- var div_attente = $('#div_adherents_importes');
-
- div_attente.html('
-
-
- ${(codeLangue === "en_US") ? "Sending WhatsApp message..." : "Envoi du message WhatsApp..."}
-
-
- `);
-
- // 6. Requête AJAX
- $.ajax({
- url: racineWeb + "Ajaxtesterdisponiblitesms/envoyerlewhatsapp/",
- type: 'POST',
- data: donnees,
- success: function(data) {
- toastr.success((codeLangue === "en_US") ? "WhatsApp API called" : "API WhatsApp appelée");
- div_cible.html(data);
- },
- error: function(xhr) {
- toastr.error((codeLangue === "en_US") ? "Connection error" : "Erreur de connexion");
- div_cible.html(`Veuillez sélectionner un produit.
');
- return;
- }
-
- // Loader Standard
- $("#div_parametres").html(
- 'Erreur lors du chargement des paramètres.
');
- }
- });
-}
-
-function retour_param_fact_garant()
-{
- window.location.assign($("#racineWeb" ).val()+"Paramfacturegarantcons/");
-}
-
-function inserer_param_fact_produit()
-{
- codeGcAssureur = $('#codeGcAssureur').val();
- codeProduit = $('#codeProduit').val();
-
- gcTauxFraisReel = $('#gcTauxFraisReel').val();
- gcTauxRedressement = $('#gcTauxRedressement').val();
- gcTauxCommissionGerant = $('#gcTauxCommissionGerant').val();
-
-
- montantBudget = parseInt($("#montantBudget").val().replace(/ /g,""),10);;
- montantBudgetEnfantSupl = parseInt($("#montantBudgetEnfantSupl").val().replace(/ /g,""),10);
- montantBudgetConjointSupl = parseInt($("#montantBudgetConjointSupl").val().replace(/ /g,""),10);
-
- forfaitHonoraire = parseInt($("#forfaitHonoraire").val().replace(/ /g,""),10);
- nbAdherent = parseInt($("#nbAdherent").val().replace(/ /g,""),10);
- nbBeneficiaire = parseInt($("#nbBeneficiaire").val().replace(/ /g,""),10);
-
- donnees = 'codeGcAssureur='+codeGcAssureur;
- donnees += '&codeProduit='+codeProduit;
- donnees += '&gcTauxFraisReel='+gcTauxFraisReel;
-
- donnees += '&gcTauxRedressement='+gcTauxRedressement;
- donnees += '&gcTauxCommissionGerant='+gcTauxCommissionGerant;
- donnees += '&montantBudget='+montantBudget;
- donnees += '&montantBudgetEnfantSupl='+montantBudgetEnfantSupl;
- donnees += '&montantBudgetConjointSupl='+montantBudgetConjointSupl;
- donnees += '&forfaitHonoraire='+forfaitHonoraire;
- donnees += '&nbAdherent='+nbAdherent;
- donnees += '&nbBeneficiaire='+nbBeneficiaire;
-
-
- $.ajax({
- url: $("#racineWeb").val()+"Ajaxparametreproduitgarant/inserer/",
- type : 'post',
- data: donnees,
- error: function(errorData){
- //alert("Erreur : "+errorData);
- },
- success: function(data) {
- //alert("Success : "+data);
- //
-
- v_msg="Paramètres insérés avec succès!";
- v_msgEng="Parameters inserted successfully!";
- alert_ebene(v_msg, v_msgEng);
-
-
- },
- complete: function() {
- retour_param_fact_garant();
- }
- });
-
-}
-
-function modifier_param_fact_produit(superUser)
-{
- if (superUser != "1"){
- v_msg="Non autorisé!";
- v_msgEng="Unauthorized!";
- alert_ebene(v_msg, v_msgEng);
-
- return;
- }
-
- window.location.assign($("#racineWeb" ).val()+"Paramfactureproduitgarant/");
-}
-
-function enregistrer_param_fact_produit()
-{
- codeGcAssureur = $('#codeGcAssureur').val();
- codeProduit = $('#codeProduit').val();
-
- gcTauxFraisReel = $('#gcTauxFraisReel').val();
- gcTauxRedressement = $('#gcTauxRedressement').val();
- gcTauxCommissionGerant = $('#gcTauxCommissionGerant').val();
-
- montantBudget = parseInt($("#montantBudget").val().replace(/ /g,""),10);;
- montantBudgetEnfantSupl = parseInt($("#montantBudgetEnfantSupl").val().replace(/ /g,""),10);
- montantBudgetConjointSupl = parseInt($("#montantBudgetConjointSupl").val().replace(/ /g,""),10);
-
- forfaitHonoraire = parseInt($("#forfaitHonoraire").val().replace(/ /g,""),10);
- nbAdherent = parseInt($("#nbAdherent").val().replace(/ /g,""),10);
- nbBeneficiaire = parseInt($("#nbBeneficiaire").val().replace(/ /g,""),10);
-
- donnees = 'codeGcAssureur='+codeGcAssureur;
- donnees += '&codeProduit='+codeProduit;
- donnees += '&gcTauxFraisReel='+gcTauxFraisReel;
-
- donnees += '&gcTauxRedressement='+gcTauxRedressement;
- donnees += '&gcTauxCommissionGerant='+gcTauxCommissionGerant;
- donnees += '&montantBudget='+montantBudget;
- donnees += '&montantBudgetEnfantSupl='+montantBudgetEnfantSupl;
- donnees += '&montantBudgetConjointSupl='+montantBudgetConjointSupl;
- donnees += '&forfaitHonoraire='+forfaitHonoraire;
- donnees += '&nbAdherent='+nbAdherent;
- donnees += '&nbBeneficiaire='+nbBeneficiaire;
-
-
- $.ajax({
- url: $("#racineWeb").val()+"Ajaxparametreproduitgarant/enregistrer/",
- type : 'post',
- data: donnees,
- error: function(errorData){
- //alert("Erreur : "+errorData);
- },
- success: function(data) {
- //alert("Success : "+data);
- //
-
- v_msg="Paramètres enregistrés avec succès!";
- v_msgEng="Settings saved successfully!";
- alert_ebene(v_msg, v_msgEng);
-
-
- },
- complete: function() {
- retour_param_fact_garant_cons();
- }
- });
-
-}
-
-function retour_param_fact_garant_cons()
-{
- window.location.assign($("#racineWeb" ).val()+"Paramfactureproduitgarantcons/");
-}
-
-
-function ouvrir_parametre_produit()
-{
- if ( $("#paramFacGcProduit").val() == "0")
- {
- v_msg="Non autorisée!";
- v_msgEng="Not allowed!";
- alert_ebene(v_msg, v_msgEng);
-
- return;
- }
-
- window.location.assign($("#racineWeb" ).val()+"Paramfactureproduitgarantcons/");
-}
-
-function change_password()
-{
-
- v_msg="Attention, vous serez déconnecté par la suite! Voulez-vous changer votre mot de passe?";
- v_msgEng="Attention, you will be logged out afterwards! Do you want to change your password?";
-
- confirm_ebene(v_msg, v_msgEng)
- .then((isConfirmed) => {
- if (isConfirmed) {
- // L'utilisateur a confirmé
- window.location.assign($("#racineWeb" ).val()+"Changermotpass/");
- } else {
- // L'utilisateur a annulé
- console.log("Confirmation refusée");
- }
- });
-}
-
-
-function infos_entite()
-{
- donnees = "";
-
- $.ajax({
- url: $("#racineWeb").val()+"Ajaxinfosentite/",
- type : 'post',
- data: donnees,
- error: function(errorData){
- //alert("Erreur : "+errorData);
- },
- success: function(data) {
- //alert("Success : "+data);
- //
- $('#div_entite').html(data);
-
- delaiUsageSaas = $("#delaiUsageSaas").val();
-
- //dateLimiteUsage = $("#dateLimiteUsage").val();
-
- /*
- v_msg="Dernière facture SAAS: "+delaiUsageSaas+"\nFin de licence: "+dateLimiteUsage;
- v_msgEng="Latest SAAS invoice: "+delaiUsageSaas+"\nEnd of license: "+dateLimiteUsage;
- */
-
- v_msg="Fin d'abonnement: "+delaiUsageSaas;
- v_msgEng="End of subscription: "+delaiUsageSaas;
-
-
- alert_ebene(v_msg, v_msgEng);
-
- return;
-
- },
- complete: function() {
-
- }
- });
-}
-
-function change_password()
-{
-
- v_msg="Attention, vous serez déconnecté par la suite! Voulez-vous changer votre mot de passe?";
- v_msgEng="Attention, you will be logged out afterwards! Do you want to change your password?";
-
- confirm_ebene(v_msg, v_msgEng)
- .then((isConfirmed) => {
- if (isConfirmed) {
- // L'utilisateur a confirmé
- window.location.assign($("#racineWeb" ).val()+"Changermotpass/");
- } else {
- // L'utilisateur a annulé
- console.log("Confirmation refusée");
- }
- });
-}
-
-function annuler_facture_classique_police(idFactureClassique, idFacture) {
-
- v_msg="Confirmez-vous cette annulation?";
- v_msgEng="Do you confirm this cancellation?";
-
-
- confirm_ebene(v_msg, v_msgEng)
- .then((isConfirmed) => {
- if (isConfirmed) {
- // L'utilisateur a confirmé
- donnees = 'idFactureClassique=' + idFactureClassique+'&idFacture='+idFacture;
-
- $("#div_annuler_facture").html('