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

feat: add make_regional_gl_entries override for Sales Invoice (backport #42399) #42420

Merged
merged 1 commit into from
Jul 20, 2024

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Jul 20, 2024

Explain the details for making this change. What existing problem does the pull request solve?

following review on #42278

For a common feature in France/Europe (but missing in ERPNext core), we've introduce in France Regional Localization app (https://github.com/scopen-coop/erpnext_france), the "Deposit invoice". That's a real Sales invoices / Purchase Invoice issuing (not Payment Request) based on % or fixed amount from a Sales Order / Purchase Order .

We need to adapt make_gl_entries and make_reverse_gl_entries method because the actual tax accounting is not correct according regional accountancy law.
Income amount from this type of invoice can have a different Account, and Tax amount could be accounted in split/spread Accounts if it talk about Goods or Service or also, but not only, depend Customer/Supplier country, and other case...

Actually, we almost manage to update GL entry after core ERPNext make_gl_entries/make_reverse_gl_entries but that not the good way of doing things.
This missing "@erpnext.allow_regional" on these methods force us to spend a lot's of time to "hack" ERPNext, and in some case do not allow to implement the legal requirement for France accounting law.

Let me know what do you think about this PR

no-docs


This is an automatic backport of pull request #42399 done by Mergify.

* feat: add make_regional_gl_entries override for Sales Invoice and Stock Controler

* chore: remove regionnal override for stock management

(cherry picked from commit 1bbe020)
@github-actions github-actions bot added the needs-tests This PR needs automated unit-tests. label Jul 20, 2024
@vorasmit vorasmit merged commit 5741f32 into version-15-hotfix Jul 20, 2024
12 checks passed
@vorasmit vorasmit deleted the mergify/bp/version-15-hotfix/pr-42399 branch July 20, 2024 04:04
@frappe-pr-bot
Copy link
Collaborator

🎉 This issue has been resolved in version 15.31.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 Aug 9, 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.

None yet

3 participants