158 lines
11 KiB
PHP
Executable File
158 lines
11 KiB
PHP
Executable File
<?php //$this->titre = "INTER SANTE - " . _("Modifier Paramètres Production"); ?>
|
|
|
|
<div class="page-content">
|
|
<input class="sr-only" type="text" id="idSocieteuser" name="idSocieteuser" value="<?= $this->nettoyer($societeuser['idSocieteuser']) ?>">
|
|
|
|
<div class="header-section mb-4">
|
|
<div class="d-flex align-items-center justify-content-between bg-white p-3 shadow-sm border-start border-warning border-4" style="border-radius: var(--radius-md);">
|
|
<div class="d-flex align-items-center">
|
|
<div class="icon-shape bg-warning-ghost text-warning rounded-circle me-3" style="width: 45px; height: 45px; display: flex; align-items: center; justify-content: center;">
|
|
<i class="fas fa-edit fs-5"></i>
|
|
</div>
|
|
<div>
|
|
<h4 id="titre-page" class="mb-0 fw-bold text-uppercase"><?= _("Modifier Règles Métier") ?></h4>
|
|
<p class="text-muted small mb-0"><?= _("Production & Comptabilité — Ajustement des seuils et taux opérationnels") ?></p>
|
|
</div>
|
|
</div>
|
|
<div class="d-flex gap-2">
|
|
<button class="btn btn-outline-secondary btn-sm px-3 fw-bold" onclick="javascript:afficher_autres_parametresgeneraux();">
|
|
<i class="fas fa-undo me-2"></i><?= _("Annuler") ?>
|
|
</button>
|
|
<button class="btn btn-primary btn-sm px-3 fw-bold shadow-sm" id="btn_enreg" onclick="javascript:enregistrer_modif_parametres_prod();">
|
|
<i class="fas fa-save me-2"></i><?= _("Enregistrer") ?>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<form id="formModifProd">
|
|
|
|
<div class="card border-0 shadow-sm mb-4">
|
|
<div class="card-header bg-primary py-3">
|
|
<h6 class="mb-0 text-white fw-bold text-uppercase"><i class="fas fa-industry me-2"></i><?= _("Paramètres de Production") ?></h6>
|
|
</div>
|
|
<div class="card-body p-0">
|
|
<div class="table-responsive">
|
|
<table class="table table-hover align-middle mb-0">
|
|
<thead class="bg-light">
|
|
<tr>
|
|
<th width="5%" class="text-center border-0 small text-muted">#</th>
|
|
<th class="border-0 small text-muted"><?= _("Désignation du paramètre") ?></th>
|
|
<th width="18%" class="text-center border-0 small text-muted"><?= _("Ancienne Valeur") ?></th>
|
|
<th width="22%" class="text-center border-0 small text-muted"><?= _("Nouvelle Valeur") ?></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr class="searchable-row">
|
|
<td class="text-center"><span class="badge-ghost bg-primary-ghost">01</span></td>
|
|
<td class="text-dark fw-bold"><?= _("Taux des honoraires ou commissions du gestionnaire sur chaque prime") ?></td>
|
|
<td class="text-center bg-light text-muted fw-bold"><?= $this->nettoyer($societeuser['tauxHonoraires']) ?> %</td>
|
|
<td>
|
|
<div class="input-group input-group-sm">
|
|
<input class="form-control text-center fw-bold border-warning" id="tauxHonoraires" name="tauxHonoraires" type="text" value="<?= $this->nettoyer($societeuser['tauxHonoraires']) ?>" onBlur="javascript:controle_numerique_new(this.id, <?= $this->nettoyer($societeuser['tauxHonoraires']) ?>);">
|
|
<span class="input-group-text bg-white border-warning">%</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<tr class="searchable-row">
|
|
<td class="text-center"><span class="badge-ghost bg-primary-ghost">02</span></td>
|
|
<td class="text-dark fw-bold small"><?= _("Rapport S/P au-delà duquel les lignes s'affichent en rouge (spMax)") ?></td>
|
|
<td class="text-center bg-light text-muted fw-bold"><?= $this->nettoyer($societeuser['spMax']) ?> %</td>
|
|
<td>
|
|
<div class="input-group input-group-sm">
|
|
<input class="form-control text-center fw-bold border-warning" id="spMax" name="spMax" type="text" value="<?= $this->nettoyer($societeuser['spMax']) ?>" onBlur="javascript:controle_numerique_new(this.id, <?= $this->nettoyer($societeuser['spMax']) ?>);">
|
|
<span class="input-group-text bg-white border-warning">%</span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
|
|
<?php
|
|
$cartes = [
|
|
['03', _("Coût d'une nouvelle carte (assuré entrant)"), 'fraisCarteAN'],
|
|
['04', _("Coût d'une carte pour un renouvellement"), 'fraisCarteREN'],
|
|
['05', _("Coût pour ré-imprimer une carte (perdue/abîmée)"), 'fraisCarteImp']
|
|
];
|
|
foreach($cartes as $c): ?>
|
|
<tr class="searchable-row">
|
|
<td class="text-center"><span class="badge-ghost bg-primary-ghost"><?= $c[0] ?></span></td>
|
|
<td class="text-dark fw-bold"><?= $c[1] ?></td>
|
|
<td class="text-center bg-light text-muted fw-bold"><?= format_N($this->nettoyer($societeuser[$c[2]])) ?></td>
|
|
<td>
|
|
<div class="input-group input-group-sm">
|
|
<input class="form-control text-center fw-bold border-warning" id="<?= $c[2] ?>" name="<?= $c[2] ?>" type="text" value="<?= $this->nettoyer($societeuser[$c[2]]) ?>" onBlur="javascript:controle_numerique_new(this.id, <?= $this->nettoyer($societeuser[$c[2]]) ?>);">
|
|
<span class="input-group-text bg-white border-warning"><?= $_SESSION['devise_C'] ?></span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
|
|
<?php
|
|
$selects = [
|
|
['09', _("Permettre l'archivage automatique des primes ?"), 'archivageAutomatiquePrime', $archiveautoouinon],
|
|
['10', _("Envoi du n° assuré par notification (SMS/WA/Mail) ?"), 'notificationSmsNumeroAssure', $notificationSmsNumeroAssureouinon],
|
|
['12', _("Activer la facturation d'un garant par produit ?"), 'parametresFacturationGarantProduit', $parametresFacturationGarantProduitouinon],
|
|
['13', _("Autoriser l'ajout de photos sur le portail assuré ?"), 'assureAjoutPhoto', $assureAjoutPhotoOuinon]
|
|
];
|
|
foreach($selects as $s): ?>
|
|
<tr class="searchable-row">
|
|
<td class="text-center"><span class="badge-ghost bg-primary-ghost"><?= $s[0] ?></span></td>
|
|
<td class="text-dark fw-bold"><?= $s[1] ?></td>
|
|
<td class="text-center bg-light text-muted fw-bold"><?= ($societeuser[$s[2]] == "1") ? _("Oui") : _("Non") ?></td>
|
|
<td>
|
|
<select class="form-select form-select-sm fw-bold border-warning" id="<?= $s[2] ?>" name="<?= $s[2] ?>">
|
|
<?php liste_options($s[3], $this->nettoyer($societeuser[$s[2]]), true); ?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
<?php endforeach; ?>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="card border-0 shadow-sm mb-5">
|
|
<div class="card-header bg-success py-3">
|
|
<h6 class="mb-0 text-white fw-bold text-uppercase"><i class="fas fa-calculator me-2"></i><?= _("Paramètres Comptables") ?></h6>
|
|
</div>
|
|
<div class="card-body p-0">
|
|
<table class="table table-hover align-middle mb-0">
|
|
<tbody>
|
|
<tr class="searchable-row">
|
|
<td width="5%" class="text-center"><span class="badge-ghost bg-success-ghost">01</span></td>
|
|
<td class="text-dark fw-bold"><?= _("Valeur de l'écart toléré sur encaissement prime ou garant") ?></td>
|
|
<td width="18%" class="text-center bg-light text-muted fw-bold"><?= format_N($this->nettoyer($societeuser['EcartEncaissementTolerable'])) ?></td>
|
|
<td width="22%">
|
|
<div class="input-group input-group-sm">
|
|
<input class="form-control text-center fw-bold border-warning" id="ecartEncaissementTolerable" name="ecartEncaissementTolerable" type="text" value="<?= $this->nettoyer($societeuser['EcartEncaissementTolerable']) ?>" onBlur="javascript:controle_numerique_new(this.id, <?= $this->nettoyer($societeuser['EcartEncaissementTolerable']) ?>);">
|
|
<span class="input-group-text bg-white border-warning"><?= $_SESSION['devise_C'] ?></span>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="searchable-row">
|
|
<td class="text-center"><span class="badge-ghost bg-success-ghost">02</span></td>
|
|
<td class="text-dark fw-bold"><?= _("Le lettrage des encaissements garants est-il automatique ?") ?></td>
|
|
<td class="text-center bg-light text-muted fw-bold"><?= ($societeuser['lettrageAutoGarant'] == "1") ? _("Oui") : _("Non") ?></td>
|
|
<td>
|
|
<select class="form-select form-select-sm fw-bold border-warning" id="lettrageAutoGarant" name="lettrageAutoGarant">
|
|
<?php liste_options($lettrageAutoGarantouinon, $this->nettoyer($societeuser['lettrageAutoGarant']), true); ?>
|
|
</select>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<style>
|
|
/* Style d'input focus spécifique au mode édition */
|
|
.form-control:focus, .form-select:focus {
|
|
border-color: #f39c12;
|
|
box-shadow: 0 0 0 0.2rem rgba(243, 156, 18, 0.15);
|
|
}
|
|
</style>
|
|
|