211 lines
9.8 KiB
PHP
Executable File
211 lines
9.8 KiB
PHP
Executable File
<?php $this->titre = "INTER SANTE - Nouveau Garant"; ?>
|
|
|
|
<legend> <?= _("Modification Paramètres de facturation du garant")." : ".$gc['libelle'] ?> </legend>
|
|
|
|
<?php
|
|
$superUser = $_SESSION['superUser'];
|
|
$codeSourceFondGarantAppelFond = $gc['codeSourceFondGarantAppelFond'];
|
|
$codeSourceFondGarantHonoraire = $gc['codeSourceFondGarantHonoraire'];
|
|
|
|
?>
|
|
|
|
<input class="sr-only" type="text" id="idGc" name="idGc" value="<?= $this->nettoyer($gc['id']) ?>" >
|
|
<input class="sr-only" type="text" id="nomForm" name="nomForm" value="parametrefacturationgarant" >
|
|
|
|
<table class="table table-responsive table-condensed" style='font-size:10pt;'>
|
|
<tbody>
|
|
<tr>
|
|
<td width="22%"> <?= _("Fraction Caution => Nb mois / 12") ?> </td>
|
|
<td>
|
|
<INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="nbMoisCaution" NAME="nbMoisCaution"
|
|
value="<?=format_N( $this->nettoyer($gc['nbMoisCaution'])) ?> " >
|
|
</td>
|
|
|
|
<td colspan="2" width="5%"></td>
|
|
|
|
<td width="22%"> <?= _("Seuil pour Complément Caution (%)") ?> </td>
|
|
<td>
|
|
<INPUT style='font-size:10pt;' class="form-control" id="seuilComplementCaution" NAME="seuilComplementCaution"
|
|
value="<?= format_N($this->nettoyer($gc['seuilComplementCaution'])) ?>" >
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td > <?= _("Source Fond Sinistres") ?> </td>
|
|
<td>
|
|
<select class="form-select" id="codeSourceFondGarantAppelFond" NAME="codeSourceFondGarantAppelFond" style="font-size:12pt; height:30px;" onchange="javascript:control_param_facturation_garant(); filtre_assiette_fond()">
|
|
<?php liste_options($sourcefonds,$gc['codeSourceFondGarantAppelFond'],false); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
<td colspan="2"></td>
|
|
|
|
|
|
<td class="required"><?= _("Périodicité Fond Sinistres") ?></td>
|
|
<td>
|
|
<select class="form-select" id="codePeriodiciteAppelFond" NAME="codePeriodiciteAppelFond"
|
|
style="font-size:12pt; height:30px;" required AUTOCOMPLETE="OFF" onChange="change_periodicite_honoraire();">
|
|
<?php liste_options($periodicitesappelfond,$gc['codePeriodiciteAppelFond'],false); ?>
|
|
</SELECT>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td > <?= _("Assiette Fond Sinistres") ?> </td>
|
|
<td>
|
|
<div id="div_assiette_fonds">
|
|
<select class="form-select" id="codeAssietteFacturationGarantAppelFond" NAME="codeAssietteFacturationGarantAppelFond" style="font-size:12pt; height:30px;">
|
|
<?php liste_options($assiettefonds,$gc['codeAssietteFacturationGarantAppelFond'],false); ?>
|
|
</SELECT>
|
|
</div>
|
|
</td>
|
|
|
|
<td colspan="2"></td>
|
|
|
|
<td class="required"> <?= _("Périodicité Facturation Déficit") ?> </td>
|
|
<td>
|
|
<select class="form-select" id="codePeriodiciteFacturationDeficit" NAME="codePeriodiciteFacturationDeficit" style="font-size:12pt; height:30px;" required AUTOCOMPLETE="OFF">
|
|
<?php liste_options($periodicitesfactDeficit,$gc['codePeriodiciteFacturationDeficit'],false); ?>
|
|
</SELECT>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td > <?= _("Source Fond Honoraires") ?> </td>
|
|
<td>
|
|
<select class="form-select" id="codeSourceFondGarantHonoraire" NAME="codeSourceFondGarantHonoraire" style="font-size:12pt; height:30px;" onchange="javascript:control_param_facturation_garant(); filtre_assiette_honoraire();">
|
|
<?php liste_options($sourcehonoraire,$gc['codeSourceFondGarantHonoraire'],false); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
<td colspan="2"></td>
|
|
|
|
<td ><?= _("Forfait Fond Honoraires (HT)") ?></td>
|
|
<td>
|
|
<?php if ($codeSourceFondGarantHonoraire=="FOR"): ?>
|
|
<INPUT style='font-size:10pt;' class="form-control" TYPE="text" id="forfaitHonoraire"
|
|
NAME="forfaitHonoraire" value="<?= format_N($this->nettoyer($gc['forfaitHonoraire'])) ?>"
|
|
onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);" >
|
|
<?php else : ?>
|
|
<INPUT style='font-size:10pt;' class="form-control" id="forfaitHonoraire" NAME="forfaitHonoraire"
|
|
value="0" onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);" disabled>
|
|
<?php endif; ?>
|
|
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td > <?= _("Assiette Fond Honoraires") ?> </td>
|
|
<td>
|
|
<div id="div_assiette_honoraire">
|
|
<select class="form-select" id="codeAssietteFacturationGarantHonoraire" NAME="codeAssietteFacturationGarantHonoraire" style="font-size:12pt; height:30px;">
|
|
<?php liste_options($assiettehonoraire,$gc['codeAssietteFacturationGarantHonoraire'],false); ?>
|
|
</SELECT>
|
|
</div>
|
|
</td>
|
|
|
|
<td colspan="2"></td>
|
|
|
|
<td > <?= _("Périodicité Fond Honoraires") ?> </td>
|
|
<td>
|
|
<select class="form-select" id="codePeriodiciteHonoraire" NAME="codePeriodiciteHonoraire"
|
|
style="font-size:12pt; height:30px;" disabled>
|
|
<?php liste_options($periodicites,$gc['codePeriodiciteHonoraire'],false); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
|
<td > <?= _("Nombre Total Famille Estimé") ?> </td>
|
|
<td> <INPUT style='font-size:10pt;' class="form-control" id="nbAdherent" NAME="nbAdherent" TYPE="text" value="<?= format_N($this->nettoyer($gc['nbAdherent'])) ?>"
|
|
onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"></td>
|
|
|
|
<td colspan="2"></td>
|
|
|
|
<td > <?= _("Nombre Total Bénéficiaire Estimé") ?> </td>
|
|
<td> <INPUT style='font-size:10pt;' class="form-control" id="nbBeneficiaire" NAME="nbBeneficiaire" TYPE="text" value="<?= format_N($this->nettoyer($gc['nbBeneficiaire'])) ?>"
|
|
onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);"></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td > <?= _("Source Fond Caution Permanente") ?> </td>
|
|
<td>
|
|
<select class="form-select" id="codeSourceFondGarantCaution" NAME="codeSourceFondGarantCaution" style="font-size:12pt; height:30px;" onchange="javascript:control_param_facturation_garant();">
|
|
<?php liste_options($sourcecaution,$gc['codeSourceFondGarantCaution'],false); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
<td colspan="2"></td>
|
|
|
|
<td > <?= _("Forfait Caution Permanente (HT)") ?> </td>
|
|
<td >
|
|
<INPUT style='font-size:10pt;' class="form-control majuscule" TYPE="text" id="forfaitCautionPermanant"
|
|
NAME="forfaitCautionPermanant" value="<?= format_N($this->nettoyer($gc['forfaitCautionPermanant'])) ?>"
|
|
onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);" >
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td > <?= _("Assiette Fond Caution Permanente") ?> </td>
|
|
<td>
|
|
<select class="form-select" id="codeAssietteFacturationGarantCaution" NAME="codeAssietteFacturationGarantCaution" style="font-size:12pt; height:30px;" >
|
|
<?php liste_options($assiettecaution,$gc['codeAssietteFacturationGarantCaution'],false); ?>
|
|
</SELECT>
|
|
</td>
|
|
|
|
<td colspan="2"></td>
|
|
|
|
<td ><?= _("Montant Provision Garant (HT)") ?></td>
|
|
<td >
|
|
<?php if ($codeSourceFondGarantAppelFond=="BUD" || $codeSourceFondGarantHonoraire=="BUD"): ?>
|
|
<INPUT style='font-size:10pt;' class="form-control" TYPE="text" name="montantBudget" id="montantBudget" class="form-control"
|
|
value="<?= format_N($this->nettoyer($gc['montantBudget'])) ?>" onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);"
|
|
onblur="formatMonetaire(this);" >
|
|
<?php else : ?>
|
|
<INPUT style='font-size:10pt;' class="form-control" TYPE="text" name="montantBudget" id="montantBudget" class="form-control"
|
|
value="0" onfocus="formatNumerique(this);" onkeyup="controle_numerique(this);" onblur="formatMonetaire(this);" disabled>
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td > <?= _("Taux Tva (%)") ?> </td>
|
|
<td> <INPUT style='font-size:10pt;' class="form-control" id="gcTauxTva" NAME="gcTauxTva" TYPE="number" step="1"value="<?= $this->nettoyer($gc['gcTauxTva']) ?>" min="0" max="100"></td>
|
|
|
|
<td colspan="2"></td>
|
|
|
|
<td > <?= _("Taux Commission Primes (%)") ?> </td>
|
|
<td>
|
|
<?php if ($codeSourceFondGarantHonoraire=="PRI"): ?>
|
|
<INPUT style='font-size:10pt;' class="form-control" id="gcTauxCommissionGerant" NAME="gcTauxCommissionGerant" TYPE="number" value="<?= $this->nettoyer($gc['gcTauxCommissionGerant']) ?>" step="1" value="0" min="0" max="100">
|
|
<?php else : ?>
|
|
<INPUT style='font-size:10pt;' class="form-control" id="gcTauxCommissionGerant" NAME="gcTauxCommissionGerant" TYPE="number" value="0" disabled>
|
|
<?php endif; ?>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td > <?= _("Taux Commission Provision/Sinistres (%)") ?> </td>
|
|
<td>
|
|
<?php if ($codeSourceFondGarantHonoraire=="BUD" || $codeSourceFondGarantHonoraire=="SIN"): ?>
|
|
<INPUT style='font-size:10pt;' class="form-control" id="gcTauxFraisReel" NAME="gcTauxFraisReel" TYPE="number" value="<?= $this->nettoyer($gc['gcTauxFraisReel']) ?>" step="1" value="0" min="0" max="100">
|
|
<?php else : ?>
|
|
<INPUT style='font-size:10pt;' class="form-control" id="gcTauxFraisReel" NAME="gcTauxFraisReel" TYPE="number" value="0" disabled>
|
|
<?php endif; ?>
|
|
</td>
|
|
|
|
<td colspan="2"></td>
|
|
|
|
<td > <?= _("Taux Redressement (%)") ?> </td>
|
|
<td> <INPUT style='font-size:10pt;' class="form-control" id="gcTauxRedressement" NAME="gcTauxRedressement" TYPE="number" step="1" value="<?= $this->nettoyer($gc['gcTauxRedressement']) ?>" min="0" max="100"></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td colspan="2"> <input id="btn_enreg" name="btn_enreg" class = "form-control btn btn-primary" type="button" value="<?= _("Enregistrer") ?>" onClick="javascript:maj_paramfacturegarant();" style='font-size:10pt;' > </td>
|
|
<td colspan="2"></td>
|
|
<td colspan="2"> <input class = "form-control btn btn-warning" type="button" value="<?= _("Annuler") ?>" onClick="javascript:consulter_param_fact_garant();" style='font-size:9pt;' > </td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|