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

Virtual refunded orders do not persist closed state when comment is added via Admin #35283

Closed
1 task
ksenia-zlotin opened this issue Apr 8, 2022 · 11 comments · May be fixed by #35427
Closed
1 task

Virtual refunded orders do not persist closed state when comment is added via Admin #35283

ksenia-zlotin opened this issue Apr 8, 2022 · 11 comments · May be fixed by #35427
Assignees
Labels
Area: Order Component: order status Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: done Reported on 2.4.3-p1 Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch

Comments

@ksenia-zlotin
Copy link

I believe this is caused by the commit here:
4f90cf5
I would like an explanation why was this check added and how come even on a clean 2.4.3-p1 copy I am able to recreate this error?

Preconditions (*)

  1. Magento 2.4.3-p1
  2. PHP 7.4.13

Steps to reproduce (*)

  1. Install clean copy of Magento 2.4.3-p1 without sample data
  2. Create virtual product with a price of $10
  3. Place order with that product and invoice it in the Admin so that credit memo is possible
  4. Press the credit memo button and go ahead and create one
  5. In the

Screen Shot 2022-04-08 at 2 08 15 PM

order view loaded after the creditmemo saved, scroll to bottom of page where comments section status dropdown is

Expected result (*)

  1. The status dropdown should only show the 'Closed' option, that way when a comment is added to this closed order - it does not set it to 'Complete'.

Screen Shot 2022-04-07 at 11 26 00 AM

Actual result (*)

  1. order state is never set to closed when the refund saves successfully, while the status does update to closed in the db
  2. order status dropdown in comments section showing only 'Complete' option which will cause any new comment which will be added to revert the order status from 'Closed' to 'Complete'

Screen Shot 2022-04-08 at 2 08 20 PM

  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
@m2-assistant
Copy link

m2-assistant bot commented Apr 8, 2022

Hi @ksenia-zlotin. Thank you for your report.
To speed up processing of this issue, make sure that you provided the following information:

  • Summary of the issue
  • Information on your environment
  • Steps to reproduce
  • Expected and actual results

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

For more details, review the Magento Contributor Assistant documentation.

Add a comment to assign the issue: @magento I am working on this

To learn more about issue processing workflow, refer to the Code Contributions.


⚠️ According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting.

🕙 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, join the Community Contributions Triage session to discuss the appropriate ticket.

✏️ Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel

@m2-assistant
Copy link

m2-assistant bot commented Apr 11, 2022

Hi @engcom-November. 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: 👇

  • 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).

    DetailsIf the issue has a valid description, the label Issue: Format is valid will be added to the issue automatically. Please, edit issue description if needed, until label Issue: Format is valid appears.

  • 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue. If the report is valid, add Issue: Clear Description label to the issue by yourself.

  • 3. Add Component: XXXXX label(s) to the ticket, indicating the components it may be related to.

  • 4. Verify that the issue is reproducible on 2.4-develop branch

    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

  • 5. Add label Issue: Confirmed once verification is complete.

  • 6. Make sure that automatic system confirms that report has been added to the backlog.

@engcom-November
Copy link
Contributor

@magento give me 2.4-develop instance

@magento-deployment-service
Copy link

Hi @engcom-November, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.

@engcom-November
Copy link
Contributor

@magento give me 2.4-develop instance

@magento-deployment-service
Copy link

Hi @engcom-November, unfortunately there is no ability to deploy Magento instance at the moment. Please try again later.

@engcom-November
Copy link
Contributor

Verified the issue on Magento 2.4-develop branch and is reproducible. As per Magento docs, order status should be closed after issuing credit memo and customer is refunded.
For Virtual Product, Order status is displayed "Complete" in drop-down but displayed "Closed" in comment. On adding new comment, its displayed as Complete in comment section as well.
image

Simple Product behavior:
image

@engcom-November engcom-November added Reported on 2.4.x Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch Component: order status Reported on 2.4.3-p1 Indicates original Magento version for the Issue report. Area: Order Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed and removed Reported on 2.4.x Indicates original Magento version for the Issue report. labels Apr 11, 2022
@github-jira-sync-bot
Copy link

✅ Jira issue https://jira.corp.magento.com/browse/AC-2811 is successfully created for this GitHub issue.

@m2-assistant
Copy link

m2-assistant bot commented Apr 11, 2022

✅ Confirmed by @engcom-November. Thank you for verifying the issue.
Issue Available: @engcom-November, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

@engcom-Hotel engcom-Hotel added the Priority: P2 A defect with this priority could have functionality issues which are not to expectations. label Apr 12, 2022
@Usik2203
Copy link
Contributor

Usik2203 commented May 3, 2022

@magento I am working on this

@engcom-Hotel
Copy link
Contributor

Hello @ksenia-zlotin,

As I can see this issue got fixed in the scope of the internal Jira ticket AC-2811 by the internal team
Related commits: https://github.com/magento/magento2/search?q=AC-2811&type=commits

Based on the Jira ticket, the target version is 2.4.6.

Thanks

@m2-community-project m2-community-project bot added Progress: done and removed Progress: PR Created Indicates that Pull Request has been created to fix issue labels Aug 19, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Order Component: order status Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P2 A defect with this priority could have functionality issues which are not to expectations. Progress: done Reported on 2.4.3-p1 Indicates original Magento version for the Issue report. Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants