Topic: Per Company invoices

Is it possible to have one invoice template for company 0 and a different one for company 1, 2, 3, etc?

Re: Per Company invoices

Yes, you could build a custom report (use the existing invoice, rep107.php as model) and install it. Then activate it for your companies.

This is not easy. You will have to look at existing custom reports to get the idea.
The existing /reporting/includes/header2.inc and /reporting/includes/doctext.inc also needs to be together with the custom report. The layout is in header2.inc.

Another and maybe easier way is to copy the invoice report, rep108.php, to /company/X/reporting folder, where X is the company number. Also copy the file /reporting/includes/header2.inc into this folder.
Inside the rep108.php copy the header2 function from /reporting/includes/pdf_reports.inc and paste it somewhere in the rep108.php file and call the function header_custom.
Change the foders etc. in the header_custom() and
change the         $rep->SetHeaderType('header_custom'); in line 68 and 86.

The header2.inc file contains the layout of the document.
Do the same thing for all other companies.

/Joe