FAQ:To classify

= how to use contacts/addresses inside commercial and financial documents =

Aim of that page : how to set up Dolibarr for getting a contact details (name, address, telephone number...) displayed on a generated PDF document (proposal, customer order and invoice, supplier order and invoice)

Dolibarr minimum version requested : 3.2

There are 2 constants for displaying the details :


 * the first constant: MAIN_PDF_ADDALSOSOURCEDETAILS

This constant is to be set in Dolibarr menu Setup / Other setup

If set to 0 : the contact details of your own company (phone, fax, email, web) will not be shown in the PDF

If set to 1 : the contact details of your own company (phone, fax, email, web) will be shown in the PDF


 * the second constant: MAIN_PDF_ADDALSOTARGETDETAILS

This constant is to be set in Dolibarr menu Setup / Other setup

If set to 0 : the contact details (phone, fax, email, web) of the addressee will not be shown in the PDF

If set to 1 :

. if you do not select any contact from the 'contacts/addresses' tab:

-> so the details (company phone number, company fax number, email, web) of the addressee company will be shown in the PDF

if you do not want so many details to be shown, so you can first make a safe backup copy of the original file /core/lib/pdf.lib.php then edit the lines 263 to 270 and comment the unwanted options by adding // at the beginning of the concerned line

. if you select a contact from the 'contacts/addresses' tab, then affect it with the right contact type:

-> so the details (contact company, contact name, contact professional phone number, contact fax number, email, web) will be shown in the PDF

if you do not want so many details to be shown, so you can first make a safe backup copy of the original file /core/lib/pdf.lib.php then edit the lines 245 to 252 and comment the unwanted options by adding // at the beginning of the concerned line

Wish all this can be of help.