> ## 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.

# Report History

> ABC Collections scheduled a weekly payment report. The finance team says they did not receive last week's report.

## Real-World Example

ABC Collections scheduled a weekly payment report. The finance team says they did not receive last week's report.

The creditor should open Report History and confirm whether the report was generated, when it was created, and whether delivery completed or failed.

## Visual Flow

```mermaid placement="top-right" actions={true} theme={"system"}
flowchart TD
    A["Report is generated"] --> B["Report history record is created"]
    B --> C["Creditor opens Report History"]
    C --> D{"Was delivery successful?"}
    D -->|Yes| E["Creditor confirms delivery"]
    D -->|No| F["Creditor sees failed or missing delivery"]
    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 outcome;
    class C,E system;
    class D decision;
    class F risk;
    linkStyle default stroke:#94A3B8,stroke-width:2px;
```

## How It Should Work

* It should show report generation history for the creditor.
* It should help the creditor confirm when reports were created or delivered.
* It should keep report history connected to the right account access.

## How It Should Not Work

* It should not show reports from another creditor.
* It should not hide failed report deliveries.
* It should not show a scheduled report as delivered if delivery did not complete.

## 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`
