From 2c24094d60f97feccfd1c87c832c33a207044c65 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 13 Jan 2016 13:54:11 +0100 Subject: [PATCH] Fix bad tab on bad home area page --- htdocs/fichinter/index.php | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/htdocs/fichinter/index.php b/htdocs/fichinter/index.php index 03b217f9a91..3e629e05789 100644 --- a/htdocs/fichinter/index.php +++ b/htdocs/fichinter/index.php @@ -57,8 +57,6 @@ llxHeader("",$langs->trans("Interventions"),$help_url); print load_fiche_titre($langs->trans("InterventionsArea")); -//print ''; -//print '
'; print '
'; @@ -204,14 +202,13 @@ if (! empty($conf->ficheinter->enabled)) } -//print '
'; print '
'; $max=5; /* - * Last modified orders + * Last modified interventions */ $sql = "SELECT f.rowid, f.ref, f.fk_statut, f.date_valid as datec, f.tms as datem,"; @@ -281,16 +278,17 @@ else dol_print_error($db); /* - * Orders to process + * interventions to process */ -if (! empty($conf->commande->enabled)) +/* +if (! empty($conf->fichinter->enabled)) { $sql = "SELECT f.rowid, f.ref, f.fk_statut, s.nom as name, s.rowid as socid"; $sql.=" FROM ".MAIN_DB_PREFIX."fichinter as f"; $sql.= ", ".MAIN_DB_PREFIX."societe as s"; if (!$user->rights->societe->client->voir && !$socid) $sql.= ", ".MAIN_DB_PREFIX."societe_commerciaux as sc"; $sql.= " WHERE f.fk_soc = s.rowid"; - $sql.= " AND f.entity IN (".getEntity('commande', 1).")"; + $sql.= " AND f.entity IN (".getEntity('fichinter', 1).")"; $sql.= " AND f.fk_statut = 1"; if ($socid) $sql.= " AND f.fk_soc = ".$socid; if (!$user->rights->societe->client->voir && !$socid) $sql.= " AND s.rowid = sc.fk_soc AND sc.fk_user = " .$user->id; @@ -303,7 +301,7 @@ if (! empty($conf->commande->enabled)) print ''; print ''; - print ''; + print ''; if ($num) { @@ -350,11 +348,10 @@ if (! empty($conf->commande->enabled)) } else dol_print_error($db); } +*/ - -//print '
'.$langs->trans("OrdersToProcess").' '.$num.'
'.$langs->trans("FichinterToProcess").' '.$num.'
'; print '
';