---
suivi: 1130
date: 2026-07-31
sujet: Foncier — charges de portage par exercice (D20)
chantier: module-foncier
type: feature
statut: livre
hash: 4c7977fb
fichiers:
  - database/migrations/2026_07_31_170000_create_charges_portage_table.php
  - app/Models/ChargePortage.php
  - app/Models/Parcelle.php
  - app/Services/Foncier/ChargePortageService.php
  - app/Http/Controllers/Foncier/ChargePortageController.php
  - app/Http/Controllers/Foncier/ParcelleController.php
  - app/Services/Foncier/PatrimoineFoncierQuery.php
  - app/Support/Foncier/FoncierReferentiels.php
  - resources/js/Pages/Foncier/Parcelles/Show.vue
  - resources/js/Pages/Foncier/Patrimoine/Index.vue
  - routes/web.php
  - tests/Feature/Foncier/FoncierChargesPortageTest.php
  - tests/Feature/Foncier/FoncierChargesPortageComptaSourceTest.php
  - tests/Unit/Foncier/ChargePortageMontantAfficheTest.php
  - database/data/journal_mises_a_jour_post_2026_06_12.php
  - public/build/ (Show-B96YgAKv.js, Index-BIINevYP.js, app-o5pR3-oO.js)
---

## Règle D20 / CDC §3 bis

- Facture = source unique du montant (lu via `depot_facture_id`, jamais recopié).
- XOR applicatif : facture OU `montant_manuel`.
- Aucune écriture / colonne / statut sur `depot_factures`.

## NON-RÉGRESSION COMPTA

`git diff` sur DepotFacture* / Comptabilisation* / FactureStatutService : vide.
Test `FoncierChargesPortageComptaSourceTest` : aucun `ChargePortage` dans les sources compta.

## DÉPLOIEMENT OVH

```bash
git pull origin main
php artisan migrate --force
php artisan optimize:clear
php artisan journal:sync
php artisan view:clear
```
