Commit 0bdf460e authored by Johnny Leveneur's avatar Johnny Leveneur
Browse files

gestion scan place supprimé

parent f3c0eccc
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -99,6 +99,17 @@ class ScanController extends AbstractActionController
            ]);
        }

        // TODO à revoir suite à l'utilisation que de place pointéee
        if(!$inscriptionPlace)
        {
            // Inscription historisé
            return new JsonModel([
                'ok' => false
                , 'status' => 'err'
                , 'error' => "Place invalide."
            ]);
        }

        if($inscription->getListe() === Inscription::COMPLEMENTAIRE )
        {
            // Inscription sur Liste Complémentaire
@@ -109,6 +120,7 @@ class ScanController extends AbstractActionController
            ]);
        }

        // TODO à revoir suite à l'utilisation que de place pointéee
        if ($inscription->getNombrePlacesPointees() >= $inscription->getNombrePlacesDemandees()) {
            // déjà pointé → "warn"
            $status = 'warn';