# Invoice References

**URL:** <https://www.dolibarr.org/forum/t/invoice-references/12908>\
**Category:** Installing my Dolibarr\
**Created:** [November 27, 2015, 4:59pm UTC](https://www.dolibarr.org/forum/t/invoice-references/12908 "2015-11-27T16:59:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bello](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/bello/32/382_2.png) [@Bello](https://www.dolibarr.org/forum/u/Bello)\
**Post date:** [November 27, 2015, 4:59pm UTC](https://www.dolibarr.org/forum/t/invoice-references/12908/1 "2015-11-27T16:59:59Z")

</div>

Hi,  
I want to modify the pdf.crabe.module.php.  
Can some one explain me how to insert the Ref.Client / Ref.Order / and the Ref. Shipment (and the related dats) to different line   
instead of in on line…

I suppose that all this ref. are connected in the pdf\_writeLinkedObjects and pdf\_getLinkedObjects (pdf.lib.php) .

Thank you for help me.  
Br  
Giorgio

---

<div class="post-metadata">

**Author:** ![wolfgang](https://www.dolibarr.org/forum/letter_avatar_proxy/v4/letter/w/54ee81/32.png) [@wolfgang](https://www.dolibarr.org/forum/u/wolfgang)\
**Post date:** [November 30, 2015, 8:51am UTC](https://www.dolibarr.org/forum/t/invoice-references/12908/2 "2015-11-30T08:51:01Z")

</div>

hi,  
it’s my firt time i try to modify the pdf-output and read your problem.  
i searched the file but you did write wrong, the 1st . is a \_  
but in the file i miss your variables Ref.Client…

I would try to set the xy-coordinates bevore output these values using  
$pdf-\>SetXY($curX, $curY+yourdistance);  
then the output  
then the position back to the point bevore you modifyed  
$pdf-\>SetXY($curX, $curY);

but i never did bevore, i did not test, i’m a newby !!!

if you have a solution, please post it here, thanks !!

🙂 Wolfgang

---

<div class="post-metadata">

**Author:** ![Bello](https://www.dolibarr.org/forum/user_avatar/www.dolibarr.org/bello/32/382_2.png) [@Bello](https://www.dolibarr.org/forum/u/Bello)\
**Post date:** [March 30, 2016, 8:45am UTC](https://www.dolibarr.org/forum/t/invoice-references/12908/3 "2016-03-30T08:45:20Z")

</div>

Hi,

finaly I found that the referece of the linked object are register in /htdocs/core/lib/lib.pdf.php

/\*\*  
\* Return linked objects  
\*  
\* @param object $object Object  
\* @param Translate $outputlangs Object lang for output  
\* @return array Linked objects  
\*/  
…  
I hid references in the line 1651 - 1658 as I wish to show for example :  
// $linkedobjects[$objecttype][‘ref\_title’] = $outputlangs-\>transnoentities(“RefOrder”) . ’ / ’ . $outputlangs-\>transnoentities(“RefSending”);  
$linkedobjects[$objecttype][‘ref\_title’] = $outputlangs-\>transnoentities(“RefSending”);  
// $linkedobjects[$objecttype][‘ref\_value’] = $outputlangs-\>transnoentities($order-\>ref) . ($order-\>ref\_client ? ’ (’.$order-\>ref\_client.’)’ : ‘’);  
// $linkedobjects[$objecttype][‘ref\_value’].= ’ / ’ . $outputlangs-\>transnoentities($objects[$i]-\>ref);  
$linkedobjects[$objecttype][‘ref\_value’].= $outputlangs-\>transnoentities($objects[$i]-\>ref);  
// $linkedobjects[$objecttype][‘date\_title’] = $outputlangs-\>transnoentities(“OrderDate”) . ’ / ’ . $outputlangs-\>transnoentities(“DateSending”);  
//$linkedobjects[$objecttype][‘date\_value’] = dol\_print\_date($order-\>date,‘day’,’’,$outputlangs);  
$linkedobjects[$objecttype][‘date\_value’].= ’ / ’ . dol\_print\_date($objects[$i]-\>date\_delivery,‘day’,’’,$outputlangs);

And that’s it!

Br  
Giorgio
