From b35e2e825e97181d0be922e9740e58cdac97309d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 3 Jul 2011 12:55:33 +0000 Subject: [PATCH] Fix: Do not show warning for event finished --- htdocs/includes/boxes/box_actions.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/includes/boxes/box_actions.php b/htdocs/includes/boxes/box_actions.php index 82ec7f2f43a..c09d95ecf16 100644 --- a/htdocs/includes/boxes/box_actions.php +++ b/htdocs/includes/boxes/box_actions.php @@ -22,7 +22,7 @@ * \file htdocs/includes/boxes/box_actions.php * \ingroup actions * \brief Module to build boxe for events - * \version $Id: box_actions.php,v 1.47 2011/07/03 12:53:37 eldy Exp $ + * \version $Id: box_actions.php,v 1.48 2011/07/03 12:55:33 eldy Exp $ */ include_once(DOL_DOCUMENT_ROOT."/includes/boxes/modules_boxes.php"); @@ -79,7 +79,7 @@ class box_actions extends ModeleBoxes { $sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON a.fk_soc = s.rowid AND s.entity IN (0, ".$conf->entity.")"; $sql.= " WHERE a.fk_action = ta.id"; $sql.= " AND a.entity = ".$conf->entity; - $sql.= " AND a.percent <> 100"; + $sql.= " AND a.percent >= 0 AND a.percent < 100"; if (!$user->rights->societe->client->voir && !$user->societe_id) $sql.= " AND s.rowid = sc.fk_soc AND sc.fk_user = " .$user->id; if($user->societe_id) $sql.= " AND s.rowid = ".$user->societe_id; $sql.= " ORDER BY a.datec DESC";