Skip to content

Commit

Permalink
Fix: Missing property
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Mar 2, 2011
1 parent 2a3c726 commit f5ad269
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions htdocs/comm/propal/class/propal.class.php
Expand Up @@ -983,7 +983,7 @@ function fetch($rowid,$ref='')
*/
$sql = "SELECT d.rowid, d.fk_propal, d.description, d.price, d.tva_tx, d.localtax1_tx, d.localtax2_tx, d.qty, d.fk_remise_except, d.remise_percent, d.subprice, d.fk_product,";
$sql.= " d.info_bits, d.total_ht, d.total_tva, d.total_localtax1, d.total_localtax2, d.total_ttc, d.marge_tx, d.marque_tx, d.special_code, d.rang, d.product_type,";
$sql.= " p.ref, p.label, p.description as product_desc";
$sql.= ' p.ref as product_ref, p.description as product_desc, p.fk_product_type, p.label';
$sql.= " FROM ".MAIN_DB_PREFIX."propaldet as d";
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."product as p ON d.fk_product = p.rowid";
$sql.= " WHERE d.fk_propal = ".$this->id;
Expand Down Expand Up @@ -1027,10 +1027,11 @@ function fetch($rowid,$ref='')

$line->fk_product = $objp->fk_product;

$line->ref = $objp->product_ref;
$line->libelle = $objp->label; // TODO deprecated
$line->label = $objp->label; // Label produit
$line->product_desc = $objp->product_desc; // Description produit
$line->ref = $objp->ref;
$line->fk_product_type = $objp->fk_product_type;

$this->lines[$i] = $line;
//dol_syslog("1 ".$line->fk_product);
Expand Down

0 comments on commit f5ad269

Please sign in to comment.