Open digitalpianism opened 7 months ago
Hi @digitalpianism. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:
@magento give me 2.4-develop instance
- upcoming 2.4.x release@magento I am working on this
Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.
@magento give me 2.4-develop instance
Hi @digitalpianism. Thank you for your request. I'm working on Magento instance for you.
Hi @digitalpianism, here is your Magento Instance: https://6fc1486a44c08bdcd128df01c88544ca.instances-prod.magento-community.engineering Admin access: https://6fc1486a44c08bdcd128df01c88544ca.instances-prod.magento-community.engineering/admin_b24a Login: 15429f36 Password: 18b19d16f0d9
Confirming the issue is present in 2.4-develop, screenshots below from the instance above:
Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:
Area: XXXXX
label to the ticket, indicating the functional areas it may be related to.2.4-develop
branch@magento give me 2.4-develop instance
to deploy test instance on Magento infrastructure. 2.4-develop
branch, please, add the label Reproduced on 2.4.x
.Issue: Confirmed
once verification is complete. @magento give me 2.4-develop instance
Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.
Hi @engcom-Bravo, here is your Magento Instance: https://6fc1486a44c08bdcd128df01c88544ca.instances-prod.magento-community.engineering Admin access: https://6fc1486a44c08bdcd128df01c88544ca.instances-prod.magento-community.engineering/admin_2102 Login: dea1c8b9 Password: 65ecb079ce48
Hi @digitalpianism,
Thank you for reporting and collaboration.
Verified the issue on Magento 2.4-develop instance and the issue is not reproducible.Kindly refer the screenshots.
Steps to reproduce
The order is still in Processing because we have one more quantity for the physical product to ship.
Could you please let us know if we are missing anything.
Thanks.
@engcom-Bravo it's not consistent with the rest of Magento behavior then.
Let's take the case below:
In that case, the order becomes Complete:
On top of that if you create another order like this:
The order is complete as well.
Knowing that, combination of both should be complete too.
@magento give me 2.4-develop instance
Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you.
Hi @engcom-Bravo, here is your Magento Instance: https://6fc1486a44c08bdcd128df01c88544ca.instances-prod.magento-community.engineering Admin access: https://6fc1486a44c08bdcd128df01c88544ca.instances-prod.magento-community.engineering/admin_a8e6 Login: 96ce0477 Password: a63125bbdf3c
Hi @digitalpianism,
Thanks for your update.
Verified the issue on Magento 2.4-develop instance and the issue is reproducible.
The Order is still in Processing state when we have combination of both physical products and virtual products.
Hence Confirming the issue.
Thanks.
:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/AC-11691 is successfully created for this GitHub issue.
:white_check_mark: Confirmed by @engcom-Bravo. Thank you for verifying the issue.
Issue Available: @engcom-Bravo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.
:x: Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/AC-11691
@magento I am working on this
@magento run all tests
I have started to have some feedbacks for this issue and I will put a report on where we are at this point.
As a consequence, when a product has been refunded, it can overlap with the shipment data (in which case, using the tests to reproduce the issue, the order is expected to remain to processing) it can be separate from the shipment data, we refund an item that was not sent yet (the credit memo is expected to adjust the shipping fees to 0 in this case) and the order status would be expected to be set to complete
--> the conclusion of this finding is that unless we can flag is a refund is for a shipped item or not, then we can't change the order status to complete. --> the focus with this issue was to verify virtual items did not prevent the order to be set to complete if all the physical items in the order were handled by shipment or refund. But the fact we are not able to separate refund and shipment data leads us to be still at the original place.
Preconditions and environment
Steps to reproduce
Expected result
Order state should be complete.
Actual result
Order state is still processing.
Additional information
Problem comes from
magento/module-sales/Model/ResourceModel/Order/Handler/State.php
In the
isPartiallyRefundedOrderShipped
, the code compares the total qty ordered with the sum of total qty shipped and total qty refunded.However, virtual items are not considered when retrieving the total qty shipped, preventing the method from returning true.
Here's the fix that I have used to resolve the issue:
Release note
No response
Triage and priority