From d02d6e092a21031c94b6c6b9a4af6cd7e079b211 Mon Sep 17 00:00:00 2001
From: Laurent Destailleur <eldy@users.sourceforge.net>
Date: Sun, 13 Jun 2010 21:03:29 +0000
Subject: [PATCH] Add last change date in customer orders

---
 htdocs/commande/class/commande.class.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/htdocs/commande/class/commande.class.php b/htdocs/commande/class/commande.class.php
index a9960de5e26..8457cce0b1b 100644
--- a/htdocs/commande/class/commande.class.php
+++ b/htdocs/commande/class/commande.class.php
@@ -2196,7 +2196,7 @@ class Commande extends CommonObject
 	 */
 	function info($id)
 	{
-		$sql = 'SELECT c.rowid, date_creation as datec,';
+		$sql = 'SELECT c.rowid, date_creation as datec, tms as datem,';
 		$sql.= ' date_valid as datev,';
 		$sql.= ' date_cloture as datecloture,';
 		$sql.= ' fk_user_author, fk_user_valid, fk_user_cloture';
@@ -2231,6 +2231,7 @@ class Commande extends CommonObject
 				}
 
 				$this->date_creation     = $this->db->jdate($obj->datec);
+				$this->date_modification = $this->db->jdate($obj->datem);
 				$this->date_validation   = $this->db->jdate($obj->datev);
 				$this->date_cloture      = $this->db->jdate($obj->datecloture);
 			}
-- 
GitLab