magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Inaccurate Inventory Changes

Open chloe591 opened this issue 1 month ago • 5 comments

Preconditions and environment

  • Magento version: 2.4.7-p2
  • Anything else that would help a developer reproduce the bug

We’ve noticed an issue with our Magento inventory updates when orders are processed on our ecommerce site and through Square POS. In some cases, the quantity increases by 1 instead of decreasing, and in others, the change is by more than 1. In other cases, the quantity does not change at all when an item is sold.

Because of this issue, we have no way of accurately tracking our inventory, and all the work we have previously devoted to ensuring the stock levels are correct has been reversed.

Steps to reproduce

  1. Navigate to Magento Admin Portal
  2. Select Catalog
  3. Select a product and check the quantity
  4. Create an order either on Magento or Square POS with that item added
  5. Submit the order
  6. Go back to the product on Magento and check the quantity

Expected result

Order is placed successfully and the inventory for the products purchased is accurately updated (decreases by the quantity of the item purchased)

Actual result

At times, the quantity increases rather than decreases. Sometimes, the quantity does not change at all when an item is sold.

Additional information

No response

Release note

No response

Triage and priority

  • [x] Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • [ ] Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • [ ] Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • [ ] Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • [ ] Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

chloe591 avatar Nov 28 '25 17:11 chloe591

Hi @chloe591. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce.


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.

m2-assistant[bot] avatar Nov 28 '25 17:11 m2-assistant[bot]

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).
  • [ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
  • [ ] 3. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
  • [ ] 4. Verify that the issue is reproducible on 2.4-develop branch
    Details- 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.

m2-assistant[bot] avatar Nov 30 '25 13:11 m2-assistant[bot]

Hello @chloe591 ,

Thank you for the report and for your collaboration.

We have reviewed this issue in the latest 2.4-develop branch; however, we were not able to reproduce the problem on our side.

Please see the attached screenshot for reference.

Image

Steps Used to Reproduce

  • Navigate to the Magento Admin Portal
  • Go to Catalog → Products
  • Select a product and verify its current quantity
  • Create an order (either through Magento or Square POS) using that product
  • Submit the order
  • Return to the product page and check the updated quantity

During our testing, the inventory updated correctly, and we did not encounter the described behavior.

To help us investigate further, could you please provide additional details that may be required to replicate the issue? Specifically:

  • Any custom configurations you have applied
  • Integration or synchronization settings for Square POS
  • Any third-party modules or extensions in use
  • Steps or scenarios that consistently trigger the issue on your setup

As we currently lack sufficient information to reproduce the problem, we are marking this issue as “Needs Update.”

Thank You!

engcom-November avatar Dec 03 '25 11:12 engcom-November

Hi Anusha,

I hope you are well!

Thank you for reaching out. Here are our answers to your follow-up questions:

Any custom configurations you have applied? We do not use any custom configurations for inventory

Integration or synchronization settings for Square POS? We have not applied any additional synchronization settings for Square POS

Any third-party modules or extensions in use? We are using custom modules, but they are not related to inventory management

Please let me know if you need any more information from us, and thank you again!

Best regards, Chloe

On Wed, Dec 3, 2025 at 6:18 AM Anusha Thatishetty @.***> wrote:

engcom-November left a comment (magento/magento2#40328) https://github.com/magento/magento2/issues/40328#issuecomment-3606369496

Hello @chloe591 https://github.com/chloe591 ,

Thank you for the report and for your collaboration.

We have reviewed this issue in the latest 2.4-develop branch; however, we were not able to reproduce the problem on our side.

Please see the attached screenshot for reference. 40328.png (view on web) https://github.com/user-attachments/assets/e55a8faa-189a-4d74-b331-77a93b977211

Steps Used to Reproduce

  • Navigate to the Magento Admin Portal
  • Go to Catalog → Products
  • Select a product and verify its current quantity
  • Create an order (either through Magento or Square POS) using that product
  • Submit the order
  • Return to the product page and check the updated quantity

During our testing, the inventory updated correctly, and we did not encounter the described behavior.

To help us investigate further, could you please provide additional details that may be required to replicate the issue? Specifically:

  • Any custom configurations you have applied
  • Integration or synchronization settings for Square POS
  • Any third-party modules or extensions in use
  • Steps or scenarios that consistently trigger the issue on your setup

As we currently lack sufficient information to reproduce the problem, we are marking this issue as “Needs Update.”

Thank You!

— Reply to this email directly, view it on GitHub https://github.com/magento/magento2/issues/40328#issuecomment-3606369496, or unsubscribe https://github.com/notifications/unsubscribe-auth/B22OUERSCSMU5BXJK6PMJH3373BGXAVCNFSM6AAAAACNPYUX26VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMMBWGM3DSNBZGY . You are receiving this because you were mentioned.Message ID: @.***>

chloe591 avatar Dec 04 '25 22:12 chloe591

Hello @chloe591 ,

Thank you for your response.

We followed the same steps on our end; however, we were unable to reproduce the issue. If possible please share us more information and Screencast for the reference

Thank you!

engcom-November avatar Dec 08 '25 12:12 engcom-November