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

perf: remove unnecessary fetching of balances in JV #40257

Merged

Conversation

GursheenK
Copy link
Member

The get_balance_on function scans all previous rows of the ledger for a particular account in order to find the current account as well as party balance for every row in the Journal Entry. If the Journal Entry has a large number of rows for the accounting entries, the function gets triggered for each one of them every time the account / cost center fields change. The balance fields are not used for any logic in the JV as such so these fields can be removed keeping the act of checking account and party balances primarily from the ledger only.

@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Mar 3, 2024
@GursheenK GursheenK marked this pull request as ready for review March 4, 2024 05:45
@GursheenK GursheenK merged commit cc923f5 into frappe:version-14-hotfix Mar 4, 2024
11 checks passed
@frappe-pr-bot
Copy link
Collaborator

🎉 This PR is included in version 14.65.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 21, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs-tests This PR needs automated unit-tests. released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants