From e96f15ccc0f9cb5c5ab8836863e8b4e3cc681efa Mon Sep 17 00:00:00 2001
From: Regis Houssin <regis@dolibarr.fr>
Date: Fri, 26 May 2006 12:24:48 +0000
Subject: [PATCH] =?UTF-8?q?Fix:=20affiche=20la=20date=20pr=E9vue?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 htdocs/includes/boxes/box_actions.php | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/htdocs/includes/boxes/box_actions.php b/htdocs/includes/boxes/box_actions.php
index 4bcaac19d96..31c7f0ee31c 100644
--- a/htdocs/includes/boxes/box_actions.php
+++ b/htdocs/includes/boxes/box_actions.php
@@ -67,7 +67,7 @@ class box_actions extends ModeleBoxes {
 		
 		if ($user->rights->commercial->main->lire)
 		{
-			$sql = "SELECT a.label, a.id, ".$db->pdate("a.datea")." as da , a.percent,";
+			$sql = "SELECT a.label, a.id, ".$db->pdate("a.datep")." as dp , a.percent,";
 			$sql.= " s.nom, s.idp";
 			if (!$user->rights->commercial->client->voir && !$user->societe_id) $sql .= ", sc.fk_soc, sc.fk_user";
 			$sql.= " FROM ".MAIN_DB_PREFIX."actioncomm AS a ";
@@ -91,7 +91,7 @@ class box_actions extends ModeleBoxes {
 				{
 					$objp = $db->fetch_object($result);
 	
-					if (date("U",$objp->da)  < (time() - $conf->global->MAIN_DELAY_ACTIONS_TODO)) $late=img_warning($langs->trans("Late"));
+					if (date("U",$objp->dp)  < (time() - $conf->global->MAIN_DELAY_ACTIONS_TODO)) $late=img_warning($langs->trans("Late"));
 	
 	
 					$this->info_box_contents[$i][0] = array('align' => 'left',
@@ -105,7 +105,7 @@ class box_actions extends ModeleBoxes {
 					'url' => DOL_URL_ROOT."/comm/fiche.php?socid=".$objp->idp);
 	
 					$this->info_box_contents[$i][2] = array('align' => 'right',
-					'text' => dolibarr_print_date($objp->da));
+					'text' => dolibarr_print_date($objp->dp));
 	
 					$this->info_box_contents[$i][3] = array('align' => 'right',
 					'text' => $objp->percent. "%");
-- 
GitLab