From 7d731b05e9a46f23514eaef0339b85da7e235d9a Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 12 Feb 2024 06:08:22 +0100 Subject: [PATCH] Tooltip --- htdocs/langs/en_US/products.lang | 5 ++--- htdocs/variants/admin/admin.php | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/htdocs/langs/en_US/products.lang b/htdocs/langs/en_US/products.lang index cec42e8ba8e..77355fce385 100644 --- a/htdocs/langs/en_US/products.lang +++ b/htdocs/langs/en_US/products.lang @@ -433,8 +433,7 @@ ModifyValueExtrafields = Modify value of an extrafield OrProductsWithCategories=Or products with tags/categories WarningTransferBatchStockMouvToGlobal = If you want to deserialize this product, all its serialized stock will be transformed into global stock WarningConvertFromBatchToSerial=If you currently have a quantity higher or equal to 2 for the product, switching to this choice means you will still have a product with different objects of the same batch (while you want a unique serial number). The duplicate will remain until an inventory or a manual stock movement to fix this is done. - -AllowStockMovementVariantParent=Allow stock movements on the variant parent - +AllowStockMovementVariantParent=Also records stock movements on parent products of variant products +AllowStockMovementVariantParentHelp=By default, a parent of a variant is a virtual product, so no stock is managed for it. By enabling this option, a stock will be managed for parent products and each time a stock quantity is modified for a variant product, the same quantity will be modified for the parent product. You should not need this option, except if you are using variant to manage the same product than parent (but with different descriptions, prices...) ConfirmSetToDraftInventory=Are you sure you want to go back to Draft status?
The quantities currently set in the inventory will be reset. diff --git a/htdocs/variants/admin/admin.php b/htdocs/variants/admin/admin.php index ca2ac29d084..fe9e735a2b0 100644 --- a/htdocs/variants/admin/admin.php +++ b/htdocs/variants/admin/admin.php @@ -88,7 +88,7 @@ if (isset($conf->global->PRODUIT_ATTRIBUTES_SEPARATOR)) { } print ''; -print ''.$langs->trans('AllowStockMovementVariantParent').''; +print ''.$form->textwithpicto($langs->trans('AllowStockMovementVariantParent'), $langs->trans('AllowStockMovementVariantParentHelp')).''; print $form->selectyesno("VARIANT_ALLOW_STOCK_MOVEMENT_ON_VARIANT_PARENT", getDolGlobalString('VARIANT_ALLOW_STOCK_MOVEMENT_ON_VARIANT_PARENT'), 1).''; print '';