## Checkpoint 317 — filtered payment CSV export (2026-10-27)

BE-160 now offers a bilingual **Export CSV** action in the live React payment register. It exports every payment matching the current server-side search and status filters across pages, including linked documents, reference, memo, actor/time, and reversal entry/reason. The export reuses the authenticated, company-scoped Odoo payment-list API, so Odoo's access checks apply to every page. Spreadsheet formula-like values are prefixed safely and fields are correctly quoted for commas, quotes, and line breaks.

The export is capped at **5,000 rows**. It performs one authorized lookahead request at the cap and tells the user when results were truncated. Search, status, page navigation and payment mutations are disabled while export runs to keep its filter scope stable. Synthetic preview does not expose an export action.

- CSV/export unit tests: **4 passed**, including multi-page fetches, formula safety, quoting, invalid pages and the 5,000-row cap/lookahead.
- React unit suite: **89/89**; payment browser suite: **5/5**, including a 51-payment download assertion and no export action in preview.
- Isolated authenticated React→BFF→Odoo lifecycle journey: **1/1 passed**. The downloaded CSV contained the real QA receipt, grouped payment, linked invoices and reversal reason; it reported 3 exported payment rows. Native Odoo payment suite: **6/6**.
- Production build passed (existing large-chunk advisory remains). Disposable clone and BFF were removed; shared `namaa_ksa` business data was not changed.

BE-160 remains **PARTIAL** for bank-statement match and internal-transfer React workflows, complete AR/AP lifecycle, broader role/currency acceptance and accountant UAT. The export cap may require users to narrow filters for larger datasets. Story counts remain **18 DONE, 133 PARTIAL, 3 MISSING, 10 BLOCKED** (164 total; 11.0% fully acceptance-verified).

Evidence: [isolated QA result](ACCOUNTING_DOCUMENT_PAYMENT_LIVE_QA.json), [export and paging unit tests](../../frontend/tests/accountingPaymentExport.test.js), [payment browser tests](../../frontend/e2e/accounting-payments.spec.js), [authenticated Odoo journey](../../frontend/e2e/accounting-document-payment.live.spec.js), and [traceability row](../REQUIREMENTS_TRACEABILITY.md).
