Repository navigation
docs: PE-9012 document accounting categorization and closing books #79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| --- | ||
| title: Categories | ||
| description: Set up a chart of accounts and categorize accounting activity with rules or manual overrides. | ||
| --- | ||
|
|
||
| # Categories [Classify accounting activity with a chart of accounts, rules, and manual overrides] | ||
|
|
||
| A **category** is an entry in the workspace's chart of accounts. Each category has a name, an income, expense, asset, liability, or equity type, and an optional account code. Accounting exports call categories **book accounts**. | ||
|
|
||
| :::note | ||
| This feature is in beta. Email support to enable it for your workspace. | ||
| ::: | ||
|
|
||
| ## Set up categories | ||
|
|
||
| The [Settings > Accounting](https://app.splits.org/settings/team/accounting) *Categories* tab starts with a default chart of accounts. Members can add categories, edit their names, types, and codes, or archive them. Archived categories leave existing transactions in place but disappear from category pickers. A category used in a [closed period](/accounting/closing) keeps its type until those books are reopened; its name and code remain editable. | ||
|
|
||
| ## Categorize activity | ||
|
|
||
| The [Accounting](/accounting) *Transactions* tab shows each row's type and category and lets you filter by category. For a transaction you can categorize, open its actions → *Set category*. The dialog shows whether its category came from a manual override, a rule, or a default. Select a category to override the current result; *Reset* removes a manual override. | ||
|
|
||
| To categorize transactions with the same address, select *Apply to all* in the category dialog. This creates or updates an address rule for matching transactions in open periods. You can also add a rule in Settings > Accounting > *Rules*. A rule matches inbound or outbound transactions by address, account, network, or token; it needs at least one condition. Rules apply to past and future matches in open periods. When several rules match, the most specific wins, in the order shown. A manual override takes precedence over rules and defaults. | ||
|
|
||
| Accruals do not appear on *Transactions*. To categorize one, use *Set category* on its row in [Lots](/accounting#lots). Internal, bridge, swap, and Earn transfers cannot be manually categorized. | ||
|
|
||
| **Closed-period categories do not change when you edit a rule or an override.** To change a closed row, [reopen the books](/accounting/closing#reopening-books) first. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "do not change" or "cannot be changed/edited?" |
||
|
|
||
| ## Programmatic access | ||
|
|
||
| Via the [Splits CLI / MCP](/introduction/agents): | ||
|
|
||
| - `splits accounting categories list`: list the chart of accounts (**Read** scope) | ||
| - `splits accounting rules list`: list categorization rules (**Read** scope) | ||
| - `splits accounting categorize set`: override the category of transfers or accrual lots (**Write** scope and a user-bound API key) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| --- | ||
| title: Closing books | ||
| description: Freeze an accounting period, review late changes, and reopen books when corrections are needed. | ||
| --- | ||
|
|
||
| # Closing books [Freeze a period's accounting values and reopen it for corrections] | ||
|
|
||
| **Closing the books** fixes the categories, types, USD values, spam visibility, lots, and disposals through a selected day in the workspace's accounting time zone. Activity after that day remains open. A close can take a few minutes, and lots update after it finishes. | ||
|
|
||
| :::note | ||
| This feature is in beta. Email support to enable it for your workspace. | ||
| ::: | ||
|
|
||
| ## Close a period | ||
|
|
||
| Prerequisites: review [categories and rules](/accounting/categories), [lots](/accounting#lots), and [reports](/accounting#reports) for the period. | ||
|
|
||
| 1. Go to [Settings > Accounting](https://app.splits.org/settings/team/accounting) > *Closing*. | ||
| 2. Select *Close books* and choose a day that has ended in the workspace's accounting time zone. | ||
| 3. Confirm *Close books*. The *Closing* tab shows the closed-through date and close history. | ||
|
|
||
| Members can close the books. **A closed period cannot be recategorized or have its lots edited or seeded.** The *Lots* tab marks locked lots and shows an Original lot ID on continuation lots. Reports spanning a close use the frozen values for that period. | ||
|
|
||
| ## Reopening books | ||
|
|
||
| Select *Reopen books* in Settings > Accounting > *Closing* and choose a close. The dialog shows which closes will be undone and a count of closed rows that would change. Confirm to reopen that close and every later close. Open periods then pick up rule edits, the disposal method, the time zone, and late activity; lots update after the reopen. | ||
|
|
||
| If activity lands in an already closed period, the *Closing* tab warns that closed numbers omit those late changes. Reopen the affected period to include them. | ||
|
|
||
| ## Accounting settings | ||
|
|
||
| Owners can set the workspace's accounting time zone and disposal method in Settings > Accounting > *Settings*. Date ranges, export timestamps, holding periods, and close dates use that time zone. The disposal method chooses which tax lots are sold first: FIFO, LIFO, or HIFO. Changing either setting recomputes open lots and realized gains. Existing closed periods keep their original boundary and dates when the time zone changes. | ||
|
|
||
| ## Programmatic access | ||
|
|
||
| The API supports closing, previewing a reopen, and reopening books. The [Splits CLI / MCP](/introduction/agents) has no commands for these actions. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,15 +1,15 @@ | ||
| --- | ||
| title: Accounting | ||
| description: Review transactions, token balances, tax lots, imported account history, and generated reports across a workspace. | ||
| description: Review transactions, categories, token balances, tax lots, imported account history, and reports across a workspace. | ||
| --- | ||
|
|
||
| # Accounting [Review activity, balances, tax lots, and reports across a workspace] | ||
| # Accounting [Review activity, categories, balances, tax lots, and reports across a workspace] | ||
|
|
||
| The *Accounting* page combines transactions, token balances, tax lots, imported account history, and generated reports across the workspace's accounts. To annotate transactions for the books, use [memos](/transactions/memos). | ||
| The *Accounting* page combines transactions, token balances, tax lots, imported account history, and generated reports across the workspace's accounts. To classify activity for the books, use [Categories](/accounting/categories); to annotate transactions, use [memos](/transactions/memos). | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. edit: "for |
||
|
|
||
| ## Transactions | ||
|
|
||
| The *Transactions* tab shows inbound and outbound activity. Filter it by date, account, network, token, memo, direction, or USD value. Setting a bounded date range also shows the starting balance, ending balance, and net change for the selected accounts and tokens. | ||
| The *Transactions* tab shows inbound and outbound activity. Filter it by date, account, network, token, memo, direction, category, or USD value. Setting a bounded date range also shows the starting balance, ending balance, and net change for the selected accounts and tokens. | ||
|
|
||
| *Export CSV* downloads the rows matching the current filters. | ||
|
|
||
|
|
@@ -23,15 +23,15 @@ The *Tokens* tab groups balances by token. For a bounded date range, it shows ea | |
|
|
||
| A **tax lot** records the quantity, USD unit price, acquisition date, remaining quantity, and resulting cost basis for tokens acquired by one account. Lots are account-specific: moving tokens between the workspace's accounts carries their cost basis and acquisition date into the receiving account. | ||
|
|
||
| For disposals, Splits matches tokens to the oldest available lots first (FIFO). Each disposal records its proceeds, basis, gain or loss, and holding period. | ||
| For disposals, Splits matches tokens to lots using the workspace's [disposal method](/accounting/closing#accounting-settings). Each disposal records its proceeds, basis, gain or loss, and holding period. | ||
|
|
||
| The *Lots* tab shows lots open at the end of the selected period, or now when no end date is set. Filter by account, token, acquisition date, remaining quantity, or cost basis. Open a lot to review its source, remaining balance, disposals, realized gains or losses, and correction history. | ||
|
|
||
| Splits derives lots from indexed transactions. If the derived acquisition date or price is wrong, open the lot's actions and select *Edit lot*. The quantity cannot be edited because it comes from the account's actual token activity. Corrections persist when lots are recomputed; use *Revoke edits* to remove them. | ||
|
|
||
| For tokens acquired before they entered a tracked account, select *Seed lot*. Enter the amount, original USD unit price, and original acquisition date. The seeded portion carries that cost basis and holding period instead of treating its arrival as a new acquisition. | ||
|
|
||
| Use *Recompute lots* after a correction when you need updated lots and gains before the next automatic refresh. A warning above the table identifies balance differences or corrections that could not be applied. | ||
| Use *Recompute lots* after a correction when you need updated lots and gains before the next automatic refresh. A warning above the table identifies balance differences or corrections that could not be applied. [Closing the books](/accounting/closing) locks lots in closed periods. | ||
|
|
||
| ## Imported accounts | ||
|
|
||
|
|
@@ -53,11 +53,14 @@ The *Reports* tab stores every generated report. Select *New report*, choose a p | |
|
|
||
| | Report | Contents | Formats | | ||
| | --- | --- | --- | | ||
| | Statement | Balances, transactions, and gains | PDF | | ||
| | Statement | Balances, transactions, gains, and a profit and loss summary when enabled | PDF | | ||
| | Profit and loss | Income and expenses by category, plus realized gains | CSV, PDF | | ||
| | Transaction history | Transfers with transaction details | CSV, PDF | | ||
| | Token balances | Opening and closing balances by token | CSV, PDF | | ||
| | Token balances | Opening and closing balances, cost basis, and unrealized gains by token | CSV, PDF | | ||
| | Realized gains and losses | Disposals with proceeds, cost basis, and holding term | CSV, PDF | | ||
| | Open tax lots | Lots open at the selected end date | CSV, PDF | | ||
| | Lot timeline | Lot events during the selected period | CSV, PDF | | ||
|
|
||
| Reports that take longer to generate continue in the background. Finished files appear in the *Reports* tab and are also emailed to the requester. | ||
|
|
||
| The profit and loss report requires categorization to be enabled for the workspace. The token balances report can show a separate row for each account and token. | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fme: I don't understand this. accrual = ... share price rising? so it's only realized on gain? this isn't clear to me in terms of what this is.