Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch quantity is used in inventory even when batch module is disabled #20733

Closed
lainwir3d opened this issue Apr 28, 2022 · 0 comments
Closed
Labels
Bug This is a bug (something does not work as expected)

Comments

@lainwir3d
Copy link
Contributor

Bug

When creating / validating an inventory, the products lines should be filled with expected quantity from stock, but if the batch module has been enabled and used in the past, the expected quantity if filled in with old batch stock.

Environment Version

15.0.1

Environment OS

CentOS Stream 8

Environment Web server

httpd 2.4.37

Environment PHP

7.3.20

Environment Database

mariadb-10.3.28

Environment URL(s)

product/inventory/inventory.php

Expected and actual behavior

When creating / validating an inventory, the products lines should be filled with expected quantity from stock, but if the batch module has been enabled and used in the past, the expected quantity if filled in with old batch stock.

Steps to reproduce the behavior

  • Enable batch module
  • Fill in batch stock info for some products
  • Disable batch module
  • Create and validate an inventory

The batch stock is used for those products.

Attached files

No response

@lainwir3d lainwir3d added the Bug This is a bug (something does not work as expected) label Apr 28, 2022
eldy added a commit that referenced this issue May 1, 2022
…_20733

FIX #20733 Inventory: Do not use batch qty even if present if batch module is disabled.
@eldy eldy closed this as completed in f0e65e8 May 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug This is a bug (something does not work as expected)
Projects
None yet
Development

No branches or pull requests

1 participant