diff --git a/docs/spec/rules.md b/docs/spec/rules.md index 162c5a8f..03a6042e 100644 --- a/docs/spec/rules.md +++ b/docs/spec/rules.md @@ -2219,7 +2219,8 @@ taxpayer's machine-sensible records by account and the taxpayer's return"); CHOICE for warn versus refuse (Pub. 583: "the law does not require any specific kind of records"; the owner, 2026-10-20: warn by default, header accounts exempt, the first company set to refuse at the -P3 cutover). +P3 cutover; and, the owner, 2026-11-07, D-67: a category's deductible amount +rounds once, on the category total). A tax category is the account's link to the return (`ledger_core::tax`, `sources/irs-tax-lines.md`). An account needs one when it is a revenue or @@ -2266,7 +2267,8 @@ replay calls); `settings::TaxCategoryPolicy`, `Settings::require_tax_category`; their first `settings.set` naming the key, B-27); `ledger-mcp` `books.add_account`, `books.import_chart_csv`, `books.digest`; `ledger-gui` Needs attention (Info under warn, Todo under refuse). **Checked:** `ledger-core` -`tests/tax.rs`; `ledger-store` `tests/store.rs` +`tests/tax.rs` (the rounding: `a_category_rounds_its_deductible_amount_once_not_per_account`, +`a_category_rounds_once_across_different_percents`); `ledger-store` `tests/store.rs` (`prop_tax_policy_refuses_exactly`, `a_journaled_clear_replays_under_refuse`); `ledger-cli` `tests/spec_tax_policy.rs`; `ledger-gui` `tests/view_model.rs` (`needs_attention_flags_every_uncategorized_pl_account_defect_8`); diff --git a/plan/golden-worksheets/tax_summary_form_1065.md b/plan/golden-worksheets/tax_summary_form_1065.md index 66246624..91a07f93 100644 --- a/plan/golden-worksheets/tax_summary_form_1065.md +++ b/plan/golden-worksheets/tax_summary_form_1065.md @@ -29,8 +29,8 @@ was written or the report was printed. cases, the percentage is 50%." AUTHORITY for 50%. - `nondeductible`: Schedule C Part V: "you can't deduct fines or penalties paid to a government for violating any law." AUTHORITY for 0% (no line). -- **Cent rounding of a deductible amount** is NOT stated by any authority in - rules.md (see "Observations" below). Applied here: the cent, half away from +- **Cent rounding of a deductible amount** was NOT stated by any authority in + rules.md when this was written (since 2026-11-07, D-67's CHOICE in B-32: once per category) (see "Observations" below). Applied here: the cent, half away from zero (the engine's documented rule, `tax_summary` doc; B-3's half-away- from-zero for currency). Only the meals line needs it. - Display order of categories is the catalog order in `tax::CATEGORIES` @@ -120,3 +120,6 @@ existing `snapshot` golden writes them). (166.665 → 166.67 either way); with several accounts in one category the engine rounds each account and sums, which can differ from rounding the category's sum by a cent per account. Worth a CONVENTION entry in rules.md. +- Resolved 2026-11-07: the owner chose rounding once per category (D-67, + a CHOICE line in rules.md B-32); the engine now does so. With one account + per category this golden is unchanged.