Add an additional description for the category products
This commit is contained in:
parent
614f376392
commit
dfdc9da781
@ -1032,6 +1032,22 @@ function pdf_getlinedesc($object,$i,$outputlangs,$hideref=0,$hidedesc=0,$issuppl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Add an additional description for the category products
|
||||||
|
if ($conf->categorie->enabled)
|
||||||
|
{
|
||||||
|
include_once DOL_DOCUMENT_ROOT.'/categories/class/categorie.class.php';
|
||||||
|
$categstatic=new Categorie($db);
|
||||||
|
// recovering the list of all the categories linked to product
|
||||||
|
$tblcateg=$categstatic->containing($idprod,0);
|
||||||
|
foreach ($tblcateg as $cate)
|
||||||
|
{
|
||||||
|
// Adding the descriptions if they are filled
|
||||||
|
$desccateg=$cate->add_description;
|
||||||
|
if ($desccateg)
|
||||||
|
$libelleproduitservice.='__N__'.$desccateg;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (! empty($object->lines[$i]->date_start) || ! empty($object->lines[$i]->date_end))
|
if (! empty($object->lines[$i]->date_start) || ! empty($object->lines[$i]->date_end))
|
||||||
{
|
{
|
||||||
$format='day';
|
$format='day';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user