diff --git a/Js/fonctions.js b/Js/fonctions.js index 60d44b5..519016f 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -2314,3 +2314,36 @@ function trouve_coordonnees_geo_ip(ip) } }); } + +function changer_avenant_incorporation_beneficiaire() +{ + idAvenant = $("#idAvenant").val(); + + if(idAvenant<=" ") + { + v_msg="Veuillez sélectionner un avenant!"; + v_msgEng="Please select an Amendment!"; + alert_ebene(v_msg, v_msgEng); + + $("#idAvenant").focus(); + return; + } + + donnees = 'idAvenant='+idAvenant; + + $.ajax({ + url: $("#racineWeb").val()+"Ajaxavenant/getdateavenantbeneficiaire/", + type : 'post', + data: donnees, + error: function(errorData) { + }, + success: function(data) { + $("#div_date_avenant").html(data); + $(".datepicker" ).datepicker(); + }, + complete: function() + { + prorater_prime_beneficiaire(); + } + }); +}