diff --git a/crates/ledger-cli/tests/documents.rs b/crates/ledger-cli/tests/documents.rs index 8daa8312..7d274a24 100644 --- a/crates/ledger-cli/tests/documents.rs +++ b/crates/ledger-cli/tests/documents.rs @@ -989,7 +989,7 @@ mod paying_on_terms { /// One deposit settles two invoices of one customer: one entry, one /// receivable line per invoice, each tagged with its own invoice, and the - /// output names both documents (BS-arap-6 invariant 3 and WB-arap-15). + /// output names both documents (BS-arap-6 statements 1-2 and invariant 4; WB-arap-15, the rows in application order). #[test] fn one_payment_settles_two_invoices() { let mut s = setup("settle-two"); diff --git a/crates/ledger-cli/tests/evidence.rs b/crates/ledger-cli/tests/evidence.rs index 56df3b61..addd1031 100644 --- a/crates/ledger-cli/tests/evidence.rs +++ b/crates/ledger-cli/tests/evidence.rs @@ -318,7 +318,7 @@ fn annotations_and_searches() { assert_eq!(answer_of(&r).unwrap()["status"], "ok"); } -/// Plan P6 step 4 and WB-ledger-15 INVARIANT 3: consolidation never leaves an +/// Plan P6 step 4 and WB-ledger-15 invariant 3: consolidation never leaves an /// entry the receipt policy covers with no evidence. #[test] fn consolidation_never_removes_an_entrys_only_evidence() { diff --git a/crates/ledger-cli/tests/spec_assets.rs b/crates/ledger-cli/tests/spec_assets.rs index 685cd384..1ed3e3ca 100644 --- a/crates/ledger-cli/tests/spec_assets.rs +++ b/crates/ledger-cli/tests/spec_assets.rs @@ -1501,7 +1501,7 @@ fn dispose_args(x: u64, date: &str, proceeds: &str) -> Value { /// days, 500.00 (the final depreciation); accumulated 5,500.00, book value /// 6,500.00, gain 500.00. Afterwards books.asset_schedule ends there, and /// books.list_assets lists it as gone: not held, every figure 0.00 (it -/// left the books with its disposal; BS-asset-1 statement 28). Before P3 the +/// left the books with its disposal; BS-asset-1 statements 7 and 30). Before P3 the /// schedule showed June 7,000.00, accumulated 12,000.00, book value 0.00. #[test] fn a_disposed_asset_lists_what_it_depreciated_through_its_disposal() { diff --git a/crates/ledger-core/src/tax_capital.rs b/crates/ledger-core/src/tax_capital.rs index e36cbceb..8cb33d22 100644 --- a/crates/ledger-core/src/tax_capital.rs +++ b/crates/ledger-core/src/tax_capital.rs @@ -89,7 +89,7 @@ use rust_decimal::Decimal; /// `[start, end]`: its lines on the asset's depreciation expense account, /// debit-positive (the depreciation still due through the disposal day, /// or, negative, what the month's run posted past it, credited back: -/// BS-asset-1 statement 9). With the runs +/// BS-asset-1 statements 8 and 9). With the runs /// (`Ledger::depreciation_posted_between`) it is the asset's depreciation /// expense in the span, the P&L's and the cash flow's (BS-statement-3 statement 13). /// The disposal entry is the posted entry dated the disposal day that diff --git a/crates/ledger-core/tests/properties.rs b/crates/ledger-core/tests/properties.rs index cb1140eb..f759a9c9 100644 --- a/crates/ledger-core/tests/properties.rs +++ b/crates/ledger-core/tests/properties.rs @@ -937,7 +937,7 @@ proptest! { proptest! { #![proptest_config(ProptestConfig::with_cases(256))] - /// BS-statement-5 statement 2: for any tags and any period, the projects' + /// BS-statement-5 statement 3: for any tags and any period, the projects' /// figures plus the untagged lines' are the period's profit and loss /// (no line counted twice or lost), each through /// ledger_core::project_figures. diff --git a/crates/ledger-core/tests/spec_document_projects.rs b/crates/ledger-core/tests/spec_document_projects.rs index 01c823c0..124db74c 100644 --- a/crates/ledger-core/tests/spec_document_projects.rs +++ b/crates/ledger-core/tests/spec_document_projects.rs @@ -6,7 +6,7 @@ //! ```text //! GOAL: a client project's invoiced revenue and a contractor's billed //! cost count toward the project, every other figure as before. -//! SOURCE: BS-statement-5 statements 2 and 6 (job costing), BS-statement-3 (the +//! SOURCE: BS-statement-5 statements 2, 3 and 6 (job costing, and the //! projects with the untagged lines partition the P&L), BS-1099-1 and //! BS-partner-3 (1099 and party figures follow the money, not the tags). //! ``` diff --git a/crates/ledger-core/tests/spec_documents.rs b/crates/ledger-core/tests/spec_documents.rs index cf3e8879..151f33cc 100644 --- a/crates/ledger-core/tests/spec_documents.rs +++ b/crates/ledger-core/tests/spec_documents.rs @@ -1261,7 +1261,7 @@ fn half_paid_rest_written_off_is_written_off() { assert!(check.iter().all(|c| c.difference.is_zero())); } -/// BS-arap-5 invariant 5: a cash-basis company never counted the invoice as +/// BS-arap-5 statement 6: a cash-basis company never counted the invoice as /// income, so it has no basis to deduct (IRC §166; Treas. Reg. /// §1.166-1(e)). #[test] @@ -1502,7 +1502,7 @@ fn days(b: &Books) -> Vec { proptest! { #![proptest_config(ProptestConfig::with_cases(256))] - /// BS-arap-2 invariants 1, 6 and 9 over random histories of creates, + /// BS-arap-2 invariants 1, 2, 3, 6 and 9 over random histories of creates, /// payments, voids, reversals of any entry and refused hand lines: at /// every date the control accounts equal their documents (no /// difference, nothing unattached: no command adds a hand line), each @@ -1691,8 +1691,9 @@ fn custom_terms_are_due_on_the_date_they_give() { assert!(serde_json::from_value::(stray).is_err()); } -/// BS-arap-3 SCENARIOS: Net 30, Net 15 EOM, a leap day, due on receipt, a -/// custom date, and the 9999-12 bound refused instead of panicking. +/// BS-arap-3 scenarios 1-5 (Net 30, Net 15 EOM, a leap day, due on receipt, +/// and the 9999-12 bound refused instead of panicking) and statement 1 (a +/// custom date). #[test] fn terms_derive_due_dates() { let net30 = Terms::new(TermsKind::Net(30), None).unwrap(); diff --git a/crates/ledger-core/tests/spec_parties.rs b/crates/ledger-core/tests/spec_parties.rs index 4f0cb729..a1db34d4 100644 --- a/crates/ledger-core/tests/spec_parties.rs +++ b/crates/ledger-core/tests/spec_parties.rs @@ -1461,10 +1461,10 @@ fn entry_flow_takes_across_in_order_until_used_up() { ); } -/// Oracle: shares::target DEFINITIONS, case 3 (BS-partner-3): members +/// Oracle: shares::target DEFINITIONS (BS-partner-3 statement 3 (c)): members /// named on an entry moving no money split what moved equity, E (here /// −4.00 of a draft not yet balanced), received, in kind (the equipment's -/// 10.00, at most |E|); case 5: with a party named who isn't a member, +/// 10.00, at most |E|); (e): with a party named who isn't a member, /// the total debits, direction neither, counting nothing. #[test] fn a_share_target_without_money_is_the_capital_or_the_debits() { diff --git a/crates/ledger-core/tests/spec_party_totals.rs b/crates/ledger-core/tests/spec_party_totals.rs index bd7bf69a..c08450ab 100644 --- a/crates/ledger-core/tests/spec_party_totals.rs +++ b/crates/ledger-core/tests/spec_party_totals.rs @@ -958,7 +958,7 @@ fn a_card_is_a_recorded_business_card_else_a_liability_named_card() { assert_eq!(b.resolved(on_2050).0.direction, Direction::Neither); } -/// BS-partner-3 statement 3, case 3: E is the movement of equity other than retained +/// BS-partner-3 statement 3 (c): E is the movement of equity other than retained /// earnings, so a members' entry reads as the statement of members' equity /// reads it. Retained earnings given up for equipment moves no member's /// capital: neither, as the statement shows no distribution. Retained @@ -1168,7 +1168,7 @@ fn a_members_entry_keeps_its_reading_after_they_leave() { ); } -/// BS-partner-3 statement 3, case 1: a period's closing entry moves nothing with +/// BS-partner-3 statement 3 (a): a period's closing entry moves nothing with /// anyone: direction neither, its members' part their income allocated /// (credited to their capital: negative), counted in no total. #[test] diff --git a/crates/ledger-package/tests/p3_seams.rs b/crates/ledger-package/tests/p3_seams.rs index 02e35421..9d310a3d 100644 --- a/crates/ledger-package/tests/p3_seams.rs +++ b/crates/ledger-package/tests/p3_seams.rs @@ -445,7 +445,7 @@ fn iif_dates(iif: &str) -> Vec { .collect() } -/// Depreciation is one figure everywhere (BS-asset-1 statement 28, BS-statement-3 statement 13, +/// Depreciation is one figure everywhere (BS-asset-1 statement 31, BS-statement-3 statement 13, /// BS-partner-4): the P&L's expense, the cash flow reconciliation's add-back, the /// tax-basis K-1's open item, the IIF's, and the runs plus what the /// disposal posted; the balance sheet's accumulated depreciation is the diff --git a/crates/ledger-package/tests/package.rs b/crates/ledger-package/tests/package.rs index 3c2423b6..c5a9a420 100644 --- a/crates/ledger-package/tests/package.rs +++ b/crates/ledger-package/tests/package.rs @@ -1717,7 +1717,7 @@ fn one_list_of_cash_accounts_per_package() { assert_eq!(text(&plain, "1099-worksheet-2026.csv"), tool(&cash)); } -/// BS-format-2 statements 27-30 (P3 cutover review, open point 1): the +/// BS-format-2 statements 27-30 and 32 (P3 cutover review, open point 1): the /// package's QuickBooks file declares every project as a class and /// carries each line's project in CLASS; a project name written /// differently is listed in the warnings and the README, whose IIF line diff --git a/crates/ledger-store/tests/arap_props.rs b/crates/ledger-store/tests/arap_props.rs index bd613da8..3d56f14c 100644 --- a/crates/ledger-store/tests/arap_props.rs +++ b/crates/ledger-store/tests/arap_props.rs @@ -1,4 +1,4 @@ -//! Documents through the store, at random (BS-arap-2 invariants 1, 6, 7 and 9; plan P4b.15): histories of invoices, bills, payments (with a +//! Documents through the store, at random (BS-arap-2 invariants 1, 2, 3, 6, 7 and 9; plan P4b.15): histories of invoices, bills, payments (with a //! payment method and a reference, or none), voids, reversals of any //! entry, closed months and refused hand lines, run through `Store`, then //! replayed (the books reopened) and read by a `Snapshot`. @@ -8,7 +8,7 @@ //! the live books, their replay and a viewer's snapshot agree on //! every figure, at every date, and the control accounts equal //! their documents. -//! SOURCE: BS-entry-4 (replay), BS-arap-2 invariants 1, 6, 7 and 9. +//! SOURCE: BS-entry-4 (replay), BS-arap-2 invariants 1, 2, 3, 6, 7 and 9. //! ``` use chrono::NaiveDate; diff --git a/docs/spec/claims/asset.md b/docs/spec/claims/asset.md index 8c6cb606..cbf513c7 100644 --- a/docs/spec/claims/asset.md +++ b/docs/spec/claims/asset.md @@ -78,14 +78,14 @@ dates, `accumulated_posted` and its edges, ### Product rules -**WB-asset-1** The bounds `BS-asset-1` states (rules 25-26: a new link to +**WB-asset-1** The bounds `BS-asset-1` states (statements 25-26: a new link to an entry dated after the in-service date or the disposal is refused, as is a new in-service date before the linked entry's date, and a disposal dated before the acquired date is refused) are the commands', never replay's (B-28): a journal an earlier version wrote replays as written, whatever those dates say. (That depreciation starts on the in-service date and that the register holds the asset from the acquired date are `BS-asset-1` -rules 23-24.) +statements 23-24.) *Enforced:* `set_asset_acquisition` / `replay_set_asset_acquisition`, `Ledger::asset_acquired_date`, `dispose_asset`, `Ledger::set_asset_acquisition`. *Checked:* `ledger-core` `tests/spec_asset_basis.rs` (each bound and its diff --git a/docs/spec/sources/fasb-asc.md b/docs/spec/sources/fasb-asc.md index 928236b3..bef5b33c 100644 --- a/docs/spec/sources/fasb-asc.md +++ b/docs/spec/sources/fasb-asc.md @@ -294,7 +294,7 @@ to recover its costs from, so its costs are expensed as incurred. ## 340-40-25-7 (Costs that relate directly to a contract) -Added 2026-10-22 for BS-statement-5 statement 6 as the DART revenue roadmap sets it +Added 2026-10-22 for BS-statement-5 statement 4 as the DART revenue roadmap sets it out; not re-read in the ASC basic view: check it there at the next reading. The costs that "relate directly to a contract" (25-5(a)) are (a) direct labor, (b) direct materials, (c) allocations of costs that @@ -314,7 +314,7 @@ the contract), costs of wasted materials, labor or other resources not reflected in the contract's price, costs that relate to satisfied (or partly satisfied) performance obligations, and costs the entity cannot tell apart between satisfied and unsatisfied obligations. -→ BS-statement-5 statement 6 (with 25-7): a cost traceable to one job (25-7(a), (b), +→ BS-statement-5 statement 4 (with 25-7): a cost traceable to one job (25-7(a), (b), (d), (e)) is that job's, whole, on the document's line; a cost that relates to several jobs reaches them only by an allocation on a stated basis (25-7(c)), which the books record as the allocation convention's diff --git a/docs/testing.md b/docs/testing.md index 974039d6..9613fc4f 100644 --- a/docs/testing.md +++ b/docs/testing.md @@ -1766,7 +1766,7 @@ bookspec's rules / `docs/spec/claims/` say why not. Mutation runs wait for P12 ( loss, not its depreciation (BS-statement-3 statement 13; `a_disposals_depreciation_credit_back_is_depreciation`), and the tax-basis K-1's book depreciation left it out (BS-partner-4); `books.list_assets` - as of a day said "disposed" for a later disposal (BS-asset-1 statement 28). + as of a day said "disposed" for a later disposal (BS-asset-1 statement 30). ## P3: the surface review (2026-10-21) @@ -3359,7 +3359,7 @@ in the same call. `half_paid_rest_written_off_is_written_off` (BS-arap-2 scenario 7: 50 paid, 50 written off, one balanced entry Dr 6990 / Cr 1200, the receivable line tagged `WriteOff`, receivables down by exactly the write-off); - `write_off_refused_on_cash_basis` (BS-arap-5 invariant 5: refused, the + `write_off_refused_on_cash_basis` (BS-arap-5 statement 6: refused, the snapshot unchanged, no draft left); `write_off_above_outstanding_refused` (the bound at the day, a zero and a negative amount, then the exact amount owed taken); `write_off_then_recovery_same_year` (D-49: the