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
@@ -1,12 +1,12 @@
|
||||
//! An invoice's or bill's lines name their projects (BS-statement-5 item
|
||||
//! 8): the posted entry's revenue or expense side is one line per project,
|
||||
//! An invoice's or bill's lines name their projects (BS-statement-5 statement
|
||||
//! 6): the posted entry's revenue or expense side is one line per project,
|
||||
//! the untagged lines' as one; the receivable or payable line, and the
|
||||
//! payments, never take one.
|
||||
//!
|
||||
//! ```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 items 3 and 8 (job costing), BS-statement-3 (the
|
||||
//! SOURCE: BS-statement-5 statements 2 and 6 (job costing), BS-statement-3 (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).
|
||||
//! ```
|
||||
@@ -170,7 +170,7 @@ fn a_bills_cost_is_one_line_per_project_and_the_payable_none() {
|
||||
}
|
||||
|
||||
/// Reversing a tagged invoice's or bill's entry carries each line's
|
||||
/// project to the reversal (BS-statement-5 item 3: each line on its normal side), so
|
||||
/// project to the reversal (BS-statement-5 statement 2: each line on its normal side), so
|
||||
/// every project nets back to zero; a partial payment, cash against the
|
||||
/// receivable, moves no project figure.
|
||||
#[test]
|
||||
@@ -295,7 +295,7 @@ fn a_line_naming_an_unknown_project_is_refused_whole() {
|
||||
}
|
||||
|
||||
/// Finished and abandoned projects still take a document's lines (BS-statement-5
|
||||
/// item 5: a late cost, a final invoice).
|
||||
/// statement 7: a late cost, a final invoice).
|
||||
#[test]
|
||||
fn a_finished_project_still_takes_an_invoice() {
|
||||
let mut b = books();
|
||||
|
||||
Reference in new issue
Block a user