Description
Describe the bug
"Share available quantities to sell" option is enabled, "All shops" is selected, in the BO > Orders > Order page > when we try to update the product quantity => an alert "Error! There are not enough products in stock." but the Available quantity > 0
Steps to Reproduce
Steps to reproduce the behavior:
- Enable Multishop Context.
- Go to BO > Advanced Parameters > Multistore page
- Create a new Group
GroupA
- Create a new shop
ShopA
related to theGroupA
- Create a
productA
in all shops - Quantity of the
productA
in the shopA = 12 - ShopA => create an order from the FO with the last product created (quantity ordered = 1)
- Go to BO > Advanced Parameters > Multistore page
- Edit the Group by default
Default
- Enable "Share available quantities to sell"
- Go Back to the Order => last order created => All shops selected
- Try to increase the quantity => you have an alert
"Error!
There are not enough products in stock."
But the Available quantity > 0
If you select the shopA => ok
PS: 1768: https://drive.google.com/file/d/1Q7ScfJ51BsYZWb8cMJA8pIuPeiN5H4si/view?usp=sharing => ok
Additional information
- PrestaShop version: 177x
- PHP version: 7.2
Metadata
Metadata
Assignees
Labels
BranchCategory: Back OfficeType: BugResolution: issue closed because fixedSeverity: major bug > https://build.prestashop.com/news/severity-classificationLabel: Which BO under menu is concernedKanban prioritization: issue could be included in next versionComponent: Which BO section is concernedSolution: issue is being addressedType: regressionsymfony migration project
Activity
Progi1984 commentedon Mar 31, 2021
Fixed by #22228