Skip to content
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(Payment Entry): don't check empty references #38750

Merged

Conversation

barredterra
Copy link
Collaborator

@barredterra barredterra commented Dec 14, 2023

Manual partial backport of #36649

Motivation: when creating a Payment Entry without references, we get a warning from get_outstanding_reference_documents because it didn't find any outstanding references. This makes no sense in this case and confuses the users. The guarding if-statement prevents this in v14+, hence backporting this part.

Yes, this could be done prettier, with a smaller diff, but I sticked to the original implementation for consistency. Any refactors should target the develop branch and get backported from there.

@barredterra
Copy link
Collaborator Author

The failing unit test seems to be unrelated

@ruthra-kumar ruthra-kumar self-assigned this Dec 21, 2023
@ruthra-kumar
Copy link
Member

LGTM

@ruthra-kumar ruthra-kumar merged commit b049b52 into frappe:version-13-hotfix Dec 21, 2023
9 of 10 checks passed
@barredterra barredterra deleted the pe-empty-referneces branch December 21, 2023 08:13
@frappe-pr-bot
Copy link
Collaborator

🎉 This PR is included in version 13.55.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants