-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Magento loading the wrong Tax info on admin Invoice and Creditmemo page #31197
Comments
Hi @srenon. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. Please, add a comment to assign the issue:
🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, please join the Community Contributions Triage session to discuss the appropriate ticket. 🎥 You can find the recording of the previous Community Contributions Triage on the Magento Youtube Channel ✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel |
Hi Guys, do have the same problem. The Page showing the invoice as described above breaks. |
@chequille You could use a composer patch to temporarily fix this issue until a new version is released. See https://devdocs.magento.com/guides/v2.4/comp-mgr/patching/composer.html filename: {root}/composer.json
filename: {root}/patches/composer/magento-github-issue-31197.diff
|
@srenon
No, I show ou with some screenshots what happens in 2.4.1 So far so good, but now I generate the invoice for this order and after doing so, we suddenly have a non zero total. Tax still says zero, but total is increased with 16% of 49,-€, definetely wrong!!!!!!! (16% is our current tax rate) This is a very strange bug and I hope this will be solved very soon, as well with some patches, because waiting for the next release is probably to long. Looking forward to hearing from you. Best regards, |
@chequille .... did you open a new ticket for the issue mention above (I have not fully reviewed but it seems to be a different issue)? |
@srenon Could you transfer it to a new one? |
@chequille ... I only have limited access to this repo... so please go ahead a create a new ticket. |
✅ Confirmed by @engcom-Charlie Issue Available: @engcom-Charlie, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Hi @srenon. Thank you for your report.
The fix will be available with the upcoming 2.4.3 release. |
After upgrading from Magento 2.3.3 to 2.4.1, we are having random broken invoice pages. After further debugging, this seems to be core issue.
Preconditions (*)
Steps to reproduce (*)
CA
region.Store
->Configuration
->Sales
->Tax
->Orders, Invoices, Credit Memos Display Settings
and setInclude Tax In Order Total
->Yes
;Display Full Tax Summary
->Yes
;State/Province
->California
.State/Province
except forCalifornia
(to avoid taxes).Invoices
tab, and open the invoice.Expected result (*)
Actual result (*)
Additional information
file
https://github.com/magento/magento2/blob/2.4-develop/app/code/Magento/Sales/Block/Adminhtml/Order/Totals/Tax.php#L98
app/code/Magento/Tax/Model/ResourceModel/Sales/Order/Tax/Collection.php
In the image above
order->getId()
is actually an instance of Magento\Sales\Model\Order\Creditmemo or Magento\Sales\Model\Order\Invoice thereforegetId()
will return the invoice or credit memo id instead of the order id which will send the wrong information to the SQL below.Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
The text was updated successfully, but these errors were encountered: