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

Can't create shipment with a virtual product whose component is a serial number #33144

Open
lvessiller-opendsi opened this issue Feb 19, 2025 · 0 comments
Labels
Bug This is a bug (something does not work as expected)

Comments

@lvessiller-opendsi
Copy link
Contributor

lvessiller-opendsi commented Feb 19, 2025

Bug

When you enable virtual products and if you create a component as serial number and you put it in a virtual product you can't ship this virtual product.

Dolibarr Version

18.0 until develop

Environment PHP

PHP 7.4 and 8.2

Environment Database

MySQL

Steps to reproduce the behavior and expected behavior

  1. Create a product and add quantities in stock :
    Image

  2. Create a product using serial number and add quantities in stock :
    Image

  3. Create a virtual product and add theses two previous products as components :
    Image

  4. Create a customer order with this virtual product :
    Image

  5. Create a shipment from this customer order :
    Image

  6. Then click on create button without choosing warehouse :
    Image

  7. You can't create the shipment and you got this error message :
    Image

But you can't choose any warehouse even if you got enough components in a warehouse.
And even if you set the const "STOCK_ALLOW_NEGATIVE_TRANSFER" in stock parameter.
Image

Attached files

No response

@lvessiller-opendsi lvessiller-opendsi added the Bug This is a bug (something does not work as expected) label Feb 19, 2025
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