---
title: "TrialBalance"
description: "All accounts with the debit=credit proof."
canonical: "https://lopifi.com/components/trial-balance"
---

# TrialBalance

> All accounts with the debit=credit proof.

Source: https://lopifi.com/components/trial-balance
Part of: Lopifi — Your VC tech stack partner (https://lopifi.com)

---

- **Family:** Statements — **The largest gap in the market.** Nothing else has these.
- **Status:** Implemented
- **Spec:** https://lopifi.com/docs/catalog/statements

## Install

```bash
npx shadcn@latest add @lopifi/theme
npx shadcn@latest add @lopifi/trial-balance
```

## Specification

Every account with debit and credit columns and the proof that they're equal. The most boring component in the library, and the one an accountant checks first.

- **The totals are the rows' sums.** `totalDebit` and `totalCredit` are optional: omitted, each column is summed from `rows`. Handed in (the totals the ledger reports), they're also checked against the rows' sums, and a total its own column doesn't reach is flagged with the sum it should have been.

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