docs(prd): D4 leaning — Qonto as the plateforme agréée (ex-PDP)

Operator direction: Qonto is the capital-deposit bank, a DGFiP-registered
PA with e-invoicing included in every plan, and the fleet's richest
existing API integration. POC-6 rewritten from shortlist to validation
spike (reception + business-API pull + GED archival + 2027 e-reporting
path for the KM export invoices); C12 residual now names the vendor-
concentration trade-off; terminology refreshed PDP -> PA (renamed by the
administration in July 2025); 2027-09 milestone clarified (e-reporting
for export invoices; emission only if a French B2B client arrives).

Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
2026-07-11 14:39:41 +02:00
co-authored by Claude Fable 5
parent 31158b05fa
commit 8920547a98
5 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -55,7 +55,7 @@ Backlog (not yet specified): [see bottom](#backlog--deferred).
### T02 — Supplier invoice extraction
- **Trigger:** a `supplier-invoice` queue item from T01 (or a PDF dropped manually).
- **Inputs:** message + PDF attachments (Zoho download); from 2026-09, e-invoices received via the PDP (structured CII/UBL/Factur-X see [challenges C12](challenges.md#c12--e-invoicing-reform-unknowns)).
- **Inputs:** message + PDF attachments (Zoho download); from 2026-09, e-invoices received via the PA (*plateforme agréée*, ex-PDP; leaning Qonto, pulled through the business API — structured CII/UBL/Factur-X, see [challenges C12](challenges.md#c12--e-invoicing-reform-unknowns)).
- **Mode opératoire:**
1. [AGENT] Download attachments; compute file hash (dedupe + GED key).
2. [AGENT] Text layer via `pdftotext`; if empty/scanned, OCR fallback (Mistral OCR or local vision — POC decides).
@@ -107,7 +107,7 @@ Backlog (not yet specified): [see bottom](#backlog--deferred).
2. [AGENT] Generate the month's invoice (sandbox rehearsal → gate → prod), with the France↔US specifics: autoliquidation Art. 259-1° CGI (TVA collectée = 0, bucket E2), USD/EUR handling as contracted.
3. [AGENT] Run the mandatory-mention audit on the produced PDF (`dolibarr-invoice-audit`: SIRET, RCS, TVA intracom, L.441-10 penalties, 40 € indemnity, etc.).
4. [HUMAN] Approves the send; [AGENT] emails the invoice to the client contact (allowlisted recipient) and records the expected due date per the contracted payment cycle.
5. From 2027-09: [AGENT] submits the e-reporting data for this international transaction via the PDP ([challenges C12](challenges.md#c12--e-invoicing-reform-unknowns)).
5. From 2027-09: [AGENT] submits the e-reporting data for this international transaction via the PA (leaning Qonto — [challenges C12](challenges.md#c12--e-invoicing-reform-unknowns)).
- **Guardrails:** outbound email is always human-gated; the invoice number sequence is owned by Dolibarr (never fabricated); a failed mention-audit blocks the send.
- **Today:** template inspection + invoice audit are A3-eligible (read, on demand); issuance is manual in the UI.
- **Target:** **A2**; Claude tier.