This commit is contained in:
KONE SOREL 2026-01-02 10:30:39 +00:00
parent 4ab17fa618
commit 879316c929
3 changed files with 36 additions and 3 deletions

View File

@ -1119,4 +1119,37 @@ function pop_consulter_tableau_prestation() {
document.getElementById("btn_pop").click();
}
});
}
function prorater_prime_adherent()
{
idCollege=$("#idCollege").val();
dateEntree=$("#dateEntree").val();
prorata=$("#prorata").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;
donnees += '&dateEntree='+dateEntree;
donnees += '&prorata='+prorata;
$.ajax({
url: $("#racineWeb").val()+"Ajaxproraterprime/",
type : 'post',
data: donnees,
error: function(errorData) {
},
success: function(data) {
$("#div_prime").html(data);
},
complete: function() {
}
});
}

View File

@ -1,7 +1,7 @@
<div id="div_prime" class="card border-0 shadow-sm mt-4 animate__animated animate__fadeInUp">
<div class="card-header bg-office-dark text-white py-3 d-flex justify-content-between align-items-center">
<h6 class="mb-0 fw-bold">
<i class="fas fa-file-invoice-dollar me-2 text-info"></i>
<i class="fas fa-file-invoice-dollar me-2 text-primary"></i>
<?= _("DÉCOMPTE DÉTAILLÉ DES PRIMES") ?>
</h6>
<span class="badge bg-primary px-3"><?= _("Calcul au Prorata") ?></span>

View File

@ -26,13 +26,13 @@
<div class="row g-3">
<div class="col-md-6">
<label class="form-label fw-bold small text-uppercase"><?= _("Collège") ?></label>
<select class="form-select border-primary-subtle" id="idCollege" name="idCollege" required autofocus onChange="prorater_prime_adherent();">
<select class="form-select border-primary-subtle" data-live-search="true" id="idCollege" name="idCollege" required autofocus onChange="prorater_prime_adherent();">
<?php liste_options($college,""); ?>
</select>
</div>
<div class="col-md-6">
<label class="form-label fw-bold small text-uppercase"><?= _("Avenant") ?></label>
<select class="form-select" id="idAvenant" name="idAvenant" required onChange="changer_avenant_incorporation();">
<select class="form-select" data-live-search="true" id="idAvenant" name="idAvenant" required onChange="changer_avenant_incorporation();">
<?php liste_options($avenant,""); ?>
</select>
</div>