> ## Documentation Index
> Fetch the complete documentation index at: https://docs.younegotiate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create Report

> ABC Collections needs a payment report for April. The creditor chooses the payment report, selects April 1 through April 30, and generates the report.

## Real-World Example

ABC Collections needs a payment report for April. The creditor chooses the payment report, selects April 1 through April 30, and generates the report.

The report should include only ABC Collections payment records from that date range. It should not include May payments, another creditor's payments, or records outside the selected filters.

## Visual Flow

```mermaid placement="top-right" actions={true} theme={"system"}
flowchart TD
    A["Creditor selects report type"] --> B["Creditor selects filters"]
    B --> C["System finds matching records"]
    C --> D["Report is generated"]
    D --> E["Creditor downloads or reviews report"]
    classDef default fill:#F8FAFC,stroke:#64748B,stroke-width:1.5px,color:#0F172A;
    classDef actor fill:#E0F2FE,stroke:#0284C7,stroke-width:2px,color:#0C4A6E;
    classDef system fill:#F8FAFC,stroke:#64748B,stroke-width:1.5px,color:#0F172A;
    classDef decision fill:#FEF3C7,stroke:#D97706,stroke-width:2px,color:#78350F;
    classDef risk fill:#FEE2E2,stroke:#DC2626,stroke-width:2px,color:#7F1D1D;
    classDef outcome fill:#DCFCE7,stroke:#16A34A,stroke-width:2px,color:#14532D;
    class A actor;
    class B,D system;
    class C,E outcome;
    linkStyle default stroke:#94A3B8,stroke-width:2px;
```

## How It Should Work

* It should let the creditor choose a report type and filters.
* It should generate a report only from records the creditor can access.
* The exported information should match the selected report criteria.

## How It Should Not Work

* It should not include data from another creditor.
* It should not ignore the selected filters.
* It should not create a report with missing or misleading totals.

## Developer Notes

* Imports and reports can involve background work, so visible status should never claim completion before processing is done.
* Partial failures should remain visible to the creditor instead of being treated as a clean success.

## Related App Areas

* `app/Livewire/Creditor/ImportConsumers`
* `app/Livewire/Creditor/Reports`
* `app/Jobs/ImportConsumersCoordinatorJob.php`
* `app/Jobs/ProcessConsumerChunkJob.php`
