why no show telephone number in Order /invoice/pL

  1. I find out it always no show customer’s telepehone number in the order/invoice/packling. I do add telephone number when I creat the customer information.
    And there is no choice for creating billing address and receiving address when they are different. Customers always provide different billing address and receiving address.

Please help. Thanks

There is no way to choose the delivery address to be displayed on the invoice but you can archive that by using an external module https://www.dolistore.com/en/modules/748-Delivery-address.html?search_query=delivery+address&results=2 regarding the telephone number you can change one of the Professional ID fields into e.g. “Contact number” and it will be shown on the invoice if you enable it in Home->Setup->PDF and to be honest you can use the Professional ID fields for the delivery address as well ;-

1 Like

Thank you. Your advise is good and working.

Is there any more details of dolibarr books or documents I can learn how to use better of dolibarr? There is limite information of dolibarr in wiki. I have lots of questions want to solve but don’t know how. Thank you

You are welcome. There are some manuals online and some videos on youtube, you can also be active on the forum (by trying to solve someone else’s problem you can always learn something). I do have 2 copies of dolibarr one main one and one for testing where I try things before applying them in my main version.

It’s an old post, but came across it when I tried to add a customer phone number to an invoice:

Go to | setup | other setup
add constant → MAIN_PDF_ADDALSOTARGETDETAILS value 1
Source: https://wiki.dolibarr.org/index.php/Setup_Other

Regenerate an invoice it will show from now additional:
Phone
Fax
Email
URL

When you don’t want for example the Fax or URL to show up, I had to modify a core file:

\htdocs\core\lib\pdf.lib.php
find on the page $conf->global->MAIN_PDF_ADDALSOTARGETDETAIL (around line 554)

go further down to disable showing fax by adding // before the code line:

around line 575
// $stringaddress .= ($stringaddress ? "\n" : '').$outputlangs->transnoentities("Fax").": ".$outputlangs->convToOutputCharset($targetcontact->fax);

and also uncomment the following line:

Around line 618
// $stringaddress .= ($stringaddress ? “\n” : ‘’).$outputlangs->transnoentities(“Fax”).": ".$outputlangs->convToOutputCharset($targetcompany->fax);

You can also easily find the other options, to disable email, phone and web.

Remember that after every upgrade you perform, you must do this again.

The solution for finer modification is of course not ideal, because it requires changing the core. Anyone knows another solution, let us know.