Multi Tennant Question

If we own multiple companies does the software have multi-tennant capabilities. Thx Bill

1 Like

It’s an excellent question.
Version 2 of InvoicePlane will have what youy need.

Solution in v1

I’ve seen users install multiple instances of InvoicePlane v1 next to each other on the same server.
That’s possible. Take into account the location of their sessions.
Open ipconfig.php and add this variable:
SESS_SAVE_PATH=
Make it unique to that particular InvoicePlane installation.
Normally i place my sessions in a “storage” directory. If my InvoicePlane location is /var/www/html/company_1/
Then my sessions can be in /var/www/html/company_1/ storage/framework/sessions

and then the same for those sessions for your other InvoicePlane instances.

Solution in v2

For true multi-tenancy you need a company_id in almost every table of InvoicePlane. Then for every request to the database you’d need to take that company_id into account.

InvoicePlane v2 is prepared for that.

In multi-company I can imagine you want overviews and reports transcending over all companies. Interesting concept.
If you want to chat about it,
this is the Discord link