-
Notifications
You must be signed in to change notification settings - Fork 7.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Set right party name in bank transaction #37299
Conversation
- If party name and docname are different, set the docname in Bank Transaction
Unrelated ecommerce test failures due to permission issues |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marination I think we could get process.extract
to handle the mapping of party_name
to name
. My approach would be to pass a list of tuples [(party_name, party), ...]
and a custom preprocessor lambda choice: choice[0]
. The result should then contain the index of the matched element, so we'll know exactly which one it was without searching the party names again.
Reference: https://maxbachmann.github.io/RapidFuzz/Usage/process.html#extract
This pull request has been automatically marked as inactive because it has not had recent activity. It will be closed within 3 days if no further activity occurs, but it only takes a comment to keep a contribution alive :) Also, even if it is closed, you can always reopen the PR when you're ready. Thank you for contributing. |
… the result - rapidfuzz accepts an iterable or a dict. dict input gives the dict key and value in the result
@ruthra-kumar review? its a pretty small fix |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested, LGTM
…-37299 fix: Set right party name in bank transaction (backport #37299)
Ref: #34675
Issue
employee_name
,customer_name
,supplier_name
, etc.name
and sets it in the Bank Transaction.party_name
andname
fields are identical (the default for Customer and Supplier), but produces wrong data if the party is named by series (the default for Employee).party_name
in the Bank Transaction's link field.Fix
party_name
but set party's docname in Bank Transaction