docs: the sub-references the review found land on the part that states the claim
A review of S-E3 against the pinned bc92cf3 records found citations one part off, and old vocabulary the test could not see. Each is checked against the record's own text: - BS-statement-5: the partition of the P&L is statement 3 (not 2, and not BS-statement-3, the cash-flow statement); the ASC 340-40-25-7/-8 trail (a cost traceable to one job is that job's, several only by a stated allocation) is statement 4, not 6. - BS-asset-1: "one figure everywhere" is statement 31 (28 is the two figures, schedule and books); "disposed only for a disposal dated by then" is statement 30 (and 7 where the schedule stops). - BS-arap-6: one receivable line per invoice, each tagged, is statements 1-2 and invariant 4 (one application per document). - BS-asset-1 statements 8 and 9 for the true-up and the credit back. - BS-arap-2: "nothing unattached, no command adds a hand line" is invariants 2 and 3, beside 1, 6 and 9. - BS-format-2: a class name written differently and reported adds 32. - BS-arap-5: the cash-basis refusal is statement 6, everywhere. - BS-partner-3: statement 3's cases are lettered (a)-(e), not numbered. - BS-asset-1 "rules 23-24 / 25-26" in the claims, "BS-arap-3 SCENARIOS:" and "WB-ledger-15 INVARIANT 3" are in the new vocabulary. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
d26a75b2ae
commit
74fc553272
15 files changed
+25
-24
No files matched your search
@@ -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");
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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).
|
||||
//! ```
|
||||
|
||||
@@ -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<NaiveDate> {
|
||||
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::<Terms>(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();
|
||||
|
||||
@@ -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() {
|
||||
|
||||
@@ -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]
|
||||
|
||||
@@ -445,7 +445,7 @@ fn iif_dates(iif: &str) -> Vec<NaiveDate> {
|
||||
.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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user