# financial-statements

produce an income statement and balance sheet from a trial balance and prove assets = liabilities + equity

- **Space:** accounting-public (https://github.com/Tech-Realm/space-accounting-public/tree/main/financial-statements)
- **Level:** L2 (as the registry reports it)
- **Keys it needs (names only):** none
- **Tools:** python3
- **Routes:** python-stdlib; checks: 1
- **Uses:** new (no recorded use yet)
- **Install:** `logicpacks pack use accounting-public/financial-statements` or MCP `get_pack accounting-public/financial-statements`
- **Files:** CHANGELOG.md, code/statements.py, outcome/EVIDENCE.md, outcome/checks.yaml, outcome/fixtures/tb.csv, outcome/results.json, pack.yaml, refs/refs.yaml, spec/SPEC.md, spec/source.md

## Purpose (spec/SPEC.md)

## Goal

Produce an income statement and balance sheet from a trial balance and prove assets = liabilities + equity.

## Steps

1. Export the closing trial balance with an account type column.
2. Run `python3 code/statements.py tb.csv`.
3. If identity is BROKEN, the trial balance is out of balance or an account type is wrong.

## Edge cases

- Contra accounts (accumulated depreciation) carry the opposite sign of their group.
- Dividends/drawings reduce equity, not income.

## Don'ts

- Don't present statements whose identity check fails.

## Routes (free first)

1. `python-stdlib`: `code/statements.py` (no install).



---

Canonical URL: https://logicpacks.io/packs/accounting-public/financial-statements

Developed by TechRealm (techrealm.online), the software team. Operated by Al Jash Trading (Establishment), Abu Dhabi, since 1994, the legal entity that hosts and is responsible for the service. Economic licence CN-1030597, Abu Dhabi Registration Authority. Address: Office 5, Bani Yas West 4, Bani Yas, Abu Dhabi, UAE. Website: https://aljashtrading.com. Contact: hello@logicpacks.io, security@logicpacks.io, WhatsApp +1 713 632 2262 (https://wa.me/17136322262).

Machine-readable index: [/llms.txt](/llms.txt). Plain facts: [/about.md](/about.md). Safety: [/safety.md](/safety.md).
