Identification



Welcome, Guest
Please Login or Register.    Lost Password?

Company information invoice
(1 viewing) (1) Guest
Go to bottomPage: 1
TOPIC: Company information invoice
#21152
Company information invoice 9 Months, 1 Week ago Karma: 0
In version 2.9 of Dolibarr I had company in the left source box of the crabe template.
Since I've upgraded to 3.2.1 some information is missing that used to be there.
Our phone number, fax number, e-mail address and website.
In the pdf.lib.php I can find
Code:

if ($mode == 'source')
{
$stringaddress .= ($stringaddress ? "\n" : '' ).$outputlangs->convToOutputCharset(dol_format_address($sourcecompany))."\n";

if (! empty($conf->global->MAIN_PDF_ADDALSOSOURCEDETAILS))
{
     // Tel
     if ($sourcecompany->tel) $stringaddress .= ($stringaddress ? "\n" : '' ).$outputlangs->transnoentities("Phone").": ".$outputlangs->convToOutputCharset($sourcecompany->tel);
     // Fax
     if ($sourcecompany->fax) $stringaddress .= ($stringaddress ? "\n" : '' ).$outputlangs->transnoentities("Fax").": ".$outputlangs->convToOutputCharset($sourcecompany->fax);
     // EMail
     if ($sourcecompany->email) $stringaddress .= ($stringaddress ? "\n" : '' ).$outputlangs->transnoentities("Email").": ".$outputlangs->convToOutputCharset($sourcecompany->email);
     // Web
     if ($sourcecompany->url) $stringaddress .= ($stringaddress ? "\n" : '' ).$outputlangs->transnoentities("Web").": ".$outputlangs->convToOutputCharset($sourcecompany->url);
     }
}


But I can't find a way to let dolibarr display this information.
How can I enable this?
glennonline
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#21153
Re:Company information invoice 9 Months, 1 Week ago Karma: 10
Hi,

With 3.2.1 you need to set the variables in setup/other setup:

MAIN_PDF_ADDALSOSOURCEDETAILS with value= 1

so you'll get back your company details printed

and

MAIN_PDF_ADDALSOTARGETDETAILS with value= 1

for getting the contact details printed (if any contact has been selected for the said document)

Wish it helps,

Rgds.
humphrey
Expert Boarder
Posts: 155
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#21154
Re:Company information invoice 9 Months, 1 Week ago Karma: 0
Thank you very mutch!
I have added this information to the wiki in setup > others for people with the same question.
glennonline
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
#21156
Re:Company information invoice 9 Months, 1 Week ago Karma: 10
You're welcome.

Anyway, as per what I saw from the github, the variable MAIN_PDF_ADDALSOSOURCEDETAILS is basically set to 1 in the fresh new release 3.2.2 ... so if you upgrade to 3.2.2 there is no need to set it in setup/other setup.

Regards.
humphrey
Expert Boarder
Posts: 155
graphgraph
User Offline Click here to see the profile of this user
The administrator has disabled public write access.
 
Go to topPage: 1