docs: sub-references name bookspec's statements, invariants and scenarios
Unit S-E rewrote each `B-n` citation to its bookspec id but kept the
sub-reference after it ("item 7", "rule 11", "INVARIANT 2"). Those
numbers counted parts of the retired rules.md text, so `BS-statement-5
item 7` pointed at finished and abandoned projects, not at the snapshot
it meant. Bookspec numbers a record's parts from 1 as `statement`,
`invariant` and `scenario`; every sub-reference now says so.
The map was built by content, not by position: each old item,
INVARIANT or SCENARIO was read in `git show ca8d676d5^:docs/spec/rules.md`
(the last full rule text), found in the pinned records
(bookspec bc92cf3) and in docs/spec/claims/, and each reference was
read in its context before it was mapped. Where the old numbering still
survives as the "Rule n" labels inside bookspec's statements (the cash
flow, party totals) the new number is that statement's position; where
a record carries the whole rule differently (the asset depreciation, the
IIF file, the arap invariants) the reference follows the content. Where
bookspec keeps no counterpart, the product rule that states it is cited
instead: WB-statement-5 (a project's facts and names), -7 (the snapshot),
WB-arap-4 (the document_standing feature), -8 (the issued PDF), -15 (a
payment event names its line), WB-ledger-15 (BS-ledger-12 is retired).
A reference that had pointed at the wrong part is corrected, for example
the discount-reason references that said BS-arap-6 INVARIANT 2 (a
bound) now say invariant 6 (the discount cap and date).
Only the reference tokens and their sentence change; no paragraph is
reflowed. A reference wrapped across a comment prefix keeps its wrap.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
609e4e6b26
commit
e41cc3a161
78 files changed
+298
-302
No files matched your search
@@ -1813,7 +1813,7 @@ fn iif_refuses_an_undeclared_account() {
|
||||
);
|
||||
}
|
||||
|
||||
/// iif INVARIANT 8 (BS-format-2 item 7): an entry with a line on one
|
||||
/// iif INVARIANT 8 (BS-format-2 statement 26): an entry with a line on one
|
||||
/// accounts receivable account still writes one transaction, and the entry
|
||||
/// is named to the human so they can add QuickBooks' customer or vendor.
|
||||
#[test]
|
||||
@@ -1855,7 +1855,7 @@ fn iif_writes_an_entry_on_one_receivable_or_payable_account() {
|
||||
assert_eq!(iif.receivable_payable, [e]);
|
||||
}
|
||||
|
||||
/// iif INVARIANT 8 (BS-format-2 item 7): an entry with lines on both the
|
||||
/// iif INVARIANT 8 (BS-format-2 statement 7): an entry with lines on both the
|
||||
/// receivables and payables control accounts is refused, naming its id:
|
||||
/// QuickBooks Desktop records at most one A/R or A/P account a
|
||||
/// transaction, and splitting the entry would change what it says.
|
||||
@@ -1912,7 +1912,7 @@ fn iif_refuses_an_entry_on_two_receivable_or_payable_accounts() {
|
||||
);
|
||||
}
|
||||
|
||||
/// iif INVARIANT 8 (BS-format-2 item 7): two distinct receivable accounts
|
||||
/// iif INVARIANT 8 (BS-format-2 statement 7): two distinct receivable accounts
|
||||
/// in one entry are refused too (its `qb_type` decides, whatever the
|
||||
/// callers call them), and every offending entry is named.
|
||||
#[test]
|
||||
@@ -5077,7 +5077,7 @@ fn iif_writes_each_lines_class_and_declares_the_classes_first() {
|
||||
}
|
||||
|
||||
/// iif INVARIANT 9: a class's NAME is written as an account's own level
|
||||
/// is (BS-format-2 rules 3, 4): plain ASCII, a colon a '-' (a colon starts a
|
||||
/// is (BS-format-2 statements 10 and 18): plain ASCII, a colon a '-' (a colon starts a
|
||||
/// subclass, the `!CLASS` header help), trimmed, at most NAME_MAX; names
|
||||
/// alike ignoring case once written get " (id)", round after round, as
|
||||
/// accounts get their codes; and each name written differently is a
|
||||
|
||||
Reference in new issue
Block a user