Skip to main content

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.

Credit Line Details displays all information for a single credit line record identified by :id, including utilization percentage with color-coded indicators, expiry warnings, and an inline edit capability. Route: /fa/credit-lines/:id

Overview

The page loads a credit line by :id via useCreditLine(id, currentOrganization?.id) and computes: days to expiry from end_date, expiry warning flag (≤30 days), utilization color (bg-destructive ≥80%, bg-warning ≥50%, bg-success otherwise). The CreditLineStatusBadge shows current status. The edit button opens CreditLineDialog in edit mode. Breadcrumb uses credit_line_number.

Who it’s for

Requires permission: fa.credit_lines.view

Before you start

  • A credit line must exist at /fa/credit-lines.
  • You must hold the fa.credit_lines.view permission.

Steps

1

Navigate to a credit line

Go to /fa/credit-lines and click a record, or navigate directly to /fa/credit-lines/:id.
2

Review credit line details

View the credit line number, status badge, utilization bar, and expiry information.
3

Check utilization

The utilization bar is green below 50%, yellow 50–79%, and red 80%+. An expiry warning appears when fewer than 30 days remain.
4

Edit the credit line (if permitted)

Click Edit to open CreditLineDialog. Save changes to update the record.

Key concepts

  • useCreditLine — Primary data hook; fetches a single credit line by id and organizationId.
  • utilization_percentage — Field on the credit line record representing current utilization.
  • CreditLineStatus — Type for credit line lifecycle status.
  • CreditLineStatusBadge — Component rendering the status visually.
  • daysToExpiry — Computed as differenceInDays(new Date(end_date), new Date()).

Finance & Revenue

Finance & Revenue core overview.

Governance & parity

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.
  • src/routes/fa.tsx
  • src/cores/fa/pages/CreditLineDetailPage.tsx
  • src/cores/fa/hooks/useCreditLines.ts
  • src/cores/fa/components/CreditLineDialog.tsx
  • src/cores/fa/components/CreditLineStatusBadge.tsx
  • src/cores/fa/types/index.ts