add tax-report filters and yearly document check - #7
Merged
Conversation
- 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
# Conflicts: # README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
custom_field_queryonlist_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 callcreated__date__gte/lteandadded__date__gte/ltealongside the existing exclusivegt/lt, with descriptions marking which is whichyearly_document_checkhelper — compares a year against the previous year per correspondent + document type (optionally scoped bytags__id__all) and reportsmissing_this_year(with example titles from last year),new_this_year, and totals__infilters:correspondent__id__inanddocument_type__id__in(comma-joined bybuildQS)Test plan
🤖 Generated with Claude Code