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

# AP Aging

> Accounts payable aging report showing outstanding vendor bills bucketed by days past due.

Accounts payable aging report showing outstanding vendor bills bucketed by days past due at the in-app route `/fa/reports/ap-aging`.

## Overview

This screen shows outstanding vendor bills organized into four aging buckets: Current (0–30 days), 31–60 days, 61–90 days, and Over 90 days. Each bucket displays a card with the number of bills and total amount. A "Total Outstanding" card shows the aggregate balance across all unpaid bills. A detail table below lists each unpaid bill with vendor name (linked to the bill detail), invoice number, due date, days past due, balance due, and aging bucket badge (destructive color for buckets over 60 days). The component fetches bills using `useBillList`.

## Who it's for

Access follows your organization's role and module configuration. The route is registered without a `RequirePermission` wrapper in fa.tsx.

## Before you start

* An organization must be selected.
* Bills must exist with `status === 'approved'` and an outstanding `balance_due`.

## Steps

<Steps>
  <Step title="Navigate to AP Aging">Go to `/fa/reports/ap-aging` via the Finance & Revenue Reports menu, or use the Aging Reports hub tab.</Step>
  <Step title="Review aging bucket summary">Four cards show the bill count and total per aging bucket.</Step>
  <Step title="Check total outstanding">The Total Outstanding card shows the aggregate balance and count of unpaid bills.</Step>
  <Step title="Drill into a bill">Click a vendor name in the detail table to open the bill detail page at `/fa/bills/:id`.</Step>
</Steps>

## Key concepts

* Aging buckets: Current (0–30), 31–60, 61–90, Over 90 days — based on `differenceInDays(today, bill.due_date)`
* Only bills with `status === 'approved'` and `balance_due > 0` are included
* `balance_due` — the remaining unpaid amount on the bill

## Related

<Columns cols={2}>
  <Card title="Finance & Revenue" icon="building-columns" href="/fa/overview">
    Finance & Revenue core overview.
  </Card>

  <Card title="Governance & parity" icon="scale-balanced" href="/governance/index">
    Documentation coverage and governance.
  </Card>
</Columns>

<Note>
  This page documents shipped product behavior. It is not medical, legal, or
  billing advice. Verify against your organization's policies and applicable
  regulations before using it for clinical, compliance, or billing decisions.
  Protected health information (PHI) shown in the product is governed by your
  tenant's access controls and is never exposed in this documentation.
</Note>

<Accordion title="Documentation sources">
  * src/routes/fa.tsx
  * src/cores/fa/pages/APAgingReportPage.tsx
  * src/cores/fa/hooks/useVendorBills.ts
</Accordion>
