fix!: remove date filter from matched vouchers (backport #386)#395
Merged
barredterra merged 5 commits intoJul 17, 2026
Merged
Conversation
(cherry picked from commit 85dac55) # Conflicts: # banking/klarna_kosma_integration/doctype/bank_reconciliation_tool_beta/bank_reconciliation_tool_beta.json # banking/klarna_kosma_integration/doctype/bank_reconciliation_tool_beta/bank_reconciliation_tool_beta.py
This comment was marked as resolved.
This comment was marked as resolved.
Contributor
Member
|
🎉 This PR is included in version 15.36.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
tl;dr: Payment Entry & Journal Entry in "Match Voucher" are no longer filtered by date, matching the other voucher types. We remove these filters wherever we don't need them.
Statement date filters were applied inconsistently: they scoped bank transactions and Payment Entry / Journal Entry matching, but not invoices or other voucher types. That made the same date fields mean different things depending on voucher type, and optional or partial dates could silently return no PE/JE matches.
Date filters now only define the statement period you are reconciling. Voucher discovery is per bank transaction and relies on ranking (amount, reference, party, date proximity) instead of hard date cutoffs, so older open invoices and backdated entries remain matchable.
Removed the reference-date filter UI because it only ever affected PE/JE and no longer matches how matching works.
Warning
Behavioral break for any
get_matching_queriesimplementer (or user/API client) that relied on voucher date filtering.get_matching_querieskeeps the old signature, but banking now always calls it withfrom_date=None,to_date=None,filter_by_reference_date=False. Hook implementers that still apply those date args will silently stop date-filtering (and may return more rows). HRMS does exactly that for Expense Claim matching.This is an automatic backport of pull request #386 done by [Mergify](https://mergify.com).