[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Dolibarr-cvs] dolibarr/htdocs/commande commande.class.php
From: |
Regis Houssin |
Subject: |
[Dolibarr-cvs] dolibarr/htdocs/commande commande.class.php |
Date: |
Tue, 20 Jun 2006 16:42:01 +0000 |
CVSROOT: /cvsroot/dolibarr
Module name: dolibarr
Changes by: Regis Houssin <hregis> 06/06/20 16:42:01
Modified files:
htdocs/commande: commande.class.php
Log message:
fix: le label du produit n'était plus récupéré
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/dolibarr/htdocs/commande/commande.class.php?cvsroot=dolibarr&r1=1.167&r2=1.168
Patches:
Index: commande.class.php
===================================================================
RCS file: /cvsroot/dolibarr/dolibarr/htdocs/commande/commande.class.php,v
retrieving revision 1.167
retrieving revision 1.168
diff -u -b -r1.167 -r1.168
--- commande.class.php 20 Jun 2006 16:18:24 -0000 1.167
+++ commande.class.php 20 Jun 2006 16:42:01 -0000 1.168
@@ -18,7 +18,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: commande.class.php,v 1.167 2006/06/20 16:18:24 hregis Exp $
+ * $Id: commande.class.php,v 1.168 2006/06/20 16:42:01 hregis Exp $
* $Source: /cvsroot/dolibarr/dolibarr/htdocs/commande/commande.class.php,v $
*/
@@ -26,7 +26,7 @@
\file htdocs/commande/commande.class.php
\ingroup commande
\brief Fichier des classes de commandes
- \version $Revision: 1.167 $
+ \version $Revision: 1.168 $
*/
require_once(DOL_DOCUMENT_ROOT ."/commonobject.class.php");
@@ -874,7 +874,6 @@
$this->lignes = array();
$sql = 'SELECT l.fk_product, l.fk_commande, l.description,
l.price, l.qty, l.rowid, l.tva_tx,';
$sql.= ' l.remise_percent, l.subprice, l.rang, l.coef, l.label';
- $sql.= ' p.ref as product_ref, p.label as product_libelle,
p.description as product_desc';
$sql.= ' FROM '.MAIN_DB_PREFIX.'commandedet as l';
$sql.= ' LEFT JOIN '.MAIN_DB_PREFIX.'product as p ON (p.rowid =
l.fk_product)';
$sql.= ' WHERE l.fk_commande = '.$this->id;
@@ -893,7 +892,6 @@
$ligne = new CommandeLigne($this->db);
$ligne->rowid = $objp->rowid;
$ligne->id = $objp->rowid;
// \deprecated
- $ligne->label = $objp->label;
$ligne->fk_commande = $objp->fk_commande;
$ligne->commande_id = $objp->fk_commande;
// \deprecated
$ligne->desc = $objp->description;
// Description ligne
@@ -906,7 +904,8 @@
$ligne->coef = $objp->coef;
$ligne->rang = $objp->rang;
- $ligne->libelle =
$objp->product_libelle; // Label produit
+ $ligne->libelle = $objp->label;
// Label ligne
+
$ligne->product_desc = $objp->product_desc;
// Description produit
$ligne->ref = $objp->product_ref;
@@ -1835,6 +1834,7 @@
var $fk_facture;
var $desc; // Description ligne
var $product_id; // Id produit prédéfini
+ var $label;
var $qty;
var $tva_tx;
- [Dolibarr-cvs] dolibarr/htdocs/commande commande.class.php, Regis Houssin, 2006/06/01
- [Dolibarr-cvs] dolibarr/htdocs/commande commande.class.php, Regis Houssin, 2006/06/01
- [Dolibarr-cvs] dolibarr/htdocs/commande commande.class.php, Regis Houssin, 2006/06/08
- [Dolibarr-cvs] dolibarr/htdocs/commande commande.class.php, Regis Houssin, 2006/06/08
- [Dolibarr-cvs] dolibarr/htdocs/commande commande.class.php, Regis Houssin, 2006/06/09
- [Dolibarr-cvs] dolibarr/htdocs/commande commande.class.php, Regis Houssin, 2006/06/20
- [Dolibarr-cvs] dolibarr/htdocs/commande commande.class.php, Regis Houssin, 2006/06/20
- [Dolibarr-cvs] dolibarr/htdocs/commande commande.class.php,
Regis Houssin <=
- [Dolibarr-cvs] dolibarr/htdocs/commande commande.class.php, Regis Houssin, 2006/06/20
- [Dolibarr-cvs] dolibarr/htdocs/commande commande.class.php, Regis Houssin, 2006/06/22
- [Dolibarr-cvs] dolibarr/htdocs/commande commande.class.php, Regis Houssin, 2006/06/22
- [Dolibarr-cvs] dolibarr/htdocs/commande commande.class.php, Regis Houssin, 2006/06/26
- [Dolibarr-cvs] dolibarr/htdocs/commande commande.class.php, Regis Houssin, 2006/06/27
- [Dolibarr-cvs] dolibarr/htdocs/commande commande.class.php, Regis Houssin, 2006/06/30