docs(spec): WB-ledger-17, the reconciliations rule, and the order the tests pin
Which accounts the monthly close reconciles, and when each is due, was a module's own spec block with no id. It is now WB-ledger-17 (product-only, a CONVENTION sourced to docs/parties-and-attachments.md "Reconciliations"), checked against the code: the cash accounts (configured ones in the order given, else by name in ascending account id), the card accounts (ascending id), then the other liabilities with a statement in the order the statements are given (period end, then file; not ascending id), each once; and an account is due through last month's end when it has a posted line on or before it and no reconciliation not voided is dated on or after it. The module and the test file cite it. The order within the cash group is the account id's, as `card_accounts` sorts, not the chart code's (`ChartOfAccounts::all` is unordered). The test is renamed to say so and its codes are out of creation order, so a sort by code fails it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2ce48090fd
commit
ae32a83407
4 files changed
+98
-47
No files matched your search
+1
-1
@@ -4235,7 +4235,7 @@ the name-matched cash accounts in `HashMap` order (`ChartOfAccounts::all` is
|
||||
"order unspecified"), so `books.digest`'s `unreconciled_accounts` could list
|
||||
the same books' accounts in a different order from run to run; `card_accounts`
|
||||
beside it sorts by account id. The test that found it
|
||||
(`cash_accounts_come_in_chart_order`) was committed `#[ignore]`d with the
|
||||
(`cash_accounts_by_name_come_in_ascending_account_id`) was committed `#[ignore]`d with the
|
||||
finding in its reason; the fix sorts the list and is the commit after the
|
||||
tests, so it can be dropped without touching them.
|
||||
|
||||
|
||||
Reference in new issue
Block a user