diff --git a/Js/fonctions.js b/Js/fonctions.js index 519016f..8b87345 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -2347,3 +2347,24 @@ function changer_avenant_incorporation_beneficiaire() } }); } + +function filtrergenreconjoint() +{ + codeLienParente = $('#codeLienParente').val(); + genreAdherent = $('#genreAdherent').val(); + + if(codeLienParente=='C'){ + if(genreAdherent=="F"){ + $('#sexe').val('M'); + $('#sexeConjoint').val('M'); + }else{ + $('#sexe').val('F'); + $('#sexeConjoint').val('F'); + } + + $('#sexe').disable(); + return; + } + $('#sexe').enable(); +} + diff --git a/Vue/gabarit.php b/Vue/gabarit.php index de3fd75..1452eed 100755 --- a/Vue/gabarit.php +++ b/Vue/gabarit.php @@ -635,7 +635,7 @@ $photoAssureCrypte = $_SESSION['photoAssureCrypte']; - +