refactor: rule references cite bookspec ids
Every B-n citation in crates/, docs/, deploy/, scripts/ and .github/ now names its bookspec id BS-<area>-<n> (D-68), via scripts/rewrite-rule-refs.py: the map is parsed from docs/spec/rules.md's index, rules.md-prefixed and bare forms are rewritten, sub-references (rule 11, item 7, INVARIANT 2) survive, and plan/, docs/spec/rules.md and docs/spec/claims/ are untouched. Program-output string literals that cited a rule were reverted by hand so user-visible output and its goldens are unchanged; DatedRule.catalog, metadata no output prints, now holds BS-1099-1. One SOURCE line that cited only 'R-?' now also cites BS-statement-5. Co-Authored-By: Muse Wonder 1.0
This commit is contained in:
1 parent
7a177a3cfc
commit
489360f598
221 files changed
+1706
-1580
No files matched your search
@@ -12,54 +12,54 @@
|
||||
//! `docs/spec/rules.md`):
|
||||
//!
|
||||
//! * a line's signed amount is `+amount` for a debit, `-amount` for a credit
|
||||
//! (B-2);
|
||||
//! (BS-entry-2);
|
||||
//! * an entry is acceptable when it has two or more lines, every amount is
|
||||
//! positive and in range, and its debits equal its credits exactly (B-1,
|
||||
//! B-2, B-21);
|
||||
//! * an acceptable entry nets to zero, account by account summed (B-1);
|
||||
//! positive and in range, and its debits equal its credits exactly (BS-entry-1,
|
||||
//! BS-entry-2, BS-entry-3);
|
||||
//! * an acceptable entry nets to zero, account by account summed (BS-entry-1);
|
||||
//! * a reversal flips every side, so it is acceptable exactly when the
|
||||
//! original is, and the two together net every account to zero (B-9);
|
||||
//! original is, and the two together net every account to zero (BS-ledger-5);
|
||||
//! * an account's balance is its movement read on its normal side, so the
|
||||
//! balances satisfy the accounting equation whenever movements net to
|
||||
//! zero (B-5, B-7);
|
||||
//! zero (BS-ledger-3, BS-statement-2);
|
||||
//! * a trial balance puts each movement in exactly one column, so its
|
||||
//! columns differ by the net of all movements (B-6);
|
||||
//! * a closing line zeroes the account it closes (B-11);
|
||||
//! columns differ by the net of all movements (BS-statement-1);
|
||||
//! * a closing line zeroes the account it closes (BS-period-1);
|
||||
//! * a payment to a vendor splits, line by line, into what counts toward
|
||||
//! its 1099, what a card or payment network paid, and what is unknown,
|
||||
//! and money moved between the company's own sources nets out (B-19);
|
||||
//! and money moved between the company's own sources nets out (BS-1099-1);
|
||||
//! * an early-payment discount never exceeds its stated percentage of the
|
||||
//! total, and a document line's amount is exactly its quantity times its
|
||||
//! unit price, neither rounded (B-39);
|
||||
//! unit price, neither rounded (BS-arap-3);
|
||||
//! * an allocation's parts sum to the whole, to the last unit, by largest
|
||||
//! remainder (B-13);
|
||||
//! remainder (BS-partner-1);
|
||||
//! * a cumulative allocation hands out exactly the new amount, and leaves
|
||||
//! each running total one allocation of everything allocated, so it never
|
||||
//! drifts a unit from its exact share (B-13);
|
||||
//! drifts a unit from its exact share (BS-partner-1);
|
||||
//! * an entry's cash is applied to the sections of the statement of cash
|
||||
//! flows moving against it, in a fixed order, each up to its own
|
||||
//! movement: the parts sum to the entry's cash, what no cash settled sums
|
||||
//! to zero, and a reversal's parts are the original's negated (B-14);
|
||||
//! to zero, and a reversal's parts are the original's negated (BS-statement-3);
|
||||
//! * what a member or lender paid or received for the company, with no
|
||||
//! cash account moving, is split among the kinds it settled, netting to
|
||||
//! zero, and mirrored by a reversal (B-14 rule 11);
|
||||
//! zero, and mirrored by a reversal (BS-statement-3 rule 11);
|
||||
//! * a party's part of an entry is signed as a line on the party's own
|
||||
//! account would be, a reversal's is its original's negated, and what of
|
||||
//! it counts as money or as property never exceeds it (B-35);
|
||||
//! * a span prorated by days (depreciation, B-15; daily schedules, B-16)
|
||||
//! it counts as money or as property never exceeds it (BS-partner-3);
|
||||
//! * a span prorated by days (depreciation, BS-asset-1; daily schedules, BS-prepaid-1)
|
||||
//! splits into parts that sum to its total, each but the last its days
|
||||
//! times the monthly rate within one unit, the last the remainder;
|
||||
//! * a catch-up run brings the books to the schedule without ever carrying
|
||||
//! more than it says at a month end already posted (B-15), and a
|
||||
//! more than it says at a month end already posted (BS-asset-1), and a
|
||||
//! disposal trues what the books carry up or down to the schedule;
|
||||
//! * an asset's basis figures follow from its basis rule and facts: the
|
||||
//! §723 basis is the contributor's adjusted basis, the depreciable basis
|
||||
//! the cost, that basis, or the lesser of it and fair market value, and
|
||||
//! the §704(c) built-in gain is fair market value less the §723 basis
|
||||
//! (B-25);
|
||||
//! (BS-asset-4);
|
||||
//! * a tax category's deductible amount adds its accounts' exact shares and
|
||||
//! rounds once to the cent, half away from zero, never share by share
|
||||
//! (B-32, B-21).
|
||||
//! (BS-ledger-11, BS-entry-3).
|
||||
//!
|
||||
//! The kernel is a module directory so each kernel-sweep unit adds its
|
||||
//! arithmetic in a file of its own (`fx`, `round`, `allocate`, `total`,
|
||||
|
||||
Reference in new issue
Block a user