From 7e613f1a2a31705f580bb7db5389e180fa21e834 Mon Sep 17 00:00:00 2001
From: Philippe Grand <philippe.grand@atoo-net.com>
Date: Wed, 30 Mar 2011 20:51:25 +0000
Subject: [PATCH] To get a column with numbers of lines

---
 htdocs/lib/pdf.lib.php | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/htdocs/lib/pdf.lib.php b/htdocs/lib/pdf.lib.php
index 5ea0cd37d5e..aa5adfb6002 100644
--- a/htdocs/lib/pdf.lib.php
+++ b/htdocs/lib/pdf.lib.php
@@ -792,6 +792,24 @@ function pdf_getlinedesc($object,$i,$outputlangs,$hideref=0,$hidedesc=0,$issuppl
     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
-- 
GitLab