# Voucher lines (VoucherLines) · Booki

> Read-only debit/credit table with balance footer.

Source: https://booki.dev/docs/voucher-lines

Vouchers and ledger

# Voucher lines

`VoucherLines`

Read-only debit/credit table with balance footer.

The person sees

| Account | Name | Debit | Credit |
| --- | --- | --- | --- |
| 1200 | Accounts receivable | $12,500.00 | — |
| 4000 | Sales revenue | — | $10,000.00 |
| 2150 | Sales tax payable | — | $2,500.00 |
| In balance | $12,500.00 | $12,500.00 |  |

Bridge demo

```
booki_version=$(npm view @booki-aui/react@latest version) &&
ui_sdk_version=$(npm view "@booki-aui/react@$booki_version" peerDependencies.@ui-sdk/core) &&
pnpm add --save-exact "@booki-aui/core@$booki_version" "@booki-aui/react@$booki_version" "@booki-aui/styles@$booki_version" \
  "@ui-sdk/core@$ui_sdk_version" "@ui-sdk/react@$ui_sdk_version"
```

## Usage example

```jsx
import { VoucherLines } from "@booki-aui/react"

<VoucherLines lines={[
  { id: "1", account: "1500", debitMinor: 12500, creditMinor: 0 },
  { id: "2", account: "3000", debitMinor: 0, creditMinor: 12500 },
]} />
```

The footer shows equal totals of 12500 minor units each. Use VoucherComposer if an agent needs to edit the voucher.

Import from `@booki-aui/react`. For Booki's default styling, add `import "@booki-aui/styles"`.
