Fix: bad name

This commit is contained in:
Regis Houssin 2010-10-27 17:36:02 +00:00
parent e1bebd3c3c
commit 287a2a36c5

View File

@ -468,12 +468,12 @@ function pdf_writelinedesc(&$pdf,$object,$i,$outputlangs,$w,$h,$posx,$posy,$hide
} }
else else
{ {
$libellproduitservice=$this->pdf_getlinedesc($object,$i,$outputlangs,$hideref,$hidedesc,$issupplierline); $labelproductservice=pdf_getlinedesc($object,$i,$outputlangs,$hideref,$hidedesc,$issupplierline);
// Description // Description
$pdf->writeHTMLCell($w, $h, $posx, $posy, $outputlangs->convToOutputCharset($libelleproduitservice), 0, 1); $pdf->writeHTMLCell($w, $h, $posx, $posy, $outputlangs->convToOutputCharset($labelproductservice), 0, 1);
return $libellproduitservice; return $labelproductservice;
} }
} }
@ -680,6 +680,7 @@ function pdf_getlineqty($object,$i,$outputlangs)
*/ */
function pdf_getlineremisepercent($object,$i,$outputlangs) function pdf_getlineremisepercent($object,$i,$outputlangs)
{ {
include_once(DOL_DOCUMENT_ROOT."/lib/functions2.lib.php");
if ($object->lines[$i]->special_code != 3) if ($object->lines[$i]->special_code != 3)
{ {
if (!empty($object->hooks) && $object->lines[$i]->product_type == 9 && !empty($object->lines[$i]->special_code)) if (!empty($object->hooks) && $object->lines[$i]->product_type == 9 && !empty($object->lines[$i]->special_code))