-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Invoice for an order that contains only one configurable product is not generated correctly #31472
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
Conversation
…oduct is not generated correctly
Hi @mastiuhin-olexandr. Thank you for your contribution
❗ Automated tests can be triggered manually with an appropriate comment:
You can find more information about the builds here ℹ️ Please run only needed test builds instead of all when developing. Please run all test builds before sending your PR for review. For more details, please, review the Magento Contributor Guide documentation. 🕙 You can find the schedule on the Magento Community Calendar page. 📞 The triage of Pull Requests 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 |
@magento run all tests |
@@ -679,6 +679,11 @@ public function register() | |||
public function isLast() | |||
{ | |||
foreach ($this->getAllItems() as $item) { | |||
$orderItem = $item->getOrderItem(); |
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.
Should be verified with PAT tests.
@zakdma the branch with code successfully imported into |
Hi @mastiuhin-olexandr, thank you for your contribution! |
@mastiuhin-olexandr , same issue is coming in Report section where custom tax is not getting added even after fixing this by |
Description (*)
When you placing exactly one configurable option two order items appears in order model - one of them is dummy, that just provides useful information about the order. Such kind of dummy items are defined as not the last in invoice model that brings us wrong flow of a total calculation.
Fixed Issues (if relevant)
Manual testing scenarios (*)
Preconditions
payment method code: "checkmo", fee amount: "30"
Calculate tax: yes
Steps
Expected result
Extra payment fee created by the module includes the Tax from the Tax Rule.
Actual result
Extra payment fee created by the module doesn't include the Tax from the Tax Rule
Contribution checklist (*)