You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: