Closed zepgram closed 1 year ago
Hi @zepgram. Thank you for your report. To speed up processing of this issue, make sure that you provided the following information:
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.
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.
:pencil2: Feel free to post questions/proposals/feedback related to the Community Contributions Triage process to the corresponding Slack Channel
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: :point_down:
[ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).Details
If 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
branchDetails
- 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.
Hi @zepgram , Thank you for reporting and collaboration. Verified the issue on Magento 2.4-develop instance with enterprise edition modules enabled but the issue is not reproducible with below steps performed. Steps performed: Placed an order from front end with gift card product and simple product. Created invoice from admin and credit memo for only simple product. No issue. Credit memo / refund created for only simple product as expected. No gift card account is deleted. Kindly recheck the issue on Magento 2.4-develop instance with enterprise edition and provide missing steps if any if the issue is still reproducible. Thank you.
You must also invoice the gift card product before creating the creditmemo for the simple product
Hi @zepgram , invoice has been created for gift-card product as well but credit memo created only for simple product.
I don't know how you do, anytime I'm reporing something you cannot reproduce. Just look at the code, it's wrong anyway.
Hi @zepgram , I verified the code in Magento 2.4-develop instance and the code is the same which mentioned by you but still unable to reproduce the issue. I rechecked again with Gift card type Virtual and Combination but could not able to reproduce the issue. Please find the below screenshots of the steps performed: Steps performed:
Then you must probably disable the store credit to reproduce
Hi @zepgram , Thank you for the response. Verified the issue again on latest Magento 2.4-develop instance with enterprise edition modules enabled with below steps but the issue is still not reproducible. Steps performed:
Hi @zepgram , We are closing this issue as there has been no latest update on the same. Kindly reopen / create new issue if you are still facing any issues. Thank you.
Quality patch available here: https://experienceleague.adobe.com/docs/commerce-knowledge-base/kb/support-tools/patches/v1-1-32/acsd-51230-gift-card-account-is-deleted.html?lang=en
https://github.com/magento/quality-patches/blob/master/patches/commerce/ACSD-51230_2.4.3-p1.patch
Looks like this is reproducible :1st_place_medal:
Preconditions and environment
Steps to reproduce
Expected result
Actual result
Additional information
Take a look here, the reason is very simple magento/vendor/magento/module-gift-card-account/Model/Plugin/CreditmemoRepository.php
The error is here:
Should be:
This way, we exclude the gift card item who has been previously deleted from the object (because she's not targeted by our creditmemo)
Release note
No response
Triage and priority