This commit is contained in:
Laurent Destailleur 2016-09-12 02:57:09 +02:00
parent 9ff1809f85
commit 359ebed882

View File

@ -59,13 +59,26 @@ include DOL_DOCUMENT_ROOT.'/core/actions_setnotes.inc.php'; // Must be include,
* View
*/
$form = new Form($db);
$helpurl='';
if (GETPOST("type") == '0' || ($object->type == Product::TYPE_PRODUCT)) $helpurl='EN:Module_Products|FR:Module_Produits|ES:Módulo_Productos';
if (GETPOST("type") == '1' || ($object->type == Product::TYPE_SERVICE)) $helpurl='EN:Module_Services_En|FR:Module_Services|ES:Módulo_Servicios';
$form = new Form($db);
$title = $langs->trans('ProductServiceCard');
$shortlabel = dol_trunc($object->label,16);
if (GETPOST("type") == '0' || ($object->type == Product::TYPE_PRODUCT))
{
$title = $langs->trans('Product')." ". $shortlabel ." - ".$langs->trans('Notes');
$helpurl='EN:Module_Products|FR:Module_Produits|ES:Módulo_Productos';
}
if (GETPOST("type") == '1' || ($object->type == Product::TYPE_SERVICE))
{
$title = $langs->trans('Service')." ". $shortlabel ." - ".$langs->trans('Notes');
$helpurl='EN:Module_Services_En|FR:Module_Services|ES:Módulo_Servicios';
}
llxHeader('', $langs->trans("ThirdParty").' - '.$langs->trans("Notes"), $help_url);
llxHeader('', $title, $help_url);
if ($id > 0 || ! empty($ref))
{