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
In Issue #26965 the missing check for the Variable "VARIANT_ALLOW_STOCK_MOVEMENT_ON_VARIANT_PARENT" was discussed and fixed in the PR #26967
Now I propose a change in the Variants module settings page to allow the user to set this global variable. This would also be the first and only way to set this variable via an option.
Use case
When a user activates the variations module and checks the possible options inside the module the user will be able to see that there is a possibility to allow the stock movements for the variant parent products as well.
Suggested implementation
Use the same syntax as with the "HideProductCombinations":
…VEMENT_ON_VARIANT_PARENT" variable
This commit adds another option to the variants module to set the global variable "VARIANT_ALLOW_STOCK_MOVEMENT_ON_VARIANT_PARENT".
This variable allows the variant parent product to be used in stock movements.
…N_VARIANT_PARENT" variable (#27049)
This commit adds another option to the variants module to set the global variable "VARIANT_ALLOW_STOCK_MOVEMENT_ON_VARIANT_PARENT".
This variable allows the variant parent product to be used in stock movements.
Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
Feature Request
In Issue #26965 the missing check for the Variable "VARIANT_ALLOW_STOCK_MOVEMENT_ON_VARIANT_PARENT" was discussed and fixed in the PR #26967
Now I propose a change in the Variants module settings page to allow the user to set this global variable. This would also be the first and only way to set this variable via an option.
Use case
When a user activates the variations module and checks the possible options inside the module the user will be able to see that there is a possibility to allow the stock movements for the variant parent products as well.
Suggested implementation
Use the same syntax as with the "HideProductCombinations":
dolibarr/htdocs/variants/admin/admin.php
Lines 75 to 76 in e4536e0
Generally add a form with a yes/no option to the options page
Together with a similar syntax as in the Lines 40-56 one could implement and set the variable globally:
dolibarr/htdocs/variants/admin/admin.php
Lines 40 to 56 in e4536e0
Suggested steps
The text was updated successfully, but these errors were encountered: