From 621f42374cb4655f2b2a65dcf9e98ef89831d6eb Mon Sep 17 00:00:00 2001 From: Philippe Grand Date: Thu, 26 May 2011 13:22:26 +0000 Subject: [PATCH] fix : to get product ref within all pdf (propal , command, facture ) --- htdocs/lib/pdf.lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/lib/pdf.lib.php b/htdocs/lib/pdf.lib.php index fbe88e97d22..ae9cd7338e7 100644 --- a/htdocs/lib/pdf.lib.php +++ b/htdocs/lib/pdf.lib.php @@ -824,7 +824,7 @@ function pdf_getlinenum($object,$i,$outputlangs) /** - * Return line ref + * Return line product ref * @param object Object * @param $i Current line number * @param outputlang Object lang for output @@ -839,7 +839,7 @@ function pdf_getlineref($object,$i,$outputlangs) } else { - return dol_htmlentitiesbr($object->lines[$i]->ref); + return dol_htmlentitiesbr($object->lines[$i]->product_ref); } }