Label: complexity: high
Points: 200
Description
src/compliance.ts's ComplianceReport type exists but there's no exporter producing a regulator/auditor-friendly export (e.g. CSV with required fields) across a date range.
Technical Context
New src/complianceExporter.ts. Filters and formats Invoice/Payment history into a ComplianceReport-shaped CSV/JSON export for a given date range and optional creator/payer filter.
Acceptance Criteria
Label: complexity: high
Points: 200
Description
src/compliance.ts'sComplianceReporttype exists but there's no exporter producing a regulator/auditor-friendly export (e.g. CSV with required fields) across a date range.Technical Context
New
src/complianceExporter.ts. Filters and formatsInvoice/Paymenthistory into aComplianceReport-shaped CSV/JSON export for a given date range and optional creator/payer filter.Acceptance Criteria
exportComplianceReport(invoices, { from, to, creator? })returns a CSV string and the typedComplianceReport[]