# ApprovalPolicyEditor

> Separate-approver shown as fixed, not a toggle.

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

---

- **Family:** Close, controls & consolidation — **See also:** `#69 TrialBalance` and `#70 CloseChecklist` in [statements](06-statements.md) — same family conceptually.
- **Status:** Implemented
- **Spec:** https://lopifi.com/docs/catalog/12-close-controls-consolidation

## Install

```bash
npx shadcn@latest add @lopifi/theme
npx shadcn@latest add @lopifi/approval-policy-editor
```

## Specification

Thresholds by amount, role, and dimension. `requireSeparateApprover` is displayed as fixed, not as a toggle. Delegations require an expiry — permanent delegation is a control failure.

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