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

Jump to navigation Jump to search
m
no edit summary
mNo edit summary
mNo edit summary
Line 1: Line 1:
[[Category:ImportsEn]]
[[Category:ImportsEn]]
{{TemplateDocDevEn}}
{{TemplateDocDevEn}}
{{ToTranslate}}


Suite à une installation neuve de Dolibarr, les bases sont vides. Parfois on désire démarrer avec des données importées d'un autre système.
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 [[ExportsEn.]]
Il existe plusieurs méthodes possibles. Les chapitres suivante présentes quelques informations pour vous y aider. Les informations sur l'export sont décrites sur la page [[ExportsEn]].


= Utiliser le module Import de Dolibarr =
= Using the Import module Dolibarr =
Ce module n'est pas encore disponible.
This module is not yet available. It is being developed.
Il est en cours de développement.


En attendant, vous devez développer vos propres scripts d'import comme décrit dans le chapitre suivant.
In the meantime, you must develop your own scripts to import as described in the following chapter


= 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: [[Importing data with OpenOffice]]


= Utiliser OpenOffice =
= Developing its own import script =
Vous pouvez utiliser OpenOffice qui est capable d'injecter le contenu d'un tableau dans la base une base de donnée Mysql comme celle de Dolibarr.
Voici un tutorial sur cette méthode : [[Importer des données avec OpenOffice]]


== 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).


= Développer son propre script d'import =
The import of the third is to insert rows in the table [[Table llx_societe]]. Ensure that the mandatory fields are filled.


== Import des tiers et contacts ==
* Name: Must contains the name of the company
Il faut distinguer les tiers des contacts physiques.
* Client: Must contains 1 if third party is a client, 2 if prospect, 0 otherwise.
Dans les tiers on aura toutes les entités sujetes à facturation (aussi bien entreprises, association que particuliers). Les tiers sont obligatoires.
* Fournisseur: Must contains 1 if its a supplier, 0 otherwise
Les contacts physiques sont optionels. Il s'agit juste d'un annuaire de personnes (avec téléphone et fonction) liées à un tiers. Dans le cas d'un tiers entreprise, il pourra y avoir plusieurs contacts physiques. Dans le cas d'un particulier, le contact physique sera unique et identique au tiers (voire le contact physique ne sera pas renseigné).


L'import des tiers consiste à insérer des lignes dans la table [[Table llx_societe]].
Import of physical contact is to insert rows in the table [[Table llx_socpeople]]. Ensure that the mandatory fields are filled.
S'assurer que les champs importants sont bien renseignés:
* Nom: Doit contenir le nom de la société
* Client: Doit contenir 1 si client, 2 si prospect, 0 sinon
* Fournisseur: Doit contenir 1 si fournisseur, 0 sinon


L'import des contacts physiques consiste à insérer des lignes dans la table [[Table llx_socpeople]].
* Name: Must contains the name of the people
S'assurer que les champs importants sont bien renseignés:
* Firstname: Must contains the first name of the people
* Name: Doit contenir le nom de la personne
* fk_soc: Must contains id of third party in table [[Table llx_societe]].
* Firstname: Doit contenir le prénom de la société
* fk_soc: Doit contenir l'id de la ligne Tiers dans la [[Table llx_societe]].


== Import des factures ==
== Import invoices ==
A compléter
To complete...


== Import des produits ==
== Import products ==
A compléter
To complete...


== Mise en pratique ==
== Put into practive ==
La page [[Developpement script]] vous explique comment créer votre propre script de traitement Dolibarr.
Page [[Developpement script]] explains how to create your own Dolibarr script. An example of insertion of a product is provided.
Un exemple d'insertion d'un produit est fourni.


== Quelques didacticiels/exemples soumis par la communauté ==
== Some tutorials / examples submitted by the community ==


[[Importer des clients en automatique]]
[[Importing customers automatically]]

Navigation menu