---
suivi: 1647
date: 2026-09-22
sujet: Étude Fi — retouches d’affichage + fiche foncière au format tableur
chantier: Foncier / Faisabilité
type: refonte-affichage
statut: poussé
hash: 83a77121
fichiers:
  - resources/js/Pages/Foncier/Scenarios/Show.vue
  - tests/Unit/ScenarioEtudeFiRetouchesFicheTableur1647SourceTest.php
  - tests/Unit/ScenarioEtudeFiTableauContinu1643SourceTest.php
  - tests/Unit/ScenarioBarreKpiEtUnites1640SourceTest.php
  - tests/Unit/FaisabiliteSaisieTableur1636SourceTest.php
  - database/data/journal_mises_a_jour_post_2026_06_12.php
  - public/build/
  - docs/suivi/SUIVI_1647_etude_fi_retouches_et_fiche_fonciere_tableur.md
---

# SUIVI #1647 — étude Fi retouches + fiche foncière tableur

## PROMPT ENVOYÉ

Lot PUREMENT VISUEL sur `/foncier/scenarios/{id}` : (A) sous-totaux de section en
gras, retrait badge « SAISI », retrait colonne « Formule appliquée », unitaire
calculé en Saisie lecture seule ; (B) fiche foncière au format tableur #1642.
Aucun calcul, aucun payload, aucune migration.

## FICHES LUES

- **#1643** — tableau continu étude Fi, colonnes, CELL_INPUT_NUM, pastilles.
- **#1642** — CELL_INPUT / CELL_SELECT_PT / CELL_FOCUS / CELL_BASE, gouttière 30 px.
- **#1640** — inventaire unitaires / natures ; honoraires commercialisation et
  communication groupe = CALCULÉ avec `unitaire` déjà exposé.
- **#1645** — libellé libre sans propriétaire possible.
- **#1641** — ligne ventilations / BASE PR FONCIER à conserver.

## SYNTHÈSE

### Partie A — Étude Fi

| Point | Action |
|---|---|
| A1 | Montant du sous-total de section en `font-bold` (8 sections) |
| A2 | Badge bleu « saisi » retiré ; badge gris « calculé » conservé |
| A3 | Colonne « Formule appliquée » retirée ; largeur vers Montant HT (`w-[9.5rem]` + `whitespace-nowrap`) |
| A4 | `afficheUnitaireCalculeEnSaisie` : unitaire en Saisie gris non éditable |

Postes calculés AVEC unitaire (Saisie affiche l’unitaire) :
- Honoraires de commercialisation (`honoraires_commercialisation`) — barème moteur
- Communication groupe (`communication_groupe`) — `communication_groupe_par_lot`

Postes calculés SANS unitaire (Saisie vide) : imprévus travaux, frais bancaires,
impôts fonciers, honoraires de gestion, totaux / contrôles / pct_*, etc.

Doublon règle : pastille seule pour % (imprévus, frais bancaires) — plus de colonne Formule.

### Partie B — Fiche foncière

Classes #1642 réutilisées : `CELL_INPUT`, `CELL_INPUT_NUM`, `CELL_SELECT_PT`,
`CELL_FOCUS`, `CELL_BASE`. Mécanisme clavier inchangé (`registerCell` / `focusCellule`
/ `memoriserValeur` / `annulerEdition` / `onCelluleEnterTable`). Conteneur
`overflow-x-auto` propre au tableau. Ligne ventilations #1641 intacte. Boutons
Enregistrer intacts (#1648).

### PHP

Aucun fichier PHP modifié. Closures : aucune ajoutée.

## DÉPLOIEMENT / TEST

`git pull` + `optimize:clear` + `journal:sync`. Recette APS1 : 4 totaux étude Fi +
BASE PR FONCIER inchangés au centime.

## LEÇON

Retirer la colonne Formule sans perdre l’unitaire calculé → le porter en Saisie
lecture seule. Les tests #1636/#1640/#1643 qui verrouillaient Formule / badge
doivent être mis à jour sur la convention en vigueur, pas abandonnés.
