feat(core): the engine refuses free text that looks like a tax id
Entry and reversal descriptions, write-off and void reasons, document memos, references, duplicate reasons and line descriptions, asset descriptions, serials and tags, period names, account codes, schedule and recurring descriptions and payroll employee names now meet the one free-text detector in the Ledger command itself (FreeTextHoldsTin), so a caller other than the MCP layer cannot journal a tax id (BS-partner-2). Replay never refuses (BS-entry-4). Draft notes, discard reasons, no-party reasons and send references and notes move from the strict nine-digit reading to the shapes (parties::check_note), as the owner chose on 2026-11-21; party fields, names and recipients keep the strict reading. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
ff58b055ce
commit
548901ce7d
9 files changed
+136
-18
No files matched your search
@@ -1801,6 +1801,7 @@ impl Store {
|
||||
// Every refusal before the journal: a journaled reversal the engine
|
||||
// then refuses could never be replayed, and the books would not open.
|
||||
self.check_reverse_entry(entry, date)?;
|
||||
LedgerError::free_text("the reversal's description", description)?;
|
||||
let new_id = self.ledger.next_entry_id();
|
||||
let flipped: Vec<Value> = orig.lines().iter().map(flip_line_json).collect();
|
||||
// Reversals journal a single entry.reversed line (no separate
|
||||
|
||||
Reference in new issue
Block a user