Repository navigation
Commit c362a82
authored
feat(ledger): scope reconciliation calls to an entity; move a calendar's start (#246)
## Summary
Facade support for two server capabilities that are already live
(robosystems v1.16.10 and v1.16.11). This keeps the Python facade in
step with the TypeScript one (typescript-client #262), which
roboledger-app uses.
- **Reconciliation per entity.** These now take an optional keyword
`entity_id`; omitted, the group parent, as before:
- `record_statement_balance`;
- `preview_reconciliations`;
- `refresh_reconciliations`.
Until now a caller could not record a statement or run the checks
against a subsidiary.
- **`change_calendar_start(graph_id, first_open_period, note=None, *,
entity_id=None)`** moves an entity's first open month, allowed until its
first close. It returns the calendar and how many months were opened or
removed.
## Contract tier
**Additive to the stable tier**: new optional parameters and one new
method. Nothing is removed and no default changes. That makes it a
client minor.
The bodies leave `entity_id` unset when none is given, so the requests
are unchanged for existing callers.
## Test plan
- [x] Facade tests:
- each call sends `entity_id` when an entity is named;
- `changeCalendarStart` sends its body and reads the counts back.
- [x] `just test-all` passes: 673 tests, ruff and basedpyright clean.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01AQkGGPDmpba9eBV9PkLTfv2 files changed
Lines changed: 92 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
120 | 123 | | |
121 | 124 | | |
122 | 125 | | |
| |||
579 | 582 | | |
580 | 583 | | |
581 | 584 | | |
| 585 | + | |
| 586 | + | |
582 | 587 | | |
583 | 588 | | |
584 | 589 | | |
| |||
2345 | 2350 | | |
2346 | 2351 | | |
2347 | 2352 | | |
| 2353 | + | |
| 2354 | + | |
| 2355 | + | |
| 2356 | + | |
| 2357 | + | |
| 2358 | + | |
| 2359 | + | |
| 2360 | + | |
| 2361 | + | |
| 2362 | + | |
| 2363 | + | |
| 2364 | + | |
| 2365 | + | |
| 2366 | + | |
| 2367 | + | |
| 2368 | + | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
| 2376 | + | |
2348 | 2377 | | |
2349 | 2378 | | |
2350 | 2379 | | |
| |||
2530 | 2559 | | |
2531 | 2560 | | |
2532 | 2561 | | |
| 2562 | + | |
2533 | 2563 | | |
2534 | 2564 | | |
2535 | 2565 | | |
2536 | 2566 | | |
2537 | 2567 | | |
2538 | | - | |
| 2568 | + | |
| 2569 | + | |
2539 | 2570 | | |
2540 | 2571 | | |
2541 | 2572 | | |
2542 | 2573 | | |
2543 | 2574 | | |
2544 | 2575 | | |
2545 | 2576 | | |
| 2577 | + | |
2546 | 2578 | | |
2547 | 2579 | | |
2548 | 2580 | | |
| |||
2553 | 2585 | | |
2554 | 2586 | | |
2555 | 2587 | | |
2556 | | - | |
| 2588 | + | |
2557 | 2589 | | |
2558 | 2590 | | |
2559 | | - | |
2560 | | - | |
| 2591 | + | |
| 2592 | + | |
| 2593 | + | |
| 2594 | + | |
| 2595 | + | |
2561 | 2596 | | |
2562 | 2597 | | |
2563 | 2598 | | |
| |||
2575 | 2610 | | |
2576 | 2611 | | |
2577 | 2612 | | |
| 2613 | + | |
2578 | 2614 | | |
2579 | 2615 | | |
2580 | 2616 | | |
| |||
2583 | 2619 | | |
2584 | 2620 | | |
2585 | 2621 | | |
2586 | | - | |
| 2622 | + | |
| 2623 | + | |
2587 | 2624 | | |
2588 | 2625 | | |
2589 | 2626 | | |
| 2627 | + | |
2590 | 2628 | | |
2591 | 2629 | | |
2592 | 2630 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3207 | 3207 | | |
3208 | 3208 | | |
3209 | 3209 | | |
| 3210 | + | |
| 3211 | + | |
| 3212 | + | |
| 3213 | + | |
| 3214 | + | |
| 3215 | + | |
| 3216 | + | |
| 3217 | + | |
| 3218 | + | |
| 3219 | + | |
| 3220 | + | |
| 3221 | + | |
| 3222 | + | |
| 3223 | + | |
| 3224 | + | |
| 3225 | + | |
| 3226 | + | |
| 3227 | + | |
| 3228 | + | |
| 3229 | + | |
| 3230 | + | |
| 3231 | + | |
| 3232 | + | |
| 3233 | + | |
| 3234 | + | |
| 3235 | + | |
| 3236 | + | |
| 3237 | + | |
| 3238 | + | |
| 3239 | + | |
| 3240 | + | |
| 3241 | + | |
| 3242 | + | |
| 3243 | + | |
| 3244 | + | |
| 3245 | + | |
| 3246 | + | |
| 3247 | + | |
| 3248 | + | |
| 3249 | + | |
| 3250 | + | |
| 3251 | + | |
| 3252 | + | |
| 3253 | + | |
| 3254 | + | |
| 3255 | + | |
| 3256 | + | |
| 3257 | + | |
| 3258 | + | |
3210 | 3259 | | |
3211 | 3260 | | |
3212 | 3261 | | |
| |||
0 commit comments