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

[TakePOS] Stock movement for batch numbers containing letters #29418

Open
WillJEANCOLAS opened this issue Apr 19, 2024 · 0 comments
Open

[TakePOS] Stock movement for batch numbers containing letters #29418

WillJEANCOLAS opened this issue Apr 19, 2024 · 0 comments
Labels
Bug This is a bug (something does not work as expected)

Comments

@WillJEANCOLAS
Copy link

Bug

TakePOS invoices for products containing letters in their batch number generate no stock movement.
In my case, the batch numbers are in the form "AA-BB-8-123".

The invoice is validated, but the stock is not decremented and an error is generated in the logs:
ERR MouvementStock::createBatch error invalid param dluo
ERR MouvementStock::_create error code=1

The error is from the createBatch() function in the dolibarr/htdocs/product/stock/class/mouvementstock.class.php file, which performs an is_numeric() and is_array() check that consistently fails.

Dolibarr Version

19.0.1

Environment PHP

8.1.27

Environment Database

MariaDB 10.3.39

Steps to reproduce the behavior and expected behavior

No response

Attached files

No response

@WillJEANCOLAS WillJEANCOLAS added the Bug This is a bug (something does not work as expected) label Apr 19, 2024
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