# CustomerCreditPanel

> Limit and exposure together, with hierarchy roll-up.

Source: https://lopifi.com/components/customer-credit-panel
Part of: Lopifi — US GAAP books on autopilot, checked by a CPA (https://lopifi.com)

---

- **Family:** Receivables (AR) — 
- **Status:** Implemented
- **Spec:** https://lopifi.com/docs/catalog/10-receivables

## Install

```bash
npx shadcn@latest add @lopifi/theme
npx shadcn@latest add @lopifi/customer-credit-panel
```

## Specification

Credit limit and current exposure together, exposure including unbilled orders. Supports customer hierarchy roll-up — three subsidiaries of one group are one credit risk. Flags expired tax-exemption certificates.

## Rules this component obeys

Money is minor units, never floats. `null` is not `0` and neither is redacted. Negatives render in accounting parentheses with the parenthesis column reserved on both sides. Debit and credit are two columns. Per-currency decimal places. Polarity is explicit — up is not always good. Every figure states its period, entity, currency, basis and as-of.
