dolibarr-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dolibarr-cvs] dolibarr/htdocs facture.class.php


From: Regis Houssin
Subject: [Dolibarr-cvs] dolibarr/htdocs facture.class.php
Date: Wed, 07 Jun 2006 13:54:49 +0000

CVSROOT:        /cvsroot/dolibarr
Module name:    dolibarr
Changes by:     Regis Houssin <hregis>  06/06/07 13:54:49

Modified files:
        htdocs         : facture.class.php 

Log message:
        Récupération de l'auteur de la facture

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/facture.class.php?cvsroot=dolibarr&r1=1.177&r2=1.178

Patches:
Index: facture.class.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/facture.class.php,v
retrieving revision 1.177
retrieving revision 1.178
diff -u -b -r1.177 -r1.178
--- facture.class.php   7 Jun 2006 13:40:30 -0000       1.177
+++ facture.class.php   7 Jun 2006 13:54:48 -0000       1.178
@@ -20,7 +20,7 @@
  * along with this program; if not, write to the Free Software
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id: facture.class.php,v 1.177 2006/06/07 13:40:30 hregis Exp $
+ * $Id: facture.class.php,v 1.178 2006/06/07 13:54:48 hregis Exp $
  * $Source: /cvsroot/dolibarr/dolibarr/htdocs/facture.class.php,v $
  */
 
@@ -28,7 +28,7 @@
         \file       htdocs/facture.class.php
         \ingroup    facture
         \brief      Fichier de la classe des factures clients
-        \version    $Revision: 1.177 $
+        \version    $Revision: 1.178 $
 */
 
 require_once(DOL_DOCUMENT_ROOT .'/notify.class.php');
@@ -347,6 +347,23 @@
                                $this->modelpdf               = $obj->model_pdf;
                                $this->lignes                 = array();
 
+                               
+                               if ($this->user_author)
+        {
+             $sql = "SELECT name, firstname";
+             $sql.= " FROM ".MAIN_DB_PREFIX."user";
+             $sql.= " WHERE rowid = ".$this->user_author;
+                       
+             $resqluser = $this->db->query($sql);
+                       
+             if ($resqluser)
+             {
+                $obju = $this->db->fetch_object($resqluser);
+                $this->user_author_name      = $obju->name;
+                $this->user_author_firstname = $obju->firstname;
+             }
+        }
+                               
                                if ($this->statut == 0)
                                {
                                        $this->brouillon = 1;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]