Skip to content

add tax-report filters and yearly document check - #7

Merged
OrellBuehler merged 2 commits into
mainfrom
worktree-tax-filters
Aug 16, 2026
Merged

add tax-report filters and yearly document check#7
OrellBuehler merged 2 commits into
mainfrom
worktree-tax-filters

Conversation

@OrellBuehler

Copy link
Copy Markdown
Owner

Summary

  • custom_field_query on list_documents — pass-through JSON expression filter (e.g. ["Betrag", "gt", 100] or nested ["AND", [...]]) so agents can filter by amount/tax-year custom fields and sum deductions in one call
  • inclusive date filters: created__date__gte/lte and added__date__gte/lte alongside the existing exclusive gt/lt, with descriptions marking which is which
  • yearly_document_check helper — compares a year against the previous year per correspondent + document type (optionally scoped by tags__id__all) and reports missing_this_year (with example titles from last year), new_this_year, and totals
  • __in filters: correspondent__id__in and document_type__id__in (comma-joined by buildQS)
  • README tool catalog and filter notes updated

Test plan

  • three new tests: filter pass-through assertions, a full missing-combo scenario, and tag scoping
  • all 140 tests pass; format/lint/typecheck green (prek hooks ran the same gates on commit)

🤖 Generated with Claude Code

- list_documents: custom_field_query (JSON expressions), inclusive
  __gte/__lte date filters, correspondent__id__in and
  document_type__id__in multi-value filters
- new yearly_document_check helper comparing a year against the
  previous one per correspondent + document type to spot missing
  recurring documents
@OrellBuehler
OrellBuehler merged commit 8501fed into main Aug 16, 2026
7 of 8 checks passed
@OrellBuehler
OrellBuehler deleted the worktree-tax-filters branch August 16, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant