Update productMargins.php

$helpurl  =>  $help_url
This commit is contained in:
UT from dolibit 2021-04-06 13:12:29 +02:00 committed by GitHub
parent 767aa605a2
commit 8bb0d57645
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,18 +76,18 @@ if ($id > 0 || !empty($ref)) {
$result = $object->fetch($id, $ref);
$title = $langs->trans('ProductServiceCard');
$helpurl = '';
$help_url = '';
$shortlabel = dol_trunc($object->label, 16);
if (GETPOST("type") == '0' || ($object->type == Product::TYPE_PRODUCT)) {
$title = $langs->trans('Product')." ".$shortlabel." - ".$langs->trans('Card');
$helpurl = 'EN:Module_Products|FR:Module_Produits|ES:Módulo_Productos';
$help_url = '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('Card');
$helpurl = 'EN:Module_Services_En|FR:Module_Services|ES:Módulo_Servicios';
$help_url = 'EN:Module_Services_En|FR:Module_Services|ES:Módulo_Servicios';
}
llxHeader('', $title, $helpurl);
llxHeader('', $title, $help_url);
/*
* En mode visu