220 lines
14 KiB
PHP
Executable File
220 lines
14 KiB
PHP
Executable File
<?php
|
|
$superUser = $_SESSION['superUser'];
|
|
?>
|
|
|
|
<div class="page-content animate__animated animate__fadeIn">
|
|
<div class="header-section mb-1">
|
|
<div class="d-flex align-items-center justify-content-between bg-white p-3 shadow border-start border-warning border-4" style="border-radius: var(--radius-md);">
|
|
<div class="d-flex align-items-center">
|
|
<div class="icon-shape bg-primary-ghost text-primary rounded-circle me-3" style="width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;">
|
|
<i class="fas fa-file-invoice-dollar fs-4"></i>
|
|
</div>
|
|
<div>
|
|
<h4 id="titre-page" class="mb-0 fw-bold text-uppercase"><?= _("Paramètres Facturation Garant") ?></h4>
|
|
<p class="text-muted small mb-0"><?= _("Garant :") ?> <span class="fw-bold text-muted"><?= $this->nettoyer($gc['libelle']) ?></span></p>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="d-flex gap-2">
|
|
<button type="button" class="btn btn-light rounded-pill px-3 fw-bold text-muted border shadow-sm btn-sm" onclick="retour_fiche_garant();">
|
|
<i class="fas fa-times me-1"></i> <?= _("Annuler") ?>
|
|
</button>
|
|
<button type="button" id="btn_enreg" class="btn btn-primary rounded-pill px-4 fw-bold shadow-sm btn-sm" onclick="modifier_param_fact_garant('<?= $superUser ?>');">
|
|
<i class="fas fa-edit me-1"></i> <?= _("Modifier les Paramètres") ?>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<input type="hidden" id="idGc" name="idGc" value="<?= $this->nettoyer($gc['id']) ?>">
|
|
<input type="hidden" id="paramFacGcProduit" name="paramFacGcProduit" value="<?= $paramFacGcProduit ?>">
|
|
<input type="hidden" id="nomForm" name="nomForm" value="parametrefacturationgarant">
|
|
|
|
<div class="row g-2">
|
|
|
|
<div class="col-lg-6">
|
|
<div class="card border-0 shadow-sm h-100">
|
|
<div class="card-header bg-light py-3 border-bottom border-primary-light">
|
|
<h6 class="mb-0 fw-bold text-primary text-uppercase"><i class="fas fa-shield-alt me-2 text-primary"></i><?= _("Fonds Sinistres & Caution") ?></h6>
|
|
</div>
|
|
<div class="card-body p-4">
|
|
<div class="row g-3">
|
|
<div class="col-md-6">
|
|
<label class="form-label small text-muted fw-bold"><?= _("Source Fonds Sinistres") ?></label>
|
|
<?php if (!empty($gc['codeSourceFondGarantAppelFond'])): ?>
|
|
<select class="form-control bg-light border-0 fw-bold shadow-none" disabled>
|
|
<?php liste_options($sourcefonds, $gc['codeSourceFondGarantAppelFond'], false); ?>
|
|
</select>
|
|
<?php else: ?>
|
|
<input type="text" class="form-control bg-light border-0 fw-bold shadow-none" value="" disabled>
|
|
<?php endif; ?>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label small text-muted fw-bold"><?= _("Périodicité Fonds Sinistres") ?></label>
|
|
<?php if (!empty($gc['codePeriodiciteAppelFond'])): ?>
|
|
<select class="form-control bg-light border-0 fw-bold shadow-none" disabled>
|
|
<?php liste_options($periodicitesappelfond, $gc['codePeriodiciteAppelFond'], false); ?>
|
|
</select>
|
|
<?php else: ?>
|
|
<input type="text" class="form-control bg-light border-0 fw-bold shadow-none" value="" disabled>
|
|
<?php endif; ?>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label small text-muted fw-bold"><?= _("Assiette Fonds Sinistres") ?></label>
|
|
<?php if (!empty($gc['codeAssietteFacturationGarantAppelFond'])): ?>
|
|
<select class="form-control bg-light border-0 fw-bold shadow-none" disabled>
|
|
<?php liste_options($assiettefonds, $gc['codeAssietteFacturationGarantAppelFond'], false); ?>
|
|
</select>
|
|
<?php else: ?>
|
|
<input type="text" class="form-control bg-light border-0 fw-bold shadow-none" value="" disabled>
|
|
<?php endif; ?>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label small text-muted fw-bold"><?= _("Périodicité Facturation Déficit") ?></label>
|
|
<?php if (!empty($gc['codePeriodiciteFacturationDeficit'])): ?>
|
|
<select class="form-control bg-light border-0 fw-bold shadow-none" disabled>
|
|
<?php liste_options($periodicitesfactDeficit, $gc['codePeriodiciteFacturationDeficit'], false); ?>
|
|
</select>
|
|
<?php else: ?>
|
|
<input type="text" class="form-control bg-light border-0 fw-bold shadow-none" value="" disabled>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<hr class="my-3 opacity-10">
|
|
|
|
<div class="col-md-6">
|
|
<label class="form-label small text-muted fw-bold"><?= _("Fraction Caution (Nb mois/12)") ?></label>
|
|
<div class="form-control bg-light border-0 fw-bold"><?= format_N($gc['nbMoisCaution']) ?></div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label small text-muted fw-bold"><?= _("Seuil Complément (%)") ?></label>
|
|
<div class="form-control bg-light border-0 fw-bold text-primary"><?= format_N($gc['seuilComplementCaution']) ?> %</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label small text-muted fw-bold"><?= _("Source Fonds Caution Permanent") ?></label>
|
|
<?php if (!empty($gc['codeSourceFondGarantCaution'])): ?>
|
|
<select class="form-control bg-light border-0 fw-bold shadow-none" disabled>
|
|
<?php liste_options($sourcecaution, $gc['codeSourceFondGarantCaution'], false); ?>
|
|
</select>
|
|
<?php else: ?>
|
|
<input type="text" class="form-control bg-light border-0 fw-bold shadow-none" value="" disabled>
|
|
<?php endif; ?>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label small text-muted fw-bold"><?= _("Forfait Caution (HT)") ?></label>
|
|
<div class="form-control bg-light border-0 fw-bold"><?= format_N($gc['forfaitCautionPermanant']) ?></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-lg-6">
|
|
<div class="card border-0 shadow-sm h-100">
|
|
<div class="card-header bg-light py-3 border-bottom border-primary-light">
|
|
<h6 class="mb-0 fw-bold text-primary text-uppercase"><i class="fas fa-hand-holding-usd me-2 text-primary"></i><?= _("Honoraires & Taux Commission") ?></h6>
|
|
</div>
|
|
<div class="card-body p-4">
|
|
<div class="row g-3">
|
|
<div class="col-md-6">
|
|
<label class="form-label small text-muted fw-bold"><?= _("Source Fonds Honoraires") ?></label>
|
|
<?php if (!empty($gc['codeSourceFondGarantHonoraire'])): ?>
|
|
<select class="form-control bg-light border-0 fw-bold shadow-none" disabled>
|
|
<?php liste_options($sourcehonoraire, $gc['codeSourceFondGarantHonoraire'], false); ?>
|
|
</select>
|
|
<?php else: ?>
|
|
<input type="text" class="form-control bg-light border-0 fw-bold shadow-none" value="" disabled>
|
|
<?php endif; ?>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label small text-muted fw-bold"><?= _("Périodicité Honoraires") ?></label>
|
|
<?php if (!empty($gc['codePeriodiciteHonoraire'])): ?>
|
|
<select class="form-control bg-light border-0 fw-bold shadow-none" disabled>
|
|
<?php liste_options($periodicites, $gc['codePeriodiciteHonoraire'], false); ?>
|
|
</select>
|
|
<?php else: ?>
|
|
<input type="text" class="form-control bg-light border-0 fw-bold shadow-none" value="" disabled>
|
|
<?php endif; ?>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label small text-muted fw-bold"><?= _("Assiette Fonds Honoraires") ?></label>
|
|
<?php if (!empty($gc['codeAssietteFacturationGarantHonoraire'])): ?>
|
|
<select class="form-control bg-light border-0 fw-bold shadow-none" disabled>
|
|
<?php liste_options($assiettehonoraire, $gc['codeAssietteFacturationGarantHonoraire'], false); ?>
|
|
</select>
|
|
<?php else: ?>
|
|
<input type="text" class="form-control bg-light border-0 fw-bold shadow-none" value="" disabled>
|
|
<?php endif; ?>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label small text-muted fw-bold"><?= _("Forfait Honoraires (HT)") ?></label>
|
|
<div class="form-control bg-light border-0 fw-bold"><?= format_N($gc['forfaitHonoraire']) ?></div>
|
|
</div>
|
|
|
|
<hr class="my-3 opacity-10">
|
|
|
|
<div class="col-md-6">
|
|
<label class="form-label small text-muted fw-bold"><?= _("TVA (%)") ?></label>
|
|
<div class="form-control bg-light border-0 fw-bold"><?= format_N($gc['gcTauxTva']) ?> %</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label small text-muted fw-bold"><?= _("Commission sur Primes (%)") ?></label>
|
|
<div class="form-control bg-light border-0 fw-bold text-primary"><?= format_N($gc['gcTauxCommissionGerant']) ?> %</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label small text-muted fw-bold"><?= _("Commission Provision/Sinistres") ?></label>
|
|
<div class="form-control bg-light border-0 fw-bold text-primary"><?= format_N($gc['gcTauxFraisReel']) ?> %</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="form-label small text-muted fw-bold"><?= _("Taux Redressement (%)") ?></label>
|
|
<div class="form-control bg-light border-0 fw-bold"><?= format_N($gc['gcTauxRedressement']) ?> %</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-lg-12">
|
|
<div class="card border-0 shadow-sm">
|
|
<div class="card-body p-4 bg-primary-ghost-light">
|
|
<div class="row align-items-center g-3">
|
|
<div class="col-md-3 border-end">
|
|
<label class="small text-muted fw-bold text-uppercase d-block mb-1"><?= _("Familles Estimées") ?></label>
|
|
<span class="h4 fw-bold mb-0"><?= format_N($gc['nbAdherent']) ?></span>
|
|
</div>
|
|
<div class="col-md-3 border-end">
|
|
<label class="small text-muted fw-bold text-uppercase d-block mb-1"><?= _("Bénéficiaires Estimés") ?></label>
|
|
<span class="h4 fw-bold mb-0"><?= format_N($gc['nbBeneficiaire']) ?></span>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<label class="small text-muted fw-bold text-uppercase d-block mb-1"><?= _("Provision Globale Garant (HT)") ?></label>
|
|
<span class="h3 fw-bold text-primary mb-0"><?= format_N($gc['montantBudget']) ?></span>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<style>
|
|
.bg-primary-ghost { background-color: rgba(33, 46, 83, 0.08) !important; }
|
|
.bg-primary-ghost-light { background-color: rgba(33, 46, 83, 0.02) !important; }
|
|
.border-primary-light { border-color: rgba(33, 46, 83, 0.1) !important; }
|
|
|
|
/* Style Neutral Pro pour les champs désactivés simulant du texte */
|
|
.form-control:disabled {
|
|
opacity: 1;
|
|
color: #212e53;
|
|
cursor: default;
|
|
font-weight: 700;
|
|
background-color: #f8f9fa !important;
|
|
}
|
|
|
|
/* Cache l'icône de flèche pour les select transformés en form-control */
|
|
select.form-control:disabled {
|
|
-webkit-appearance: none;
|
|
-moz-appearance: none;
|
|
appearance: none;
|
|
}
|
|
</style>
|