-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Description
Backend
- Magento version: 2.4.6-p3
- Module version: 1.3.2
Settings / Sale Rules
- Have a example rule that will trigger
Steps to reproduce
- Create a backend order
- Add a product
- Qty will be doubled if freeproduct rule will be triggered (causing "not available" for stock = 1 products)
Expected result
- My added product will be added with the configured amount
Actual result
- Added products have double qty in backend order
This only applies for backend orders. The issue comes from commit e7d3e96. If quote items are set "again" from the quotes items collection, the following quote repo save operation will trigger a second addProduct on the quote for the items set resulting in an update on the item's qty with the qty of the initial request.
After commenting out the lines in the mentioned commit, everything seems to work fine again. Maybe this is some 2.4.6-p3 thing, I didn't test intensivly.
iranimij
Metadata
Metadata
Assignees
Labels
No labels