Skip to content

Build invoice payment compliance audit exporter #240

Description

@Kingsman-99

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

  • exportComplianceReport(invoices, { from, to, creator? }) returns a CSV string and the typed ComplianceReport[]
  • CSV columns documented and stable (won't silently reorder on future changes — covered by a snapshot-style test)
  • Date filtering is inclusive of both boundaries
  • Tests: range filtering correctness; CSV column stability; creator filter narrows results correctly

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions