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

Product kits - Virtual stock wrongly calculated and referent objects not shown next to a supplier order #28920

Open
thibdrev opened this issue Mar 17, 2024 · 0 comments
Labels
Bug This is a bug (something does not work as expected)

Comments

@thibdrev
Copy link
Contributor

thibdrev commented Mar 17, 2024

Bug

Next to the supplier order of a kit:

  • the virtual stock of the simple product composing this kit is wrongly calculated (in tab "product" > "stock").
  • the referent objects information are not correctly listed (in tab "product" > "referent objects")

Dolibarr Version

18.0.5 and 19.0.1

Environment PHP

8.0

Environment Database

mariaDB

Steps to reproduce the behavior and expected behavior

  1. Create a simple product POMME1.
  2. Create a kit product POMME4 made of qty=4 of POMME1
  3. Create a supplier order for qty=3 of the kit POMME4 (validate and pass the order)
  4. Notice the virtual stocks shown in the STOCK tab:
    • The virtual stock of the kit is correct: POMME4_Stock_virtuel
    • The virtual stock of the simple product is NOT correct (it should be 3 * 4 = 12): POMME1_Stock_virtuel
  5. Receive the order in stocks
  6. Notice the real and virtual stocks shown in the STOCK tab:
    • Both real and virtual stocks of the kit are correct: POMME4_Stock_réel
    • Both real and virtual stocks of the simple product are correct: POMME1_Stock_réel
  7. Notice the supplier orders in the REFERENT OBJECTS tab:
    • The supplier orders info are shown for the kit: POMME4_Objets_Référents
    • The supplier orders info are NOT shown for the simple product: POMME1_Objets_Référents
@thibdrev thibdrev added the Bug This is a bug (something does not work as expected) label Mar 17, 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