Skip to content

[Multistore] - BO - Order page - An alert "Error! There are not enough products in stock." is displayed when updating the product quantity #21987

Closed
Listed in
@khouloudbelguith

Description

@khouloudbelguith
Contributor

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:

  1. Enable Multishop Context.
  2. Go to BO > Advanced Parameters > Multistore page
  3. Create a new Group GroupA
    image
  4. Create a new shop ShopA related to the GroupA
    image
  5. Create a productA in all shops
  6. Quantity of the productA in the shopA = 12
  7. ShopA => create an order from the FO with the last product created (quantity ordered = 1)
  8. Go to BO > Advanced Parameters > Multistore page
  9. Edit the Group by default Default
  10. Enable "Share available quantities to sell"
    image
  11. Go Back to the Order => last order created => All shops selected
  12. Try to increase the quantity => you have an alert
"Error!
There are not enough products in stock."

But the Available quantity > 0
image

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

Activity

added
BugType: Bug
MultistoreLabel: Which BO under menu is concerned
ReadyStatus: Issue is ready to be worked on
BOCategory: Back Office
OrderComponent: Which BO section is concerned
migrationsymfony migration project
MajorSeverity: major bug > https://build.prestashop.com/news/severity-classification
on Nov 18, 2020
added
Nice-to-haveKanban prioritization: issue could be included in next version
on Nov 19, 2020
added this to the 1.7.7.1 milestone on Nov 19, 2020
self-assigned this
on Dec 3, 2020
added
PR availableSolution: issue is being addressed
and removed
ReadyStatus: Issue is ready to be worked on
on Dec 3, 2020
added
Nice-to-haveKanban prioritization: issue could be included in next version
and removed
Nice-to-haveKanban prioritization: issue could be included in next version
on Dec 15, 2020
modified the milestones: 1.7.7.1, 1.7.7.2 on Dec 23, 2020
modified the milestones: 1.7.7.2, 1.7.7.3 on Feb 12, 2021
modified the milestones: 1.7.7.3, 1.7.7.4 on Mar 22, 2021
Progi1984

Progi1984 commented on Mar 31, 2021

@Progi1984
Member

Fixed by #22228

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

1.7.7.xBranchBOCategory: Back OfficeBugType: BugFixedResolution: issue closed because fixedMajorSeverity: major bug > https://build.prestashop.com/news/severity-classificationMultistoreLabel: Which BO under menu is concernedNice-to-haveKanban prioritization: issue could be included in next versionOrderComponent: Which BO section is concernedPR availableSolution: issue is being addressedRegressionType: regressionmigrationsymfony migration project

Type

No type

Projects

No projects

Relationships

None yet

    Development

    Participants

    @eternoendless@Progi1984@marionf@khouloudbelguith@MatShir

    Issue actions

      [Multistore] - BO - Order page - An alert "Error! There are not enough products in stock." is displayed when updating the product quantity · Issue #21987 · PrestaShop/PrestaShop