The LoMag warehouse software allows you to manage different seller data for issuing documents to contractors. This is a useful feature when LoMag is installed on a laptop and the user is in a different company branch and wants to issue a document with the appropriate details. This can be done in three ways, which are described in this guide.
In the database, you can configure multiple company accounts (e.g., branches). To do this, click the settings icon in the main menu, then switch the tab to the Company section.

In this window, the user can add a new company account using the + button. Pressing this button creates a copy of the currently selected company (highlighted in blue). The new account will have "-copy" appended to the name, no country set, and all currencies selected (if currency handling is enabled).

You should change the seller account data to match the new company or branch. If you're adding a branch, the VAT ID will likely stay the same, but other fields should be updated. The screenshot below shows updated name, street, city, account number, and bank name. Save the changes by clicking OK.
Once saved, the new company will appear on the right-hand side list. Note: the first entry (bold) is the default account for all documents.

When issuing a new document (e.g., invoice as shown below), the issuing company is the default company. To change it, click on the name and select another company from the dropdown.

When printing the invoice using the
button, you’ll see the seller and bank details on the preview.

Using dedicated columns in LoMag, you can assign a company/branch per warehouse to issue documents accordingly. Full instructions on dedicated columns are available here.
Go to Program → Settings or use [CTRL+U] or the icon. Then switch to the "Dedicated Columns" tab.

Select table type: Warehouse.

Enter the column names you want to be different (i.e., custom seller data) and click OK. The dedicated columns added in this example are: Branch VAT number, Branch number, Bank name, Branch name, Branch street, Branch postal code, and Branch city.

Now go to Program → Open Warehouse or use [CTRL+O] to open the warehouse selection window.

Select a warehouse and click edit. Fill in the new columns with the correct data and confirm with OK.

After opening the updated warehouse, issue a document (e.g., invoice). Click the template editor icon.

In the new window, remove the current fields on the right by selecting them (they will highlight red) and pressing delete or right-click → delete.

Then drag and drop your custom fields from the left side to the appropriate place in the document.

Preview the changes by clicking Print Preview.

To save the new template, click Templates → Save As, name the template and confirm.
More about document editor configuration is available here.

Once saved, you'll be able to select this template during document printing. The seller data will match the template, regardless of what’s in the "Company" field.

This is how you can define different seller data per warehouse in LoMag.
This setup can be done in two ways:
After installation, go to the LoMag install directory (default: C:\Program Files (x86)\Program magazynowy).

Copy the folder to create two instances. To perform the copy operation, make sure the LoMag program is closed on the computer.

Rename them to reflect the company names.

In each "Baza Danych" folder, set access rights → Properties → Security → Users → Edit → Full Control → Apply.


Launch the first LoMag instance as Administrator.

We set Network Settings → Select "Multiple workstations – This computer is a server" → Set database name to Company1 than click OK.

Repeat the same for the second instance with database name Company2.

We can create desktop shortcuts to each instance for easy access.
For users who want to create databases for their multi-database workstations in SQL Server Management Studio, this option is available. We begin the process of creating multi-database workstations through SQL Server Management Studio by preparing a copy of the LoMag software (the procedure is described above).

Once launched, log in to the system using SQL Server Authentication with administrator credentials:
Login: sa
Password: magazyn2008 (default settings).

If an error occurs and the connection cannot be established, try logging in using Windows Authentication instead. This method uses your Windows account to connect to the SQL Server instance and can help verify that the service is running correctly.
Attach database: Right-click "Databases" → Attach → Add → Navigate to "Program magazynowy Company1/Baza Danych" → Select "firma.mdl" → OK.



Than rename "Attach As" to Company1 and click OK.
Repeat for Company2. Your final tree should show both Company1 and Company2.

Close SQL Studio. Go to LoMag → Network Settings → Select "Multiple workstations – Client" → Enter database name Company1 → OK.

Repeat for second instance with Company2.
That’s how you run two separate LoMag databases on one PC.
