---
suivi: 1069
date: 2026-07-29
sujet: Simplification formulaire création marché
chantier: marches
type: feature
statut: poussé
hash: 444b8af9
fichiers:
  - resources/js/Pages/Marches/Index.vue
  - resources/js/Pages/Marches/Create.vue
  - app/Http/Controllers/MarcheController.php
  - database/data/journal_mises_a_jour_post_2026_06_12.php
  - public/build/
  - docs/suivi/SUIVI_1069_simplification_creation_marche.md
---

## PROMPT ENVOYÉ

SUIVI #1069 — masquer Statut, Type et Détail libellé sur le formulaire de création
de marché uniquement. Défauts en_cours / forfait / intitulé. Édition inchangée.
Vérifier intitule et consommateurs de type avant de coder.

## SYNTHÈSE

### Détail libellé → `marches.intitule`
Alimente directement `marches.intitule` (pas de concat poste+fournisseur).
Colonne NOT NULL en migration mais validation déjà `nullable` → stocké `''`.
Bilan (sous-ligne = fournisseur), titre fiche (`titre_marche` = poste), SharePoint
(`{POSTE}_{FOURNISSEUR}`) n’utilisent PAS intitule. Masquage → intitulé `''` =
comportement déjà possible ; pas de génération auto (évite doublon avec poste/fournisseur).

### `marches.type` consommateurs
CRUD + affichage seulement (Index edit, Show inline, MarcheResumeWidgets, payloads).
Aucun branchement facturation / avenants / situations / Sage / retenues / SharePoint.
Défaut `forfait` sans conséquence métier ; reste modifiable après création.

### Défauts (BACK)
`store` : `type` nullable → `forfait` si absent ; `intitule` → `''` ; `statut` forcé
`en_cours` (déjà). Édition (PUT) inchangée : les trois champs restent requis/visibles.

## DÉPLOIEMENT-TEST

```bash
git pull origin main
find app/ -name "*.php" -exec touch {} +
php artisan optimize:clear
php artisan journal:sync
# pas de migrate ; pas de route:clear
```

## LEÇON
Masquer un champ n’est anodin que si l’on sait ce qu’il alimente en aval —
ici `marches.intitule` est NOT NULL et sert au bilan/frise/SharePoint en apparence,
mais en pratique ces écrans s’appuient sur poste/fournisseur ; l’intitulé vide
était déjà autorisé.
