Ajout gestion du code produit
This commit is contained in:
parent
126d03a68b
commit
0d4e2798a7
@ -264,7 +264,7 @@ class Propal
|
|||||||
* Lignes
|
* Lignes
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$sql = "SELECT d.qty, p.description, p.ref, p.price, d.tva_tx";
|
$sql = "SELECT d.qty, p.description, p.ref, p.price, d.tva_tx, p.rowid";
|
||||||
$sql .= " FROM llx_propaldet as d, llx_product as p";
|
$sql .= " FROM llx_propaldet as d, llx_product as p";
|
||||||
$sql .= " WHERE d.fk_propal = ".$this->id ." AND d.fk_product = p.rowid";
|
$sql .= " WHERE d.fk_propal = ".$this->id ." AND d.fk_product = p.rowid";
|
||||||
|
|
||||||
@ -283,6 +283,7 @@ class Propal
|
|||||||
$ligne->ref = $objp->ref;
|
$ligne->ref = $objp->ref;
|
||||||
$ligne->tva_tx = $objp->tva_tx;
|
$ligne->tva_tx = $objp->tva_tx;
|
||||||
$ligne->price = $objp->price;
|
$ligne->price = $objp->price;
|
||||||
|
$ligne->product_id = $objp->rowid;
|
||||||
$this->lignes[$i] = $ligne;
|
$this->lignes[$i] = $ligne;
|
||||||
$i++;
|
$i++;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user