Mass imports - Migrate my Data To Dolibarr: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
Line 3: Line 3:
{{TemplateDocDevEn}}
{{TemplateDocDevEn}}


Following a new installation of Dolibarr, the bases are empty. Sometimes you want to start with data imported from another system. There are several possible methods. The following chapters present some information for this. Information on the export are described on the page [[Module Exports En|Module Exports]].
Following a new installation of Dolibarr, the database is empty. It is a common requirement to import existing data (suppliers, customers, products etc.) instead of entering the data manually.
There are several possible methods of importing data. The following chapters provide information about this.
Information about exporting data is described on the page [[Module Exports En|Module Exports]].


= [[File:Art.png]] Using the Dolibarr Import Module=
= [[File:Art.png]] Using the Dolibarr Import Module=
The recommended method for importing data is to use the Dolibarr [[Module Imports En|Module Imports]]. You will find a wizard that will guide you step by step to import your data. More information on page [[Module Imports En|Module Imports]].
The recommended method for importing data is to use the Dolibarr [[Module Imports En|Module Imports]]. You will find a wizard that will guide you step by step in importing your data. You'll find more information on the page [[Module Imports En|Module Imports]].


For import scenarios not covered by the built-in module, the following alternatives are also possible.
For import scenarios not covered by the built-in module, the following alternatives are also possible.


= [[File:OpenOffice.png]] Using OpenOffice =
= [[File:OpenOffice.png]] Using OpenOffice =
You can use OpenOffice which is able to inject the contents of a table in the database such as Mysql Dolibarr. Here is a tutorial on this method: [[Import data with OpenOffice]]
You can use OpenOffice, which is able to insert the contents of a table into a database such as Mysql Dolibarr. Here is a tutorial on this method: [[Import data with OpenOffice]]


= [[File:Outils.png]] Developing its own import script =
= [[File:Outils.png]] Developing your own import script =


== Import third parties and contacts ==
== Import third parties and contacts ==
We must distinguish the third party from the physical contact. In the third party we will have all entities subject to billing (both companies, as private people or association). Third parties are required. The physical contacts are optional. Contacts are just a directory of physical persons related to a third party. In the case of a third party that is a company, there may be several physical contacts. In the case of an individual, physical contact will be unique and identical to the third party (or even physical contact will not be filled).
We must differentiate a third party from a physical contact (person).
The third party information contains all the details pertaining to billing (whether companies, private individuals or associations).
Third party details are compulsory whereas physical contact details are optional.
Contacts are just a directory of physical persons/addresses related to the third party.
In the case of a third party that is a company, there may be several additional physical contacts.
In the case of an individual, there will be only one physical contact which would be identical to the third party.


The import of the third is to insert rows in the table [[Table llx_societe]]. Ensure that the mandatory fields are filled.
The import of the third parties inserts rows in the table [[Table llx_societe]]. Ensure that the mandatory fields contain data.


* Name: Must contains the name of the company
* Name: Must contain the name of the company
* Client: Must contains 1 if third party is a client, 2 if prospect, 0 otherwise.
* Client: Must contain 1 if third party is a client, 2 if prospect, 0 otherwise.
* Fournisseur: Must contains 1 if its a supplier, 0 otherwise
* Supplier: Must contain 1 if its a supplier, 0 otherwise


Import of physical contact is to insert rows in the table [[Table llx_socpeople]]. Ensure that the mandatory fields are filled.
The import of physical contacts inserts rows in the table [[Table llx_socpeople]]. Ensure that the mandatory fields contain data.


* Name: Must contains the name of the people
* Name: Must contain the surname of the contact
* Firstname: Must contains the first name of the people
* Firstname: Must contain the first name of the contact
* fk_soc: Must contains id of third party in table [[Table llx_societe]].
* fk_soc: Must contain the id of the third party from table [[Table llx_societe]].


== Import invoices ==
== Import invoices ==
98

edits

Navigation menu