# WT8 — Sous-ressource Prix + RG branches (ticket 1.9 / ERP-161) > ```bash > git fetch origin > git worktree add ../sb-erp161-prix -b feat/erp-161-carrier-prices origin/develop > cd ../sb-erp161-prix && claude > ``` > **Base** : `origin/develop` **après merge de WT3**. Parallèle à WT5/WT6/WT7/WT9. --- ## Prompt à coller Projet Starseed (Symfony 8 / API Platform 4, DDD). Lis `CLAUDE.md`, `.claude/rules/backend.md`. Charge le skill `backend-entity-conventions`. **Mission** : opérations d'écriture sur les prix transporteur, avec branches Client / Fournisseur. **Spec** : `spec-back.md § 4.5 / 7` + RG-4.09→4.11. **À livrer** : - `POST /api/carriers/{id}/prices`, `PATCH`/`DELETE /api/carrier_prices/{id}` (security `manage`) — resource/processor dédiés à `CarrierPrice`. - **RG-4.10 (CLIENT)** : `client`, `clientDeliveryAddress`, `departureSite` requis ; `clientDeliveryAddress` **doit appartenir au `client`** → sinon 422. - **RG-4.11 (FOURNISSEUR)** : `supplier`, `supplierSupplyAddress`, `deliverySite` requis ; `supplierSupplyAddress` appartient au `supplier` → sinon 422. - Communs obligatoires : `containerType`, `pricingUnit`, `price`, `priceState`. CHECK branches respectés. **Rappels FK** : « Adresse départ/livraison 86/17/82 » = `Site` (FK). Livraison client = `ClientAddress`, appro = `SupplierAddress` (relations ORM partagées — pas de M2M). **Tests à écrire** : branche CLIENT/FOURNISSEUR incomplète → 422 ; adresse étrangère au client/supplier → 422 ; prix valide → 201. **Scope STRICT** : uniquement `CarrierPrice`. **NE TOUCHE PAS** `CarrierFixtures` (WT10), `Carrier`, les autres sous-ressources. Messages FR. **Fini quand** : `make test` vert + `make php-cs-fixer-allow-risky`. Commit (`--no-verify` si vert), puis **ouvre la PR** : ```bash git push -u origin feat/erp-161-carrier-prices tea pr create --base develop --head feat/erp-161-carrier-prices \ --title "feat(transport) : sous-ressource prix transporteur (ERP-161)" \ --description "POST/PATCH/DELETE carrier_price + RG-4.09→4.11 (branches client/fournisseur). Ticket ERP-161." ``` Puis labellise via l'API Gitea. Cible **develop**. Aucune mention IA.