docs(handbook): the invoices-and-bills procedure, whole (P4b S4.5)

Step 1 now covers the issue: preview first (nothing written, the DRAFT PDF,
an abandoned preview uses no number), confirm only after the human has
seen it, the filed issued copy that a later look never replaces,
quantities and prices, the PO, and the snapshot of the customer at issue.
Step 6 is the CPA's list: agings tied to 1200 and 2000, sequential numbers
with voids visible, bills on their real accounts with the vendor's number
and no duplicate, card payments identified for 1099-NEC, deposits as
liabilities, light governance by decision.

A {documents_v2} placeholder (handbook::section_with, the server's
documents_v2 feature test) says "your books have not declared documents_v2
yet" before the owner's upgrade and what is on after it; no other section
changes. Parity, testing (with the For-P12 paragraph) and mcp-interface
notes for S4.5.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
This commit is contained in:
swaitsandClaude Fable 5.1 committed 2026-10-29 12:55:10 -06:00
1 parent df93d8b951
commit caad35d75b
7 files changed
+224 -15

No files matched your search

+4 -2
View File
@@ -18,11 +18,13 @@ impl BooksServer {
) -> Result<Json<HandbookOut>, String> {
let settings = self.settings();
let declared = self.document_line_projects();
let documents_v2 = self.documents_v2();
let sections = handbook::SECTIONS
.iter()
.map(|(id, _)| {
let text =
handbook::section(id, &settings, self.currency(), declared).unwrap_or_default();
handbook::section_with(id, &settings, self.currency(), declared, documents_v2)
.unwrap_or_default();
HandbookSectionOut {
id: id.to_string(),
title: handbook::title(&text).to_string(),
@@ -34,7 +36,7 @@ impl BooksServer {
let section = match params.0.section.as_deref().map(str::trim) {
None => None,
Some(id) => {
let text = handbook::section(id, &settings, self.currency(), declared).ok_or_else(|| {
let text = handbook::section_with(id, &settings, self.currency(), declared, documents_v2).ok_or_else(|| {
let ids: Vec<&str> = handbook::SECTIONS.iter().map(|(id, _)| *id).collect();
format!(
"no handbook section {id:?}: the sections are {}, or \"{}\" for all of them",