The P3 cutover review's open point 2: a state's LLC filing fee, booked to an organization-costs account (tax category organization_startup), read as "Cash paid to suppliers and employees". B-14 rule 5 sent a payment to class (g) only when every operating line's account was taxes_licenses, so the account, not the payee, decided. ASC 230-10-45-17, read in EY's guide that reproduces it (Statement of cash flows, July 2026, p. 43; the PDF re-fetched and its SHA-256 recorded in docs/spec/sources/fasb-asc.md), lists apart "(b) Cash payments to other suppliers and employees for other goods or services" and "(c) Cash payments to governments for taxes, duties, fines, and other fees or penalties". 45-25's classes name only income taxes (f) among the latter, so the rest are (g), other operating cash payments. A formation filing fee is rightly an organization cost (its account and tax line), and still a payment to a government: the payee is what 45-17(c) is about. So rule 5 now sends a payment's government part to (g): of an operating payment the structure classes (d), what went to a party with the government_agency or tax_agency role (the chain root's parties, so a reversal keeps its original's class) is (g), on any account; and, as before, a payment whose every operating line is on a taxes_licenses account is (g). Every party a government: the whole payment. A government and a supplier named together: the payment is split by their resolved shares (B-35), the government's part (g), the rest (d), since ASC 230-10-45-22 has "each separately identifiable source or each separately identifiable use" classed "on the basis of the nature of the underlying cash flows" (EY p. 44; quoted in fasb-asc.md; it names the three activities, read for 45-25's classes too as a CONVENTION). The government's part is the payment x its share / the whole, rounded half to even to the base currency's places, the rest exact, so the line still sums to the payment and a reversal mirrors it. Shares that don't resolve leave the whole payment (d). One naming no party is decided by its accounts. Receipts are untouched (a refund from a government stays (c)). No total changes, only which operating row a payment is in. Two limits, from the review of this change: a government selling goods or services (postage) is 45-17(b)'s supplier "for other goods or services", so the rule says, and the handbook tells the agent, to add such a payee as a vendor, never with the government_agency role (the books can't tell what a payment bought; the role says it). And payroll keeps its structure (CONVENTION): an entry with a line on the salary expense or a payroll payable control account, or on a pay tax category (salaries_wages, officer_compensation, employee_benefits, pension_profit_sharing), stays (d) whoever it names: withheld taxes remitted are the employees' pay, and the payables mix them with the employer's taxes, which a remittance can't tell apart. So a remittance to the IRS is (d) as it was before this change; the employer's payroll tax paid on its own expense account is a tax, (g). The first company's books have this case: their state filing fee moves from "Cash paid to suppliers and employees" to "Other operating cash payments" at every date once its entry names the state's agency with the government_agency role and its own entry is the one whose cash the statement lists (paid from the bank, or on a card that is a lender's credit, D-42, or by a member through the members' account while it is a financing account, B-14 rule 11, the way that fee was paid); charged to an operating-payable card, its cash leaves in the card payment, whose payee is the bank, and it stays with suppliers. STATUS says how to check both, and that the cutover goldens' cash-flow snapshots will differ on the two class lines only (totals the same), so the next cutover diff isn't read as a regression. Docs: rules.md B-14 rule 5 (the rule, its source quoted, the date and what it was before); fasb-asc.md (45-17(b) and (c) quoted exactly, with the guide's SHA-256); the handbook's entries section (name the agency as the party on a tax, fee, fine or penalty paid to a government; a shared payment named with both amounts; a government selling services added as a vendor; payroll remittances stay with pay; a fee on a card follows the card payment); fasb-asc.md also quotes 45-22 and 45-22A; bookspec example cash-flow.government-fees.toml (a filing fee and a lawyer on one organization-costs account, a license on taxes and licenses with no party, a penalty to a tax agency on the wrong account, paper from a supplier, an annual report paid through a registered agent, 37.00 the state's and 100.00 the agent's; every figure by hand) with a new `class.<a..g>` key in the cash_flow query (bookspec README; the runner checks every class the statement has is given); testing.md; STATUS. Tests: ledger-core tests/spec_cash_flow.rs `a_payment_to_a_government_is_other_operating` (the filing fee and a penalty to a tax agency (g); the same account paid to a lawyer, or with no payee, (d); its reversal next month keeps (g); a refund (c)), `a_government_payee_moves_a_fee_on_any_account` (a taxes_licenses license with no party (g); a payment shared half and half between a government and a printer split 50.00 (g) and 50.00 (d), the government alone all (g)), `a_shared_government_payment_splits_to_the_cent` (a third by percent of 100.01: 33.34 (g), 66.67 (d); amounts split as given; the reversal mirrors to the cent), `a_payroll_remittance_to_a_tax_agency_stays_pay` (withheld taxes remitted from a payable holding its payroll role, and pay on a salaries_wages account, stay (d) with the IRS named; the employer's tax on its own expense account is (g)), `a_government_selling_services_is_a_supplier` (postage to a vendor (d); given government_agency, (g): the limit the handbook guards); src cashflow.rs `tests` `a_government_part_rounds_half_to_even` and the proptest `a_government_part_sums_and_mirrors`; the bookspec example; from the P4 review, `a_reversal_takes_its_originals_payee` (a fee and its reversal next month land in one class, the chain's payee deciding: the books keep a chain's parties one, so reading the reversal's own parties is an equivalent mutant) and `a_shared_government_payment_a_member_paid_splits_both_ways` (a shared payment a member paid: each part with its own on_behalf; fails with the on-behalf part unsplit). docs/mcp-interface.md: books.cash_flow and the Roles paragraph say a government or tax agency payee makes a payment other operating, and a shared one two operating lines. Broken to confirm: without the payee check the five spec tests and the example fail; without the split for mixed payees the two shared-payment tests and the example (class.d -549.50) fail; without the payroll exclusion the payroll test fails; rounding toward zero fails both unit tests; without the tax-category route `operating_classes_follow_asc_230_10_45_25`, the second test and the example fail. The viewer's cash flow page, rendered on made-up books before and after: the fee moved from "Cash paid to suppliers and employees" to "Other operating cash payments", every total the same; and on made-up books with an annual report shared between the state and an agent: each part on its own class line, every total the same. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01T3gXMVt7XJPi6ens1or9Dj
185 lines
6.3 KiB
TOML
185 lines
6.3 KiB
TOML
# A payment to a government is not a supplier's, whatever account it is
|
|
# booked to: the payee decides (and so does a taxes-and-licenses account).
|
|
#
|
|
# wanderbooks: the P3 cutover review's open point 2 (a state's LLC filing
|
|
# fee, booked to an organization-costs account, read as cash paid to
|
|
# suppliers); rules.md B-14 rule 5; regression tests
|
|
# `a_payment_to_a_government_is_other_operating`,
|
|
# `a_government_payee_moves_a_fee_on_any_account`,
|
|
# `a_shared_government_payment_splits_to_the_cent`,
|
|
# `operating_classes_follow_asc_230_10_45_25` (ledger-core
|
|
# tests/spec_cash_flow.rs).
|
|
|
|
id = "cash-flow.government-fees"
|
|
title = "Fees paid to a government are other operating payments, not cash paid to suppliers"
|
|
rule = "In a statement of cash flows by the direct method, an operating cash payment to a government for taxes, duties, fines or other fees or penalties MUST NOT be reported as cash paid to suppliers and employees: it MUST be reported among other operating cash payments (income taxes apart), whether the payee is a government or the account is one for taxes and licenses. A payment to a supplier on the same account MUST stay cash paid to suppliers, and a payment shared between a government and a supplier MUST be split by their shares."
|
|
status = "AUTHORITY"
|
|
sources = [
|
|
"ASC 230-10-45-17(b): \"Cash payments to other suppliers and employees for other goods or services\"; 45-17(c): \"Cash payments to governments for taxes, duties, fines, and other fees or penalties\" (EY Financial reporting developments, Statement of cash flows, July 2026, p. 43; docs/spec/sources/fasb-asc.md)",
|
|
"ASC 230-10-45-22: \"a reporting entity shall determine each separately identifiable source or each separately identifiable use within the cash receipts and cash payments on the basis of the nature of the underlying cash flows\" (EY p. 44)",
|
|
"ASC 230-10-45-25: the classes reported at a minimum, (d) cash paid to employees and other suppliers, (f) income taxes paid, (g) other operating cash payments (EY p. 8)",
|
|
]
|
|
tags = ["cash", "book", "us", "cash-flow", "operating-classes"]
|
|
|
|
[setup]
|
|
currency = "USD"
|
|
fiscal_year_start = "01-01"
|
|
basis = "cash"
|
|
rounding = "half-even"
|
|
cash_accounts = ["1000"]
|
|
|
|
[[setup.accounts]]
|
|
code = "1000"
|
|
name = "Checking"
|
|
type = "asset"
|
|
|
|
[[setup.accounts]]
|
|
code = "3000"
|
|
name = "Capital"
|
|
type = "equity"
|
|
|
|
# Formation costs: a state's filing fee and a lawyer's bill both land here.
|
|
[[setup.accounts]]
|
|
code = "6000"
|
|
name = "Organization costs"
|
|
type = "expense"
|
|
tax_category = "organization_startup"
|
|
|
|
[[setup.accounts]]
|
|
code = "6400"
|
|
name = "Office supplies"
|
|
type = "expense"
|
|
tax_category = "office_expense"
|
|
|
|
[[setup.accounts]]
|
|
code = "6700"
|
|
name = "Taxes and licenses"
|
|
type = "expense"
|
|
tax_category = "taxes_licenses"
|
|
|
|
[[setup.parties]]
|
|
name = "Department of Commerce, Corporations Division"
|
|
roles = ["government_agency"]
|
|
|
|
[[setup.parties]]
|
|
name = "Department of Revenue"
|
|
roles = ["tax_agency"]
|
|
|
|
[[setup.parties]]
|
|
name = "Ashgrove Legal LLP"
|
|
roles = ["vendor"]
|
|
|
|
[[setup.parties]]
|
|
name = "Paper Goods Co."
|
|
roles = ["vendor"]
|
|
|
|
[[setup.parties]]
|
|
name = "Northgate Registered Agents"
|
|
roles = ["vendor"]
|
|
|
|
# Event 1.
|
|
[[events]]
|
|
date = "2026-01-05"
|
|
description = "Opening contribution"
|
|
lines = [
|
|
{ account = "1000", side = "debit", amount = "2000.00" },
|
|
{ account = "3000", side = "credit", amount = "2000.00" },
|
|
]
|
|
|
|
# Event 2: the state's fee to file the company, on the formation account.
|
|
[[events]]
|
|
date = "2026-02-02"
|
|
description = "Certificate of organization filing fee"
|
|
lines = [
|
|
{ account = "6000", side = "debit", amount = "75.00" },
|
|
{ account = "1000", side = "credit", amount = "75.00" },
|
|
]
|
|
parties = [{ party = "Department of Commerce, Corporations Division" }]
|
|
|
|
# Event 3: the lawyer's bill for the operating agreement, the same account.
|
|
[[events]]
|
|
date = "2026-02-03"
|
|
description = "Operating agreement"
|
|
lines = [
|
|
{ account = "6000", side = "debit", amount = "350.00" },
|
|
{ account = "1000", side = "credit", amount = "350.00" },
|
|
]
|
|
parties = [{ party = "Ashgrove Legal LLP" }]
|
|
|
|
# Event 4: a business license, on the taxes-and-licenses account, no
|
|
# party named.
|
|
[[events]]
|
|
date = "2026-02-10"
|
|
description = "City business license"
|
|
lines = [
|
|
{ account = "6700", side = "debit", amount = "40.00" },
|
|
{ account = "1000", side = "credit", amount = "40.00" },
|
|
]
|
|
|
|
# Event 5: a late-filing penalty paid to the tax agency, on supplies by
|
|
# mistake: still the government's.
|
|
[[events]]
|
|
date = "2026-02-12"
|
|
description = "Late filing penalty"
|
|
lines = [
|
|
{ account = "6400", side = "debit", amount = "15.00" },
|
|
{ account = "1000", side = "credit", amount = "15.00" },
|
|
]
|
|
parties = [{ party = "Department of Revenue" }]
|
|
|
|
# Event 6: paper and toner.
|
|
[[events]]
|
|
date = "2026-02-20"
|
|
description = "Paper and toner"
|
|
lines = [
|
|
{ account = "6400", side = "debit", amount = "62.50" },
|
|
{ account = "1000", side = "credit", amount = "62.50" },
|
|
]
|
|
parties = [{ party = "Paper Goods Co." }]
|
|
|
|
# Event 7: an annual report filed through a registered agent, one
|
|
# payment: 37.00 of it the state's fee, 100.00 the agent's service.
|
|
[[events]]
|
|
date = "2026-02-25"
|
|
description = "Annual report through the registered agent"
|
|
lines = [
|
|
{ account = "6000", side = "debit", amount = "137.00" },
|
|
{ account = "1000", side = "credit", amount = "137.00" },
|
|
]
|
|
parties = [
|
|
{ party = "Department of Commerce, Corporations Division", amount = "37.00" },
|
|
{ party = "Northgate Registered Agents", amount = "100.00" },
|
|
]
|
|
|
|
# By hand: February's payments are 75.00 + 350.00 + 40.00 + 15.00 + 62.50
|
|
# + 137.00 = 679.50, all operating. To governments (45-17(c)), other
|
|
# operating cash payments (g): the filing fee (a government agency is its
|
|
# payee), the license (its account is taxes and licenses), the penalty (a
|
|
# tax agency is its payee) and the state's part of the annual report
|
|
# (separately identifiable by its share, 45-22) = 75.00 + 40.00 + 15.00 +
|
|
# 37.00 = 167.00. To suppliers (45-17(b)), (d): the lawyer, the paper and
|
|
# the agent's part = 350.00 + 62.50 + 100.00 = 512.50. Cash 2,000.00 to
|
|
# 1,320.50.
|
|
[[expect]]
|
|
query = "cash_flow"
|
|
from = "2026-02-01"
|
|
to = "2026-02-28"
|
|
|
|
[expect.values]
|
|
operating = "-679.50"
|
|
investing = "0.00"
|
|
financing = "0.00"
|
|
net_change = "-679.50"
|
|
cash_beginning = "2000.00"
|
|
cash_ending = "1320.50"
|
|
difference = "0.00"
|
|
"operating.2" = "-75.00"
|
|
"operating.3" = "-350.00"
|
|
"operating.4" = "-40.00"
|
|
"operating.5" = "-15.00"
|
|
"operating.6" = "-62.50"
|
|
"operating.7" = "-137.00"
|
|
"operating.count" = "6"
|
|
"class.d" = "-512.50"
|
|
"class.g" = "-167.00"
|