derniers details

This commit is contained in:
2024-01-18 11:57:40 +01:00
parent db1c54c442
commit e4574d7ff4
4 changed files with 21 additions and 7 deletions

View File

@@ -81,6 +81,14 @@ $totalFraisFiche = $newFiche->getMontantValide();
* ETAT DE LA FICHE
*/
$status = $newFiche->getStatus();
$disabled = ($status !== 'CR') ? 'disabled' : '';
if (
($status['eId'] == 'CL' && $typeUser == 'comptable')
|| ($status['eId'] == 'CR' && $typeUser == 'visiteur')
){
$disabled = '';
} else {
$disabled = 'disabled';
}
include(__DIR__ . '/../vues/v_newFiche.php');