docs: the cash-flow and party citations name statements by position
bookspec unit S-C8 dropped BS-statement-3's and BS-partner-3's "Rule n" labels: they had drifted from the statements' positions, and every reference is now a position, "BS-statement-3 statement k". This rewrites wanderbooks' citations from the old labels to the positions. Method: the map was confirmed against the pinned records at b61fa50 by reading each statement before use. BS-statement-3: Rule 1 -> statement 2, 2 -> 3, 3 -> 4, 4 -> 5; Rule 5 by the sentence's meaning (gross lines 6, operating classes 7, governments 8, payroll 9, kinds 10, the family 6-10); 6 -> 11, 7 -> 12, 8 -> 13, 9 -> 14, 10 -> 15, 11 -> 16, 12 -> 17. BS-partner-3: 1 -> 1, 2 -> 2, 3 -> 3-4, 4 -> 5-6, 5 -> 7, 6 -> 8, 7 -> 9, 8 -> 10, 9 -> 11. Each sentence was read against the statement it now cites; a "rule n" meaning an IRS rule, an engine rule, or another record's rule was left alone (odd_cent.rs's close true-up, the asset register's note numbering, and testing.md's "run rule 0.02"). Rewritten: 44 references in src/cashflow.rs, 22 in tests/spec_cash_flow.rs, 3 in tests/spec_reports.rs, 5 in docs/spec/claims/statement.md (whose stale "rules 1-12" count is now "18 statements"), 21 in the vendored ASC notes, 10 in docs/testing.md, 2 in docs/verification.md, 2 in kernel/entries.rs, and 1 in the CLI's journey test. Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
This commit is contained in:
1 parent
01acb159f0
commit
409845e665
9 files changed
+114
-114
No files matched your search
@@ -2536,7 +2536,7 @@ proptest! {
|
||||
let credits = |qs: &[i64]| qs.iter().map(|q| (-q).max(0)).sum::<i64>();
|
||||
let debits = |qs: &[i64]| qs.iter().map(|q| (*q).max(0)).sum::<i64>();
|
||||
let mut fin = 0i64;
|
||||
// Rule 2: a liability left operating that only entries debiting
|
||||
// BS-statement-3 statement 3: a liability left operating that only entries debiting
|
||||
// nothing but equity credit, through the end, holds distributions
|
||||
// declared: financing, after the loan.
|
||||
let declared = |code: &str| {
|
||||
@@ -2577,7 +2577,7 @@ proptest! {
|
||||
}
|
||||
}
|
||||
let fi_all = fi.iter().sum::<i64>() + declared_fi.iter().sum::<i64>();
|
||||
// Rule 3: operating, then financing (no investing here).
|
||||
// BS-statement-3 statement 4: operating, then financing (no investing here).
|
||||
let take = |left: i64, m: i64| {
|
||||
if left > 0 && m < 0 {
|
||||
left.min(-m)
|
||||
@@ -2594,7 +2594,7 @@ proptest! {
|
||||
let mut kinds: Vec<i64> = fi.iter().chain(&declared_fi).copied().collect();
|
||||
if to_fin > 0 { settle(&mut kinds, to_fin, false) } else { settle(&mut kinds, -to_fin, true) }
|
||||
fi.copy_from_slice(&kinds[..3]);
|
||||
// Rule 11: the loan pays, then receives; then capital.
|
||||
// BS-statement-3 statement 16: the loan pays, then receives; then capital.
|
||||
if designate {
|
||||
let paid = credits(&fi[2..]).min(debits(&op));
|
||||
fi[2] += paid;
|
||||
|
||||
Reference in new issue
Block a user