@@ -200,12 +200,15 @@ if ($id || $ref)
// Number of subproducts
$prodsfather = $product->getFather(); //Parent Products
$product->get_sousproduits_arbo();
- print '| '.$langs->trans("AssociatedProductsNumber").' | '.count($product->get_arbo_each_prod()).' | ';
+ $nbofsubproducts=count($product->get_arbo_each_prod());
+ print '
| '.$langs->trans("AssociatedProductsNumber").' | ';
+ print $form->textwithpicto($nbofsubproducts, $langs->trans('IfZeroItIsNotAVirtualProduct'));
+ print ' | ';
dol_fiche_end();
- // List of subproducts
+ // List of products into this virtual product
$prods_arbo = $product->get_arbo_each_prod();
if (count($prods_arbo) > 0)
{
@@ -231,8 +234,10 @@ if ($id || $ref)
print '
';
}
- // Number of parent products
- print '| '.$langs->trans("ParentProductsNumber").' | '.count($prodsfather).' | ';
+ // Number of parent virtual products
+ print '
| '.$langs->trans("ParentProductsNumber").' | ';
+ print $form->textwithpicto(count($prodsfather), $langs->trans('IfZeroItIsNotUsedByVirtualProduct'));
+ print ' | ';
if (count($prodsfather) > 0)
{