Skip to content
Snippets Groups Projects
Commit 7e613f1a authored by Philippe Grand's avatar Philippe Grand
Browse files

To get a column with numbers of lines

parent 29494650
No related branches found
No related tags found
No related merge requests found
...@@ -792,6 +792,24 @@ function pdf_getlinedesc($object,$i,$outputlangs,$hideref=0,$hidedesc=0,$issuppl ...@@ -792,6 +792,24 @@ function pdf_getlinedesc($object,$i,$outputlangs,$hideref=0,$hidedesc=0,$issuppl
return $libelleproduitservice; return $libelleproduitservice;
} }
/**
* Return line num
* @param object Object
* @param $i Current line number
* @param outputlang Object lang for output
*/
function pdf_getlinenum($object,$i,$outputlangs)
{
if (!empty($object->hooks) && $object->lines[$i]->product_type == 9 && !empty($object->lines[$i]->special_code))
{
// TODO add hook function
}
else
{
return dol_htmlentitiesbr($object->lines[$i]->num);
}
}
/** /**
* Return line ref * Return line ref
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment