diff --git a/htdocs/product/stats/card.php b/htdocs/product/stats/card.php index 0cae0f1b5f6..92c252db3e3 100644 --- a/htdocs/product/stats/card.php +++ b/htdocs/product/stats/card.php @@ -78,20 +78,17 @@ $form = new Form($db); $htmlother = new FormOther($db); $object = new Product($db); -if (!$id && empty($ref)) -{ +if (!$id && empty($ref)) { llxHeader("", $langs->trans("ProductStatistics")); $type = GETPOST('type', 'int'); $helpurl = ''; - if ($type == '0') - { + if ($type == '0') { $helpurl = 'EN:Module_Products|FR:Module_Produits|ES:Módulo_Productos'; //$title=$langs->trans("StatisticsOfProducts"); $title = $langs->trans("Statistics"); - } elseif ($type == '1') - { + } elseif ($type == '1') { $helpurl = 'EN:Module_Services_En|FR:Module_Services|ES:Módulo_Servicios'; //$title=$langs->trans("StatisticsOfServices"); $title = $langs->trans("Statistics"); @@ -111,13 +108,11 @@ if (!$id && empty($ref)) $title = $langs->trans('ProductServiceCard'); $helpurl = ''; $shortlabel = dol_trunc($object->label, 16); - if (GETPOST("type") == '0' || ($object->type == Product::TYPE_PRODUCT)) - { + if (GETPOST("type") == '0' || ($object->type == Product::TYPE_PRODUCT)) { $title = $langs->trans('Product')." ".$shortlabel." - ".$langs->trans('Statistics'); $helpurl = 'EN:Module_Products|FR:Module_Produits|ES:Módulo_Productos'; } - if (GETPOST("type") == '1' || ($object->type == Product::TYPE_SERVICE)) - { + if (GETPOST("type") == '1' || ($object->type == Product::TYPE_SERVICE)) { $title = $langs->trans('Service')." ".$shortlabel." - ".$langs->trans('Statistics'); $helpurl = 'EN:Module_Services_En|FR:Module_Services|ES:Módulo_Servicios'; } @@ -126,8 +121,7 @@ if (!$id && empty($ref)) } -if ($result && (!empty($id) || !empty($ref))) -{ +if ($result && (!empty($id) || !empty($ref))) { $head = product_prepare_head($object); $titre = $langs->trans("CardProduct".$object->type); $picto = ($object->type == Product::TYPE_SERVICE ? 'service' : 'product'); @@ -140,8 +134,7 @@ if ($result && (!empty($id) || !empty($ref))) dol_fiche_end(); } -if (empty($id) & empty($ref)) -{ +if (empty($id) && empty($ref)) { $h = 0; $head = array(); @@ -167,16 +160,14 @@ if (empty($id) & empty($ref)) } -if ($result || empty($id)) -{ +if ($result || empty($id)) { print '