This commit is contained in:
Regis Houssin
2006-06-22 15:14:18 +00:00
parent 45b4e1348e
commit 5fdc6f1352
4 changed files with 13 additions and 8 deletions

View File

@@ -206,11 +206,11 @@ class pdf_einstein extends ModelePDFCommandes
$libelleproduitservice.=$com->lignes[$i]->desc;
}
// Si ligne associ<63>e <20> un code produit
if ($com->lignes[$i]->product_id)
if ($com->lignes[$i]->fk_product)
{
$prodser = new Product($this->db);
$prodser->fetch($com->lignes[$i]->product_id);
$prodser->fetch($com->lignes[$i]->fk_product);
if ($prodser->ref)
{
$libelleproduitservice=$langs->trans("Product")." ".$prodser->ref." - ".$libelleproduitservice;