Merge branch 'main' into t3/coverage-gap-tests-v-d2
This commit is contained in:
commit
5fd382450b
100 files changed
+1793
-374
No files matched your search
+11
-11
@@ -636,14 +636,14 @@ every tool over every book in ledger-store's `tests/fixtures/old-books`.
|
||||
kind. An entry's interest is its own operating class, (b) or (e), apart
|
||||
from the rest of its operating cash. A payment to a party with the
|
||||
`government_agency` or `tax_agency` role is `other_payments`, (g),
|
||||
on any account (BS-statement-3 rule 5; payroll remittances excepted);
|
||||
on any account (BS-statement-3 statements 8 and 9; payroll remittances excepted);
|
||||
one shared between such a party and a supplier gives two operating
|
||||
lines for the one entry, `other_payments` and
|
||||
`to_suppliers_and_employees`, split by the parties' shares and
|
||||
summing to the payment. What a member or a lender paid or
|
||||
received for the company with no cash account moving is cash borrowed
|
||||
(or contributed) and spent, on the entry's date (D-42, BS-statement-3
|
||||
rule 11): an expense a member paid personally through Due to Members
|
||||
statement 16): an expense a member paid personally through Due to Members
|
||||
is a "Proceeds from borrowing — <account>" line and an operating
|
||||
line, each with `on_behalf`, the part of its amount so handled (absent
|
||||
when none; an entry's `on_behalf` parts net to zero).
|
||||
@@ -1295,7 +1295,7 @@ Vendor and customer follow the records and are never set by hand. A
|
||||
`tax_agency` or `government_agency` payee also classes the company's
|
||||
payments to it on the cash flow statement: other operating cash
|
||||
payments, never cash paid to suppliers (`books.cash_flow`, BS-statement-3
|
||||
rule 5).
|
||||
statement 8).
|
||||
|
||||
**Rules the engine enforces** (each refusal changes nothing, the journal
|
||||
byte for byte): no party field holds a full TIN (a run of nine digits,
|
||||
@@ -1443,7 +1443,7 @@ BS-partner-3):
|
||||
Both `"0.00"` for `neither`; `resolved − cash − in_kind` is a promise,
|
||||
counted on neither basis. All four are null exactly when the shares
|
||||
don't resolve (`parties_error` says why).
|
||||
- What the shares split (BS-partner-3 item 3): a close, its parties' own-account
|
||||
- What the shares split (BS-partner-3 statement 3): a close, its parties' own-account
|
||||
movement, neither; a reversal, its original's negated; an entry naming
|
||||
only members that moves equity, what moved their capital (a
|
||||
contribution received: the property in it, asset accounts that are
|
||||
@@ -1462,7 +1462,7 @@ BS-partner-3):
|
||||
record (bills and their payments); its customer record's invoices and
|
||||
the payments received on them; and reversals of any of these. Only
|
||||
posted entries dated in the year count.
|
||||
- *Money accounts* (BS-partner-3 item 5, P3 defect 24): the `[books]
|
||||
- *Money accounts* (BS-partner-3 statement 7, P3 defect 24): the `[books]
|
||||
cash_accounts` (every asset account but receivables when none are set),
|
||||
the cards (the business-card payment methods' liability accounts,
|
||||
`books.instruments`; while the books record none, the liability
|
||||
@@ -1490,7 +1490,7 @@ BS-partner-3):
|
||||
(and the payments of distributions declared to them) is the statement
|
||||
of members' equity's contributions and distributions, and basis `cash`
|
||||
their contributions is the K-1 worksheet's cash contributions (BS-partner-3
|
||||
item 4 gives the conditions: a distribution declared and not yet paid
|
||||
statement 6 gives the conditions: a distribution declared and not yet paid
|
||||
is in the statement only). The year is the whole
|
||||
calendar year; the viewer's party page and directory show these same
|
||||
numbers, labelled "cash basis", with the in-kind figures beside them.
|
||||
@@ -1914,7 +1914,7 @@ posting.
|
||||
get " (id)", a name already written differently from the books (made
|
||||
safe or tagged) yielding first, so a class's own name stands wherever
|
||||
it can: "Café" beside "Cafe" is written "Cafe (1)" and "Cafe" is
|
||||
kept, BS-format-2 rule 8). No line names a customer or vendor (no
|
||||
kept, BS-format-2 statement 30). No line names a customer or vendor (no
|
||||
NAME column; see the package's README). `warnings` (absent when
|
||||
there are none) says what the file writes differently from the books,
|
||||
for the human: each account's name, number and place and each
|
||||
@@ -2403,7 +2403,7 @@ snapshots; see plan 8.2 S4.
|
||||
code, name, balance, documents_total, unattached: [{ entry_id, line,
|
||||
date, amount }], difference, attention: [{ kind, id, status, total,
|
||||
outstanding }] }] }`. Receivables and payables tied to their documents
|
||||
(BS-ledger-8, BS-arap-2 INVARIANT 1): `difference` is always `0.00`; `agrees` when
|
||||
(BS-ledger-8, BS-arap-2 invariant 1): `difference` is always `0.00`; `agrees` when
|
||||
there is no unattached line and nothing needing attention.
|
||||
`books.verify` checks the same identity and `books.digest` lists its
|
||||
problems (`control_problems`).
|
||||
@@ -2413,7 +2413,7 @@ snapshots; see plan 8.2 S4.
|
||||
discounted, outstanding, bucket, days_overdue }], control: { account,
|
||||
balance, documents_total, unattached, difference } }` (`as_of` omitted:
|
||||
today). `detail: true` adds one row per open invoice; `control` is the
|
||||
receivables account's tie-out (BS-ledger-8, BS-arap-2 INVARIANT 1), `difference`
|
||||
receivables account's tie-out (BS-ledger-8, BS-arap-2 invariant 1), `difference`
|
||||
always `0.00`.
|
||||
- `books.ap_aging { as_of?, detail? }` → same, per vendor and bill.
|
||||
- `books.bills_due { through?, as_of? }` → `{ as_of, through, bills:
|
||||
@@ -2507,7 +2507,7 @@ until the owner upgrades them.
|
||||
project (every class), by name ignoring capitals; `to_date` counts every
|
||||
posted revenue and expense line tagged to it through today in the
|
||||
company's time zone, closing entries left out; `net` is its
|
||||
contribution before overhead (BS-statement-5 item 7: revenue less every cost
|
||||
contribution before overhead (WB-statement-7: revenue less every cost
|
||||
tagged to it, fixed and variable alike, no company overhead allocated:
|
||||
a segment margin in Garrison's sense, not a variable-cost contribution
|
||||
margin); `margin_pct` is net as a percent of revenue to one place, half
|
||||
@@ -2549,7 +2549,7 @@ until the owner upgrades them.
|
||||
project); its result gains `notes`, one per finished or abandoned
|
||||
project tagged, as `books.add_line`'s `note`.
|
||||
- An invoice's or bill's lines take a project too (`books.create_invoice`
|
||||
and `books.create_bill`, `class` on a line, BS-statement-5 item 8), in
|
||||
and `books.create_bill`, `class` on a line, BS-statement-5 statement 6), in
|
||||
books that declared the journal feature `document_line_projects`; the
|
||||
handbook's projects section says which these books are. Their payments
|
||||
take none.
|
||||
|
||||
+1
-1
@@ -39,7 +39,7 @@ in CI that the floor never falls between commits.
|
||||
| A/R invoices + payments + aging | Business → Invoices | done | R-FUTURE-5; since P4b S1 (D-45) a document's paid, outstanding and status are read from its tagged ledger lines, hand lines on the receivables account are refused, `books.void_document` and `books.control_check` tie the subledger to the control account (BS-arap-2); S2 `books.documents`/`books.document` and the viewer pages; S3 the invoice PDF; S4.1-S4.3 terms, numbers, line accounts, the issued PDF filed at issue (behind `documents_v2`, the owner's next upgrade); numbers, terms, line accounts, the party snapshots and the issued PDF filed with the invoice, through `books.create_invoice`'s preview and confirm (P4b S4.4); S4.5 the issued PDF carries the number, terms, PO, quantity and price, the bill-to's contact block and ship-to, the ways to pay with QR codes, the memo and the footer, and the viewer shows the number, terms, bill-to and PO and saves the issued copy |
|
||||
| A/P bills + payments + aging | Business → Bills | done | R-FUTURE-5; the same S1 derivation and control guard on the payables account; S4.1-S4.3 the vendor's invoice number, terms, every line on its own account (behind `documents_v2`); the vendor's own invoice number (a duplicate refused), terms, line accounts and the vendor's invoice filed as the bill's evidence, through `books.create_bill`'s preview and confirm (P4b S4.4); S4.5 the viewer shows the vendor's number, the day received, terms and memo, and the handbook's procedure (numbers, terms, line accounts) |
|
||||
| Payroll runs (accounting only, no tax tables) + tax remittance | Payroll | done | — |
|
||||
| Tracking classes (divisional P&L) | Class tracking | done | invoice and bill lines take a class too (projects, BS-statement-5 item 8; QBO/Xero class or tracking per line) |
|
||||
| Tracking classes (divisional P&L) | Class tracking | done | invoice and bill lines take a class too (projects, BS-statement-5 statement 6; QBO/Xero class or tracking per line) |
|
||||
| CPA handoff package (TB + GL xlsx, P&L + BS pdf, zip) | Reports → export | done | — |
|
||||
| Budgets | Budgets | todo | R-FUTURE-6 (declined as bloat) |
|
||||
| Scheduled transactions (recurring entries → drafts) | Scheduled txns / Recurring transactions | partial | hand-verified fixture incl. month-end dates; drafts only, by design |
|
||||
|
||||
@@ -154,7 +154,7 @@ derived. Spec: `ledger_core::shares`.
|
||||
entry has balanced lines, and `post_entry` refuses (`party_shares`)
|
||||
until they do. Replay never consults settings.
|
||||
- **Money:** `parties::activity_with` counts each party's part on two
|
||||
bases (BS-partner-3 item 4): cash (its money: cash, a card, the members'
|
||||
bases (BS-partner-3 statement 5): cash (its money: cash, a card, the members'
|
||||
financing, a loan) and all (adding property contributed or distributed
|
||||
in kind), the viewer labelling the first "cash basis". Money accounts
|
||||
are the cash accounts, the cards and `[books] financing_accounts`; any
|
||||
|
||||
+2
-2
@@ -75,9 +75,9 @@ each checked again against the same sources in the P3 review (numbers,
|
||||
pages and wording hold). Open: 105-10-05-1 to 05-3, read only in their
|
||||
2009 text (ASU 2009-01, and as Wiley GAAP 2020 quotes them); their
|
||||
current wording is unconfirmed. Also open (P3 surface review, 2026-10-21): ASC 230-10-45-15(f) (debt
|
||||
issue costs, cited by BS-statement-3 rule 11) is in neither list above; ASC
|
||||
issue costs, cited by BS-statement-3 statement 16) is in neither list above; ASC
|
||||
606-10-25-31, 25-32 and 55-20 (BS-prepaid-1's over-time method) are not yet read;
|
||||
BS-asset-1 rule 6 cites ASC 250 with no paragraph; BS-revenue-1's 606-10-55-39 is in
|
||||
BS-asset-1 statement 16 cites ASC 250 with no paragraph; BS-revenue-1's 606-10-55-39 is in
|
||||
neither list. Each is to be read in the ASC basic view and listed in
|
||||
`sources/fasb-asc.md` before it is relied on further. Also open (plan
|
||||
P4b, 2026-10-23): BS-arap-2 cites ASC 310-10, 405-20-40-1 and 606-10-45-4,
|
||||
|
||||
@@ -74,7 +74,12 @@ Kani `bounds_check_matches_definition`, `bounds_kept_is_the_definition_on_books_
|
||||
Lean `Documents.control_agrees`, `Documents.Step.document_unattached`,
|
||||
`Documents.Step.reverse_moves`, `Documents.Reachable.unattached_zero`
|
||||
(through role assignments and releases),
|
||||
`Documents.Reachable.control_is_documents`. The model's limits: it
|
||||
`Documents.Reachable.control_is_documents`; bookspec examples
|
||||
`arap-hand-control-posting-refused` (BS-arap-2 `lines-that-stand`: the
|
||||
hand line is refused, the line an earlier version wrote still reads right),
|
||||
run by the adapter, and `arap-a-hand-line-on-receivables-is-taken`
|
||||
(`documents-kept-apart`), which names the option wanderbooks did not pick
|
||||
and is skipped for it. The model's limits: it
|
||||
starts from empty books (legacy lines are covered by the identity
|
||||
`Documents.control_agrees` alone), it names documents by one id space (an injective
|
||||
coding of `DocRef`), and an account becoming a control account by its
|
||||
@@ -179,8 +184,8 @@ behind the feature `documents_v2`. **Checked:**
|
||||
|
||||
**Claims:** yes
|
||||
|
||||
**Pick:** a vendor's invoice reference is compared after the normalization that drops case and spaces (`Ledger::check_vendor_ref`); the old text names no separate decision for it.
|
||||
**Pick (BS-arap-10):** `ignore-case-and-spaces`; a vendor's invoice reference is compared after the normalization that drops case and spaces.
|
||||
**Pick:** a vendor's invoice reference is compared after the normalization that drops case, spaces and hyphens (`Ledger::check_vendor_ref`), so "ACME-123", "acme 123" and "Acme123" are one reference (pinned by `duplicate_vendor_ref_refused_unless_a_reason_is_given`); plan P4b S4 (the owner) specifies it.
|
||||
**Pick (BS-arap-10):** `ignore-case-spaces-and-hyphens`; a vendor's invoice reference is compared after the normalization that drops case, spaces (any whitespace) and hyphens.
|
||||
|
||||
**Enforced:** `Ledger::next_invoice_number`, `Ledger::check_vendor_ref`,
|
||||
`PartySnapshot::from_party` (the snapshots at issue, D-55);
|
||||
@@ -195,7 +200,14 @@ every amount through `amount_parts`).
|
||||
`tests/arap_standing.rs` (`documents_v2_waits_for_the_upgrade`,
|
||||
`issued_pdf_is_filed_with_the_invoice_or_nothing_is`); over the wire
|
||||
`crates/ledger-cli/tests/documents.rs` (`an_invoice_from_issue_to_paid`,
|
||||
`duplicate_vendor_invoice_refused`); the page `ledger-import`
|
||||
`duplicate_vendor_invoice_refused`); bookspec examples
|
||||
`arap-invoice-numbers-run-in-order-and-are-kept` (the adapter numbers each
|
||||
invoice with `Ledger::next_invoice_number` and reads the place back from the
|
||||
number the engine stored), `arap-a-vendor-invoice-is-entered-once`
|
||||
(the refusal of a second bill, from `Ledger::check_vendor_ref`) and, for
|
||||
BS-arap-10, `arap-a-vendor-reference-differing-in-case-spaces-and-hyphens-is-a-duplicate`;
|
||||
`arap-a-vendor-reference-differing-in-case-spaces-and-hyphens-is-not-a-duplicate`
|
||||
names `compare-exactly` and is skipped; the page `ledger-import`
|
||||
`tests/spec_import.rs::invoice_pdf_prints_what_it_should` and the unit tests
|
||||
`labels_are_data`, `an_invoice_renders_deterministically`,
|
||||
`two_hundred_lines_paginate`; the viewer
|
||||
@@ -260,7 +272,14 @@ item.
|
||||
`tests/arap_props.rs` (`status_is_a_function_of_journal_and_date` with
|
||||
write-offs); over the wire `crates/ledger-cli/tests/documents.rs`
|
||||
(`write_off_then_recovery`, `write_off_needs_evidence`); bookspec
|
||||
`bad-debt-direct-write-off`; Lean `Documents.Step.writeOff_unattached`,
|
||||
`bad-debt-direct-write-off` (BS-arap-5 `direct-write-off`; the allowance
|
||||
method has no example yet, it needs a provision event) and, for BS-arap-11,
|
||||
`arap-a-recovery-reverses-the-write-off-in-its-year` (the adapter reverses
|
||||
the write-off with `Store::reverse_entry` and takes the money with
|
||||
`Store::receive_payment` in the write-off's tax year, and posts a plain
|
||||
entry in a later one);
|
||||
`arap-a-recovery-is-a-movement-on-the-document` names `recovery-movement`
|
||||
and is skipped; Lean `Documents.Step.writeOff_unattached`,
|
||||
`Documents.writeOff_within_bounds`; the viewer
|
||||
`a_write_off_shows_on_the_timeline`; the item
|
||||
`a_write_off_is_flagged_for_the_cpa`.
|
||||
@@ -319,12 +338,24 @@ check_discount}`, `arap::{Application, Fee, SettleParams, SettlementRow}`,
|
||||
(`bill_on_terms_with_discount`, `late_discount_needs_a_reason`,
|
||||
`discount_on_an_asset_bill_is_refused_with_the_remedy`,
|
||||
`a_fee_posts_gross_to_receivables_and_net_to_the_bank`,
|
||||
`a_settlement_names_its_lines_and_refuses_a_document_twice`),
|
||||
`a_settlement_names_its_lines_and_refuses_a_document_twice`,
|
||||
`a_fee_above_the_cash_is_refused_and_changes_nothing`: the refusal is
|
||||
`LedgerError::FeeAboveCash`, its own variant),
|
||||
`tests/kernel_bridge/main.rs::settle_agrees`; Kani `settle_is_exact`;
|
||||
`ledger-store` `tests/arap_standing.rs`
|
||||
(`a_settlement_names_its_lines_and_replays`, `settlement_waits_for_documents_v2`,
|
||||
`legacy_payment_events_keep_the_positional_rule`), `tests/arap_props.rs`;
|
||||
`ledger-cli` `tests/documents.rs`; `ledger-package`'s aging tie-out test.
|
||||
`ledger-cli` `tests/documents.rs`; `ledger-package`'s aging tie-out test;
|
||||
bookspec examples `arap-a-settlement-pays-several-documents-and-names-each-line`
|
||||
and `arap-a-settlement-that-is-not-exact-is-refused` (BS-arap-6, through
|
||||
`Store::settle`, each refusal read off the engine's own error), and one per
|
||||
option picked: `arap-a-discount-taken-is-booked-when-it-is-taken` (BS-arap-12),
|
||||
`arap-a-processors-fee-is-posted-gross` (BS-arap-13) and
|
||||
`arap-a-discount-on-an-asset-bill-is-refused` (BS-arap-14); the examples
|
||||
`arap-a-discount-expected-is-booked-with-the-document`,
|
||||
`arap-a-processors-fee-is-not-shown-against-the-deposit` and
|
||||
`arap-a-discount-on-an-asset-bill-is-apportioned` name the options not picked
|
||||
and are skipped.
|
||||
The Lean step is the document constructor of the Lean documents model, with
|
||||
every control line tagged (`Documents.settle_unattached`); no new step
|
||||
constructor.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -21,7 +21,13 @@ more lines, debits = credits exactly); `Ledger::add_line` for the account
|
||||
check at line-adding time
|
||||
(`a_line_on_an_unknown_or_placeholder_account_is_refused_when_added`).
|
||||
**Checked:** Kani `check_lines_is_exact`, `accepted_entry_nets_to_zero`; Lean
|
||||
`Accepted.net_zero`; property `prop_posted_entries_balance`.
|
||||
`Accepted.net_zero`; property `prop_posted_entries_balance`; bookspec example
|
||||
`entry-a-line-on-a-header-is-refused-when-it-is-added` (BS-entry-6, the option
|
||||
picked: a draft with a line on a header account is refused as the draft is
|
||||
made, through `Ledger::try_create_entry` and `Ledger::add_line`, and the
|
||||
refusal read off the engine's `LedgerError::PlaceholderAccount`); the example
|
||||
`entry-a-line-on-a-header-is-refused-when-the-entry-posts` names the option
|
||||
not picked and is skipped.
|
||||
|
||||
### Product rules
|
||||
|
||||
@@ -209,7 +215,21 @@ pinned; every tool over every old book).
|
||||
(`draft_states_replay_and_project`, `drafts_v2_waits_for_the_upgrade`,
|
||||
`posted_seq_is_the_posting_lines_seq`); `ledger-cli` `tests/drafts.rs` (`a_draft_waits_for_its_receipt_and_posts`,
|
||||
`a_reversal_needs_no_receipt_of_its_own`, `gui_and_server_gate_agree`,
|
||||
`stale_preview_refused`).
|
||||
`stale_preview_refused`); bookspec examples, through `Store::post_entry_checked`,
|
||||
`Store::set_draft_state`, `Store::attach_receipt`, `Store::discard_draft` and
|
||||
`ledger_core::evidence::requirement`, each answer read off the engine:
|
||||
`entry-a-draft-waits-on-its-evidence-and-posts-once-it-has-it`,
|
||||
`entry-a-discarded-draft-leaves-the-books-unchanged`,
|
||||
`entry-a-drafts-state-is-a-note-and-a-posted-entry-has-none`,
|
||||
`period-a-draft-holds-its-period-open-until-it-is-discarded` (BS-period-2's
|
||||
`LedgerError::DraftsInPeriod`), `entry-evidence-is-decided-in-one-place` and
|
||||
`entry-only-a-draft-can-be-posted-or-discarded` (`LedgerError::EntryAlreadyPosted`
|
||||
and `LedgerError::UnknownEntry`, through `Store::post_entry` and `Store::discard_draft`). An entry the example
|
||||
says is refused when posted at once is made, lined and posted on a rehearsal:
|
||||
the books replayed from their journal into a `Store` of their own (the
|
||||
journal and the blobs copied, `Store::open`), so the refusal, an evidence
|
||||
refusal included, is `Store::post_entry_checked`'s own and the example's books
|
||||
keep no draft the engine would have journaled.
|
||||
|
||||
### Product rules
|
||||
|
||||
|
||||
@@ -164,7 +164,12 @@ None.
|
||||
(`a_draft_waits_for_its_receipt_and_posts`,
|
||||
`a_reversal_needs_no_receipt_of_its_own`); `ledger-store`
|
||||
`tests/store.rs` (`draft_states_replay_and_project`,
|
||||
`drafts_v2_waits_for_the_upgrade`).
|
||||
`drafts_v2_waits_for_the_upgrade`); bookspec example
|
||||
`ledger-a-reversal-needs-no-evidence-of-its-own` (BS-ledger-17, the option
|
||||
picked: a reversal of a 40.00 entry under a policy of over 25.00 posts at once
|
||||
and `ledger_core::evidence::requirement` exempts it as a reversal); the example
|
||||
`ledger-a-reversal-carries-its-own-evidence` names the option not picked and is
|
||||
skipped.
|
||||
|
||||
### Product rules
|
||||
|
||||
|
||||
@@ -374,7 +374,7 @@ the 1099 worksheet together, labelled, and neither is read for the
|
||||
other: `books.get_entry` gives each part's `resolved`, `direction`,
|
||||
`cash` and `in_kind`; `books.party` gives both a party's totals
|
||||
(`basis` cash or all) and its worksheet figures, labelled; the known
|
||||
limits of BS-partner-3 rule 7 are stated in the tools' text; the
|
||||
limits of BS-partner-3 statement 9 are stated in the tools' text; the
|
||||
viewer's party pages and entry page show the same parts.
|
||||
|
||||
**Enforced:** `ledger-mcp` `books.get_entry`, `books.party`,
|
||||
|
||||
@@ -327,7 +327,7 @@ contribution_margin_pct}`, `ProjectToDate::margin_pct`. **Checked:**
|
||||
|
||||
**WB-statement-8** The statement's words and groupings are
|
||||
wanderbooks' product strings, not accounting (the accounting is
|
||||
BS-statement-3's rules 4, 6 and 8): a reversal shown alone reads
|
||||
BS-statement-3's statements 5, 11 and 13): a reversal shown alone reads
|
||||
"Reversal of #N — <N's description>" and a reinstatement "Reinstatement
|
||||
of #A (reverses #B)", both listed under the original's kind; a
|
||||
financing inflow under a borrowing reads "Proceeds from borrowing —
|
||||
|
||||
@@ -69,7 +69,7 @@ Quotes are short; the rest is paraphrase.
|
||||
|
||||
- **230-10-10-1** (EY p. 1): the statement's primary objective is "to
|
||||
provide relevant information about the cash receipts and cash payments
|
||||
of an entity during a period." → BS-statement-3 rule 1.
|
||||
of an entity during a period." → BS-statement-3 statement 2.
|
||||
- **230-10-45-1** (EY p. 1): the statement "shall report the cash effects
|
||||
during a period of an entity's operations, its investing transactions,
|
||||
and its financing transactions." (It says nothing of reconciling
|
||||
@@ -275,7 +275,7 @@ basic view: check it there at the next reading. A contingency that might
|
||||
result in a gain "usually should not be reflected in the financial
|
||||
statements because to do so might be to recognize revenue before its
|
||||
realization."
|
||||
→ BS-statement-5 item 4: a payment hoped for from work done on spec is recorded
|
||||
→ BS-statement-5 statement 5: a payment hoped for from work done on spec is recorded
|
||||
neither as a receivable nor as income until it is received; the
|
||||
unrecovered cost is a figure, never an asset.
|
||||
|
||||
@@ -289,12 +289,12 @@ contract or an anticipated contract the entity can specifically
|
||||
identify; they generate or enhance resources used in satisfying
|
||||
performance obligations in the future; and they "are expected to be
|
||||
recovered."
|
||||
→ BS-statement-5 item 4 (with BS-asset-2): on-spec work has no contract it is expected
|
||||
→ BS-statement-5 statement 5 (with BS-asset-2): on-spec work has no contract it is expected
|
||||
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 item 8 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 item 8 (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
|
||||
|
||||
@@ -89,7 +89,7 @@ Cited (not quoted, but for the lines below): the Class list's keyword is CLASS;
|
||||
|
||||
> If the class is a subclass of another class, the name includes the name of the parent classes, beginning with the highest level class. If you are creating an import file, use a colon (:) to separate subclass names.
|
||||
|
||||
So a class's NAME, like an account's, is one level per colon: the books, whose classes have no parents, write a colon in a class's name as '-', as in an account's (BS-format-2 rule 8). The page states no length limit and nothing about case.
|
||||
So a class's NAME, like an account's, is one level per colon: the books, whose classes have no parents, write a colon in a class's name as '-', as in an account's (BS-format-2 statement 29). The page states no length limit and nothing about case.
|
||||
|
||||
### IIF Example Files: list declarations
|
||||
SHA-256 of `IIF Import Kit/IIF Example Files/QB 2007 & Enterprise 7.0 and later/Import First - List Declarations (Not Version Specific).iif` (the same bytes in each version's folder): `13c730b23bcb8c142621b04206e3628241d83051442c9b14ea2416d21163439c`
|
||||
@@ -180,7 +180,7 @@ Searched 2026-10-20. What Intuit says:
|
||||
|
||||
Not Intuit, for the record: a third-party IIF vendor answering on Intuit's community (BigRedConsulting, 14 April 2020, <https://quickbooks.intuit.com/learn-support/en-us/other-questions/iif-import-error-3040/00/535675>) wrote that "a NAME is required for any AR row", about a bill, not a journal; QuickBooks Desktop sync tools quote the refusal "Transaction split lines to accounts receivable must include a customer on that split line" (Acctivate, <https://hub.acctivate.com/articles/troubleshoot/synchronization/transaction-split-lines-to-accounts-receivable-must-include-a-customer-on-that-split-line>).
|
||||
|
||||
No Intuit source says what an IIF journal import does with an A/R or A/P line that has no NAME (refuses it, imports it, or asks). So the books write no NAME (writing names would need the customer and vendor lists declared too, with a name unique across them) and the package README names the entries with an A/R or A/P line, so the CPA can add the name in QuickBooks if it asks (BS-format-2 rule 7).
|
||||
No Intuit source says what an IIF journal import does with an A/R or A/P line that has no NAME (refuses it, imports it, or asks). So the books write no NAME (writing names would need the customer and vendor lists declared too, with a name unique across them) and the package README names the entries with an A/R or A/P line, so the CPA can add the name in QuickBooks if it asks (BS-format-2 statement 26).
|
||||
|
||||
## How long a class's name may be
|
||||
|
||||
@@ -203,7 +203,7 @@ Not Intuit, for the record: Conductor's QuickBooks Desktop API reference (a serv
|
||||
|
||||
> Maximum length: 31 characters.
|
||||
|
||||
So the books hold a class's NAME to 31 characters, as an account's own level (Intuit's own limit for a class, above), and keep no two alike ignoring case (Conductor: case-insensitive; BS-format-2 rule 8).
|
||||
So the books hold a class's NAME to 31 characters, as an account's own level (Intuit's own limit for a class, above), and keep no two alike ignoring case (Conductor: case-insensitive; BS-format-2 statements 29 and 30).
|
||||
|
||||
## What QuickBooks does with an over-long name (not Intuit)
|
||||
Source: Thomson Reuters, Accounting CS help, "Export payroll journal entries", <https://thomsonreuters.com/en-us/help/accounting-cs/integrate-data-with-other-applications/export-payroll-journal-entries>
|
||||
|
||||
+19
-19
@@ -1288,9 +1288,9 @@ no mutation run here; what P12 must cover is at the end.
|
||||
| The audit's table (F36, F37), row by row: resolved, direction, cash, in kind; reversals the exact opposite; bills and invoices signed; totals on both bases | `ledger-core/tests/spec_party_totals.rs` `defect14_shares_take_the_partys_side_and_reversals_flip` | BS-partner-3, by hand |
|
||||
| Basis all is the members' equity statement, cash the K-1's cash contributions | `basis_all_is_the_members_equity_statement_and_cash_the_k1s`; property `member_totals_are_the_members_equity_statement` (members contributing and taking out money and property, alone and jointly, subject to a loan, through 2100 then converted, through their distributions accounts, depreciated property with money, declared to distributions payable and paid later, reversed later in the year; checked over every span from the year's start and, received less paid, over every span) | `reports::members_equity`, `k1::k1_detail` |
|
||||
| A reversed member card payment nets to zero (brief §1.4) | `defect14_a_reversed_member_card_payment_nets_to_zero` | BS-ledger-5 |
|
||||
| Accruals through another liability count once (defect 24) | `defect24_an_accrual_through_another_liability_counts_once` | BS-partner-3 item 5 |
|
||||
| A credit to a party's own liability never pays it: a card fee, a distribution owed, a seller's note, property subject to a loan | `defect24_a_credit_to_a_partys_own_liability_never_pays_it`; the documented limit, pinned: `a_distribution_owed_counts_twice_until_the_members_are_named_its_creditors` | BS-partner-3 item 6; Treas. Reg. §1.704-1(b)(2)(iv)(b)(2); Helvering v. Price |
|
||||
| Review, 2026-10-21: a distribution declared to distributions payable counts once, when paid (it counted twice); a distribution of money and depreciated property splits by what moved (the money read as property); a gift card sold is received once (it was a "card": twice); a refund is received; tin_last4 never shows more than four digits | `defect24_a_distribution_declared_to_a_payable_counts_once_when_paid`, `a_distribution_of_money_and_depreciated_property_splits_by_what_moved`, `defect24_a_gift_card_sold_is_received_once`, `a_refund_is_received_from_the_vendor`, `defect11_a_partys_tin_last4_is_its_tin_facts_else_its_w9s` (SCENARIO 6) | BS-partner-3 items 3, 5; BS-partner-2 |
|
||||
| Accruals through another liability count once (defect 24) | `defect24_an_accrual_through_another_liability_counts_once` | BS-partner-3 statement 7 |
|
||||
| A credit to a party's own liability never pays it: a card fee, a distribution owed, a seller's note, property subject to a loan | `defect24_a_credit_to_a_partys_own_liability_never_pays_it`; the documented limit, pinned: `a_distribution_owed_counts_twice_until_the_members_are_named_its_creditors` | BS-partner-3 statement 8; Treas. Reg. §1.704-1(b)(2)(iv)(b)(2); Helvering v. Price |
|
||||
| Review, 2026-10-21: a distribution declared to distributions payable counts once, when paid (it counted twice); a distribution of money and depreciated property splits by what moved (the money read as property); a gift card sold is received once (it was a "card": twice); a refund is received; tin_last4 never shows more than four digits | `defect24_a_distribution_declared_to_a_payable_counts_once_when_paid`, `a_distribution_of_money_and_depreciated_property_splits_by_what_moved`, `defect24_a_gift_card_sold_is_received_once`, `a_refund_is_received_from_the_vendor`, `defect11_a_partys_tin_last4_is_its_tin_facts_else_its_w9s` (SCENARIO 6) | BS-partner-3 statements 3 and 7; BS-partner-2 |
|
||||
| A mixed contribution splits as the K-1 does, ties to the first member | `a_members_mixed_entry_splits_as_the_k1_does` | k1 INVARIANTS 3, 4 |
|
||||
| Read from journaled facts: an archived member, a one-member company | `a_members_entry_keeps_its_reading_after_they_leave` | review R2 |
|
||||
| A close is neither; a basis is cash or all; creditor_of's checks; tin_last4's five scenarios; the kernel's cases | `a_close_tagged_with_its_members_is_neither`, `a_basis_is_cash_or_all`, `a_creditor_is_named_only_on_a_liability_with_one_owner`, `defect11_a_partys_tin_last4_is_its_tin_facts_else_its_w9s`, `party_target_cases_by_hand` | specs |
|
||||
@@ -1392,9 +1392,9 @@ must cover is at the end.
|
||||
|
||||
| What | Where | Oracle |
|
||||
|---|---|---|
|
||||
| One rule for what a card is: the recorded business cards' liabilities, else (none recorded) liabilities named "card", not "gift"; never a member's card, a member's check or a platform; a debit card on the bank is none; money follows it | `ledger-core` `tests/spec_party_totals.rs` `a_card_is_a_recorded_business_card_else_a_liability_named_card` | BS-partner-3 item 5, `parties::card_accounts` INVARIANTS 1-4 |
|
||||
| Party totals and the 1099 worksheet never contradict: paid less received is the worksheet's paid + excluded_card + undetermined + not_reportable plus its other receipts, for a vendor named alone, whatever the methods, refunds and reversals | property `party_totals_are_the_1099s_buckets` (`ledger-core` `tests/form1099.rs`; `PROPTEST_CASES`, default 256; 2,000 run clean; dropping a bucket from the sum fails at once) | BS-partner-3 item 9, by hand |
|
||||
| The same, one year by hand: a member's check, a member's card, a member's payment of unknown method, a company card charge and a company check to one contractor, then the member reimbursed | `bookspec/examples/1099-and-party-totals-for-a-members-payment.toml` | BS-partner-3 item 9; Treas. Reg. §1.6041-1(e)(1), (a)(1)(iv) |
|
||||
| One rule for what a card is: the recorded business cards' liabilities, else (none recorded) liabilities named "card", not "gift"; never a member's card, a member's check or a platform; a debit card on the bank is none; money follows it | `ledger-core` `tests/spec_party_totals.rs` `a_card_is_a_recorded_business_card_else_a_liability_named_card` | BS-partner-3 statement 7, `parties::card_accounts` INVARIANTS 1-4 |
|
||||
| Party totals and the 1099 worksheet never contradict: paid less received is the worksheet's paid + excluded_card + undetermined + not_reportable plus its other receipts, for a vendor named alone, whatever the methods, refunds and reversals | property `party_totals_are_the_1099s_buckets` (`ledger-core` `tests/form1099.rs`; `PROPTEST_CASES`, default 256; 2,000 run clean; dropping a bucket from the sum fails at once) | BS-partner-3 statement 11, by hand |
|
||||
| The same, one year by hand: a member's check, a member's card, a member's payment of unknown method, a company card charge and a company check to one contractor, then the member reimbursed | `bookspec/examples/1099-and-party-totals-for-a-members-payment.toml` | BS-partner-3 statement 11; Treas. Reg. §1.6041-1(e)(1), (a)(1)(iv) |
|
||||
| The CPA package's 1099 worksheet is `books.vendor_1099`'s CSV for the package's accounts (the request's, else the settings', R18) through its as_of, byte for byte; without `through` the files differ; a `through` outside the year and an unknown account are refused | `ledger-cli` `oracle_mcp.rs` `cpa_package_holds_the_year_and_its_evidence`; `ledger-package` `tests/package.rs` `payments_to_a_vendor_come_from_the_packages_accounts`, `one_list_of_cash_accounts_per_package`, `the_1099_worksheet_stops_at_as_of` | BS-statement-4; mcp-interface.md |
|
||||
| A feature is asked for before a command's first line: `books.update_party` with a field and the first creditor, in P2's books waiting for their format upgrade, is refused whole (nothing journaled, never the field without the creditor); once upgraded, as in books this version made, it journals the field, then the creditor, declaring nothing | `ledger-cli` `tests/spec_party_totals.rs` `update_party_asks_for_the_creditor_feature_before_its_first_line` | BS-format-1 |
|
||||
| One bookspec loader for every example, the parties' and the 1099s' with them: `setup.parties`, `setup.members` (`distributions_account`), `setup.payees` (a party's vendor record), `setup.status_changes`, `setup.instruments`, events' `parties` and `instrument`, and the queries `vendor_1099`, `k1`, `party_part`, `party_totals`, `party_tin_last4`; refused: a party or payment method not in the setup, a reversal naming parties, party totals without a basis, a 1099 line leaving a figure out, a wrong direction or status | `ledger-core` `tests/bookspec/` (`every_bookspec_example_holds`, `a_party_not_in_the_setup_is_refused`, `a_party_parts_direction_is_checked`, `a_reversal_naming_parties_is_refused`, `party_totals_without_a_basis_are_refused`, `a_vendor_1099_line_leaving_a_figure_out_is_refused`, `a_vendor_1099_status_is_checked`, `a_payment_method_not_in_the_setup_is_refused`) | bookspec/README.md |
|
||||
@@ -1743,9 +1743,9 @@ bookspec's rules / `docs/spec/claims/` say why not. Mutation runs wait for P12 (
|
||||
- **Engine** (`ledger-package/tests/p3_seams.rs`):
|
||||
`the_members_figures_agree_on_every_date` (members' equity, the K-1
|
||||
worksheet, party totals on both bases, the cash flow's contributions,
|
||||
advances and distributions, BS-partner-3 items 4 and 8),
|
||||
advances and distributions, BS-partner-3 statements 6 and 10),
|
||||
`a_distribution_declared_then_paid_is_financing_when_paid`,
|
||||
`the_1099_worksheet_ties_to_party_totals_and_the_ledger` (BS-partner-3 item 9,
|
||||
`the_1099_worksheet_ties_to_party_totals_and_the_ledger` (BS-partner-3 statement 11,
|
||||
BS-1099-1), `depreciation_is_one_figure_everywhere` (the P&L, the cash flow
|
||||
add-back, the tax-basis K-1's open item, the IIF, the register posted
|
||||
and scheduled, the balance sheet), `every_statement_foots_on_every_date`,
|
||||
@@ -1759,14 +1759,14 @@ bookspec's rules / `docs/spec/claims/` say why not. Mutation runs wait for P12 (
|
||||
`books.vendor_1099` through each date, `books.party` on both bases.
|
||||
- **Found and fixed** (each test fails before its fix): a distribution
|
||||
declared to a payable and paid later read as cash paid to suppliers
|
||||
(BS-statement-3 rule 2; `a_distribution_declared_then_paid_is_a_distribution_paid`
|
||||
(BS-statement-3 statement 3; `a_distribution_declared_then_paid_is_a_distribution_paid`
|
||||
in `ledger-core/tests/spec_cash_flow.rs`, with the property
|
||||
`prop_cf_financing_is_equity_plus_designated_debt`'s model extended);
|
||||
a disposal's depreciation credit-back was in the cash flow's gain or
|
||||
loss, not its depreciation (BS-statement-3 rule 8;
|
||||
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 rule 8).
|
||||
as of a day said "disposed" for a later disposal (BS-asset-1 statement 30).
|
||||
|
||||
## P3: the surface review (2026-10-21)
|
||||
|
||||
@@ -1975,7 +1975,7 @@ feature check; the decision `projects` omit-when-empty;
|
||||
|
||||
The owner's ask: a "mini financial snapshot" of one project on its page,
|
||||
overhead left out, so it shows at a glance whether the project is in the
|
||||
black or the red, with charts (BS-statement-5 item 7: contribution before
|
||||
black or the red, with charts (WB-statement-7: contribution before
|
||||
overhead, revenue less every traced cost, a segment margin in Garrison's
|
||||
sense; a presentation choice, not GAAP). Every figure is ledger-core's:
|
||||
`ProjectToDate::{net, margin_pct, any_tagged, revenue_by_account,
|
||||
@@ -2085,7 +2085,7 @@ rounding strategy; `project_figures`' opening net and running sum;
|
||||
|
||||
## Invoices and bills take a project (2026-10-22)
|
||||
|
||||
BS-statement-5 item 8: each invoice and bill line takes an optional project
|
||||
BS-statement-5 statement 6: each invoice and bill line takes an optional project
|
||||
(`books.create_invoice` / `books.create_bill` `class`); the entry's revenue
|
||||
or expense side is one line per project (`arap::document_parts`), the
|
||||
receivable or payable and the payments untagged; journaled as the line's
|
||||
@@ -2201,7 +2201,7 @@ The P3 cutover review's open points 1 (the IIF left CLASS empty) and 2
|
||||
the tax-basis member split) waits for the owner: nothing is posted
|
||||
before the year-end close. No mutation run (D-33).
|
||||
|
||||
**Point 1, the IIF's classes** (BS-format-2 rule 8): `ledger-import`
|
||||
**Point 1, the IIF's classes** (BS-format-2 statements 27-33): `ledger-import`
|
||||
`tests/spec_import.rs`
|
||||
`iif_writes_each_lines_class_and_declares_the_classes_first` (the file
|
||||
exact: the `!CLASS` list after the accounts, before `!TRNS`, every class
|
||||
@@ -2234,7 +2234,7 @@ and the property. The property found (seed in
|
||||
name yield to a changed one ("Café" twice beside "Cafe (1)" and "Cafe (1)
|
||||
(1)"); the cap is gone, a tag that changes nothing is skipped instead.
|
||||
|
||||
**Point 2, payments to governments** (BS-statement-3 rule 5): `ledger-core`
|
||||
**Point 2, payments to governments** (BS-statement-3 statement 8): `ledger-core`
|
||||
`tests/spec_cash_flow.rs` `a_payment_to_a_government_is_other_operating`
|
||||
(a filing fee on an organization-costs account paid to a government
|
||||
agency, and a penalty on supplies paid to a tax agency, are (g); the
|
||||
@@ -2528,7 +2528,7 @@ accounting question), CHANGE (a source says otherwise; work pending).
|
||||
| 6 | Reconciliation balances | CONFIRMED | Signed by the account's normal side (a card reads as owed), as statements show it; `reconciling_a_card_reads_its_normal_side_...` |
|
||||
| 7 | A member's ending on one equity statement may differ by a cent from the next statement's beginning | CHANGED 2026-10-13; CHANGED P3 | A capital account is one running balance (Treas. Reg. §1.704-1(b)(2)(iv)(b); the Item L quote this row once gave was misread, P3 review R-4). Undistributed earnings now split cumulatively as of each date, so each member's capital chains exactly (`each_members_capital_chains_across_statements`; it fails on the old code); since P3 the split is what the count's next close would give, so a date's capital never moves when its month is closed (D-38; `each_members_capital_chains_and_holds_through_closes`); BS-partner-1 |
|
||||
| 8 | Cash flow nets one line per account; investing comes only from registered assets | CHANGED 2026-10-13 | ASC 230-10-45-7: gross receipts and payments "more relevant" than net; 45-8 limits netting to quick-turnover items. Financing and investing are now gross; loans made and investments bought are investing (230-10-20, 45-13) via `[books] investing_accounts`. Owner-advanced expenses: PwC 6.9.3.1 constructive treatment via `[books] financing_accounts` (BS-statement-3) |
|
||||
| 8a | Cash flow by the indirect method; member-paid expenses as constructive receipts | CHANGED 2026-10-20 | The direct method with the reconciliation as a separate schedule (ASC 230-10-45-25, 45-30); noncash investing and financing activities disclosed, only the cash portion reported (50-3, 50-5). Member-paid expenses stay constructive receipts and disbursements, now gross and on each payment's date, and the same for a lender's payments and an expense paid into capital: a choice (D-42, after a day as noncash under D-35), since ASC 230 doesn't address payments made on the entity's behalf and the firm guides present them so (PwC 6.9.3.1, DART 7.2, BDO 3.4, EY 4.6.2; KPMG Q8.3.10 also accepts noncash for property a lender pays for). BS-statement-3 rule 11, P3 defect 1 |
|
||||
| 8a | Cash flow by the indirect method; member-paid expenses as constructive receipts | CHANGED 2026-10-20 | The direct method with the reconciliation as a separate schedule (ASC 230-10-45-25, 45-30); noncash investing and financing activities disclosed, only the cash portion reported (50-3, 50-5). Member-paid expenses stay constructive receipts and disbursements, now gross and on each payment's date, and the same for a lender's payments and an expense paid into capital: a choice (D-42, after a day as noncash under D-35), since ASC 230 doesn't address payments made on the entity's behalf and the firm guides present them so (PwC 6.9.3.1, DART 7.2, BDO 3.4, EY 4.6.2; KPMG Q8.3.10 also accepts noncash for property a lender pays for). BS-statement-3 statement 16, P3 defect 1 |
|
||||
| 9 | An asset's life ends at purchase + life months, that day not held; day-count proration | CONVENTION | Exactly N months of service; day proration and the mid-month convention are both accepted book policies (ASC 360-10-35-4, read 2026-10-14: any systematic and rational allocation) |
|
||||
| 10 | A payroll entry has one line per account total | CONFIRMED | The per-employee detail the IRS requires ("Amounts and dates of all wage ... payments", Employment Tax Recordkeeping) is kept in the run; a summary entry is standard |
|
||||
| 11 | A period with exactly the dates of an existing one is allowed | DESIGN | Nothing governs duplicate periods; harmless (the second close locks only). Refusing exact duplicates is an option |
|
||||
@@ -2624,7 +2624,7 @@ the wiring into verify, the digest and Needs attention) is part B.
|
||||
`a_payment_journals_its_method_and_reference` (a plain payment's
|
||||
payload field for field as before), `legacy_documents_replay_with_tags`);
|
||||
`tests/arap_props.rs` `status_is_a_function_of_journal_and_date` (BS-arap-2
|
||||
INVARIANT 4: random invoices, bills, payments with and without a
|
||||
invariant 7: random invoices, bills, payments with and without a
|
||||
method and reference, voids, reversals of any entry, closed months and
|
||||
refused hand lines through `Store`; at half time and at the end the
|
||||
books are reopened and read by a `Snapshot`, and `differs_from`, every
|
||||
@@ -3356,10 +3356,10 @@ collected leaves the receivables as a deduction, with its evidence filed
|
||||
in the same call.
|
||||
|
||||
- **ledger-core, `tests/spec_documents.rs`:**
|
||||
`half_paid_rest_written_off_is_written_off` (BS-arap-2 SCENARIO 7: 50 paid,
|
||||
`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 3: 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
|
||||
|
||||
@@ -485,7 +485,7 @@ one kernel function, `kernel::basis_figures`, for every rule:
|
||||
|
||||
### A project's unrecovered cost (P3, projects)
|
||||
|
||||
The "if repaid" figure of work done on spec (BS-statement-5 item 4) is
|
||||
The "if repaid" figure of work done on spec (BS-statement-5 statement 5) is
|
||||
one kernel function, `kernel::unrecovered_cost`:
|
||||
|
||||
32. **Never below zero, the shortfall exactly, and no overflow**: the
|
||||
@@ -879,7 +879,7 @@ Be precise about the claims:
|
||||
entries out of the sections but not out of the cash accounts'
|
||||
balances; the two agree because a close moves only revenue, expense
|
||||
and equity (`Ledger::validate_close_to`) and cash accounts must be
|
||||
assets (BS-statement-3 rule 2). The Lean model's close step lets a
|
||||
assets (BS-statement-3 statement 3). The Lean model's close step lets a
|
||||
target be any balance-sheet account, so `Reachable.cashflow_foots`
|
||||
takes any selection of entries with the cash over the same selection,
|
||||
and `Reachable.cashflow_is_change_in_cash` counts every entry, closes
|
||||
|
||||
Reference in new issue
Block a user