# Problems understanding virtual product functions.

**URL:** <https://www.dolibarr.org/forum/t/problems-understanding-virtual-product-functions/18074>\
**Category:** Using my Dolibarr\
**Created:** [November 8, 2019, 12:49pm UTC](https://www.dolibarr.org/forum/t/problems-understanding-virtual-product-functions/18074 "2019-11-08T12:49:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rekagi](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/rekagi/32/558_2.png) [@Rekagi](https://www.dolibarr.org/forum/u/Rekagi)\
**Post date:** [November 8, 2019, 12:49pm UTC](https://www.dolibarr.org/forum/t/problems-understanding-virtual-product-functions/18074/1 "2019-11-08T12:49:41Z")

</div>

Good day to you all.

I am a new user of dolibar currently using version 10.0.3.

the problem I have is as folows :

I have a product a box of different candy lets call it CANDY ASSORT.  
It virtual product tab it is made of or contains these products:  
1 cardboard candy Box  
1 candy caramel  
1 candy vanilla  
1 candy coffee  
All are virtual products are set to change stock as parent product changes that is what I need and I understand how it works.

the problem:  
I have 0 stock of CANDY ASSORT , but I have 10 Stock of every virtual product it is made of. That means I can make 10 peaces of CANDY ASSORT product.  
If I change, manualy/by hand using stock correction, the number of product CANDY ASSORT to 10. Ammount of virtual product (candy caramel vanilla coffee and box) INCREAS by 10. Is there away or workaround to make it not hapen? or even better make it decrease CHILDE products if I INCREAS parent product in some particular way. lets say manufacture the goods ? may be any module anyone can suggest to use for this ?

ANY HELP WILL BE MUCH Appreciated

---

<div class="post-metadata">

**Author:** ![Akkz](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/akkz/32/3321_2.png) [@Akkz](https://www.dolibarr.org/forum/u/Akkz)\
**Post date:** [November 14, 2019, 3:12pm UTC](https://www.dolibarr.org/forum/t/problems-understanding-virtual-product-functions/18074/2 "2019-11-14T15:12:04Z")

</div>

Hi ,

Firstly, create virtual product CANDY ASSORT with subproducts as 1 cardboard candy Box, 1 candy caramel, 1 candy vanilla, 1 candy coffee . Untick increase / decrease with change in parent product ( screenshot attached).

 ![Screenshot242_LI.jpg](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/1/1e8e4ec9f10f7389d55e71075341cc8596ae5b14.jpeg)

Then create same composition in the factory module (screenshot attached).

 ![Screenshot245_LI.jpg](https://www.dolibarr.org/forum/uploads/dolibarrorg/original/2X/d/d5fb3ef284b99031718f24c7c38973a6aec8a537.jpeg)

Create a production Order for 10 CANDY ASSORT and when it is finished.  
Before: You had 0 CANDY ASSORT and 10 cardboard candy Box, 10 candy caramel, 10 candy vanilla, 10 candy coffee  
After: You will have 10 CANDY ASSORT and 0 cardboard candy Box, 0 candy caramel, 0 candy vanilla, 0 candy coffee

See the demo of factory module and can install if you need:  
[https://www.dolistore.com/en/products-services-or-stock/386-Factory--computer-assisted-manufacturing--CAPM-CAMM--for-Dolibarr.html?search\_query=fac&results=42](https://www.dolistore.com/en/products-services-or-stock/386-Factory--computer-assisted-manufacturing--CAPM-CAMM--for-Dolibarr.html?search_query=fac&results=42)

---

<div class="post-metadata">

**Author:** ![Rekagi](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/rekagi/32/558_2.png) [@Rekagi](https://www.dolibarr.org/forum/u/Rekagi)\
**Post date:** [November 15, 2019, 2:05pm UTC](https://www.dolibarr.org/forum/t/problems-understanding-virtual-product-functions/18074/3 "2019-11-15T14:05:11Z")

</div>

THANK YOU ! That solves my problem 100%

---

<div class="post-metadata">

**Author:** ![jonbendtsen](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/j/977dab/32.png) [@jonbendtsen](https://www.dolibarr.org/forum/u/jonbendtsen)\
**Post date:** [September 11, 2023, 7:44pm UTC](https://www.dolibarr.org/forum/t/problems-understanding-virtual-product-functions/18074/4 "2023-09-11T19:44:45Z")

</div>

I can not find “Factory” in my product, which module do I need to enable?

---

<div class="post-metadata">

**Author:** ![ksar](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/ksar/32/514_2.png) [@ksar](https://www.dolibarr.org/forum/u/ksar)\
**Post date:** [September 11, 2023, 8:36pm UTC](https://www.dolibarr.org/forum/t/problems-understanding-virtual-product-functions/18074/5 "2023-09-11T20:36:29Z")

</div>

Hello,

Factory is an external module : [Factory : computer assisted manufacturing (CAPM/CAMM) for Dolibarr](https://www.dolistore.com/en/products-services-or-stock/386-Factory---computer-assisted-manufacturing--CAPM-CAMM--for-Dolibarr.html)

Today, in the core, there is also similar functionalities with Manufacturing Order module.
