docs(claims): refused dates, amounts, periods, roles, exports, 1099 years and returns
Each rule's Checked line names the bookspec example that now shows it, the enforcement site it goes through, and the test that runs it: - B-28 (BS-entry-4, BS-entry-7): the date past 9999 and the line past the cap, through `try_create_entry` and `add_line`; - B-12 (BS-period-4): the partly overlapping quarter, through `create_period`'s PeriodsOverlap; - B-23 (BS-ledger-19): the role on a header, through `Store::assign_role` and `check_assign_role`; - BS-format-10: the export refused through `IifError`; - B-19 (BS-1099-2): the 2027 worksheet refused through `RuleNotKnown`; - B-26 (BS-partner-8): the return taking 123-45-6789 from the vault. Co-Authored-By: DeepSeek V4.1 Flash <noreply@opencode.ai>
This commit is contained in:
1 parent
7ac1e644b2
commit
ad55ede8e4
6 files changed
+47
-6
No files matched your search
@@ -107,7 +107,13 @@ replay pair; `a_foreign_amount_and_a_rate_take_at_most_ten_places`),
|
||||
`out_of_range_amount_is_rejected`; `ledger-store` `tests/bounds.rs`,
|
||||
`tests/store.rs` `a_journaled_foreign_line_finer_than_ten_places_still_opens`;
|
||||
`ledger-cli` `server.rs` `periods_are_a_year_and_a_month`,
|
||||
`dates_are_four_digit_years_and_real_days`.
|
||||
`dates_are_four_digit_years_and_real_days`; bookspec examples
|
||||
`entry-a-date-past-9999-is-refused` and
|
||||
`entry-an-amount-past-the-line-cap-is-refused` (BS-entry-7, the option picked:
|
||||
the books refuse `try_create_entry`'s date past 9999 and `add_line`'s amount
|
||||
past the cap, read off `LedgerError::DateOutOfRange` and
|
||||
`LedgerError::AmountOutOfRange`), run by `every_bookspec_example_holds` and
|
||||
`the_runner_reports_every_claimed_rule_green`.
|
||||
|
||||
### Product rules
|
||||
|
||||
|
||||
Reference in new issue
Block a user