Commit cb7caed5 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

Merge remote-tracking branch 'origin/master'

parents 445a38c9 79a01dd3
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -20,12 +20,6 @@ BEGIN

  END IF;

  -- Contrôle de l'unicité de SOURCE_CODE
  SELECT COUNT(*) INTO cs FROM INTERVENANT WHERE id <> :NEW.id AND histo_destruction IS NULL AND source_code = :NEW.source_code AND annee_id = :NEW.annee_id AND statut_id = :NEW.statut_id;
  IF cs > 0 THEN
    raise_application_error(-20101, 'Une autre fiche intervenant contient la même valeur pour SOURCE_CODE.');
  END IF;

  -- Contrôle de l'unicité de STATUT_ID
  SELECT COUNT(*) INTO cs FROM INTERVENANT WHERE
    id <> :NEW.id AND histo_destruction IS NULL