# 4.1- Préparation du fichier d'import

#### **4.1.1- Conseils de mise en forme**  


<span class="align-left" style="color: rgb(0,0,0);">La préparation requiert un certain travail de récupération des informations des fichiers des fournisseurs et de remise en forme, bien souvent. La plupart du temps, les fichiers utilisés sont travaillés dans un tableur dans lesquels on a tendance à jouer d'effets de forme ou d'affichage. Or *pour votre import, vous avez besoin du texte et des nombres, et uniquement cela*.</span><span style="color: rgb(0,0,0);">   
Heureusement, les fournisseurs qui ont de bons systèmes de gestion informatisés sont capables de fournir des fichiers de très bonne qualité. Il y en a de plus en plus, tant mieux.  
</span>

<span style="color: rgb(0,0,0);">**En particulier, soyez vigilants sur les points suivants :** </span>

- <span style="color: rgb(0,0,0);">Sauts de lignes dans les cellules des tableaux</span>
    - <span style="color: rgb(0,0,0);">à bannir absolument, cela génère un saut de ligne du fichier CSV et fausse vos données à importer (si vous avez un nombre de lignes dans le CSV qui ne correspond pas au nombre de ligne de votre fichier tableur, c'est probablement à cause de cela) </span>
    - <span style="color: rgb(0,0,0);">vous pouvez au choix : ne pas faire de sauts de ligne (et gérer cela à la main au cas par cas en éditant les fiches produits), ou ajouter dans vos fichiers le code HTML de saut de ligne </span>
- <span style="color: rgb(0,0,0);">Virgules ou points-virgules</span>
    - <span style="color: rgb(0,0,0);">il s'agit du séparateur de champ du fichier CSV : c'est ce caractère qui va déterminer les données qui vont être enregistrées dans le premier champ, puis le deuxième champ... dans la base de données.  
        </span>
    - <span style="color: rgb(0,0,0);">En français, vous aurez probablement moins de problèmes à gérer avec le point-virgule (moins courant dans les textes) que la virgule</span>
- <span style="color: rgb(0,0,0);">Les prix formatés avec l'affichage de la monnaie</span>
    - <span style="color: rgb(0,0,0);">à bannir, ils ne seront pas reconnus, vous aurez une erreur.  
        </span>
    - <span style="color: rgb(0,0,0);">vous devez avoir une colonne (= un champ) avec le prix uniquement, et une autre pour la devise (monnaie)</span>
    - <span style="color: rgb(0,0,0);">de même n'appliquez aucun effet de mise en forme des nombres (par ex. le séparateur des milliers…) </span>
- <span style="color: rgb(0,0,0);"> Le séparateur de décimales à privilégier est le point. Bien que, globalement, la virgule soit reconnue, il y a des cas (par exemple dans les attributs supplémentaires) où elle ne l'est pas. Vous perdrez tout ce qui vient après la virgule lors de l'import.  
    </span>
- <span style="color: rgb(0,0,0);">D'une manière générale, vous ne devez avoir **aucun formatage de texte ni de nombre**. </span>

<span style="color: rgb(0,0,0);">Une fois votre enregistrement CSV terminé à partir du tableur, ouvrez votre fichier dans un éditeur de texte\* et vérifiez le nombre de lignes que vous avez pour repérer d'éventuel saut de lignes non voulu. Si votre fichier tableur comporte 10 lignes et une ligne d'en-tête, soit 11 lignes, vous devez avoir également 11 lignes dans votre fichier ouvert avec l'éditeur de texte. Si ce n'est pas le cas, vous avez un problème de retour à la ligne qu'il faut trouver et supprimer.  
</span>

<span style="color: rgb(0,0,0);">\* un éditeur de texte n'est pas un logiciel de traitement de texte ! c'est un logiciel dédié à l'édition de texte "pur" - sans aucun formatage de texte. Vous en trouverez normalement un sur votre système d'exploitation (Notepad pour windows, TextEdit sous Mac. Il y en a au moins un (si ce n'est plus) nativement sous linux).</span>

#### **<span style="color: rgb(0,0,0);">4.1.2- Attributs supplémentaires (extrafield) sur les produits</span>**

##### <span style="color: rgb(0,0,0);">Ajout ou modification d'un attribut supplémentaire sur les produits</span>

<span style="color: rgb(0,0,0);">Le module Gestion des prix peut tout à fait importer des attributs supplémentaires. Pour cela, rajouter simplement une colonne dans votre fichier d'import. Attention cependant à bien vérifier que les attributs supplémentaires soient bien pris en compte dans la configuration de votre Dolibarr. Configuration &gt; Divers &gt; onglet attributs supplémentaires.</span>

<span style="color: rgb(0,0,0);">Pour plus d'informations, consulter la partie dédiée à la [configuration d'attributs supplémentaires](https://doc.altairis.fr/books/gestion-des-prix-prices/page/25-attributs-supplementaires-extrafields) de cette documentation.</span>

#### **4.1.2- Formats du fichier** 

<span style="color: rgb(0,0,0);">Vous devez importer votre fichier en format .CSV (Coma Separated Value).</span>

<span style="color: rgb(0,0,0);">Le format CSV vous permet de rapidement repérer les erreurs de mise en forme (renseignées plus haut). Le format CSV est le seul format avec lequel vous êtes sûrs de pouvoir choisir votre caractère de séparateur de champs pour vous assurer que c'est bien le point virgule.</span>

#### **<span style="color: rgb(0,0,0);">4.1.4- Les champs à importer</span>**

##### <span style="color: rgb(0,0,0);">Informations à connaître sur les champs à importer</span>

<span style="color: rgb(0,0,0);">En pratique, **<span style="color: rgb(24,139,175);">en configurant vos coefficients de vente et d'achat</span>**, <span style="color: rgb(24,139,175);">**tous les prix intermédiaires sont calculés automatiquement**</span>, ce qui limite fortement la liste des données de prix à importer.</span>

<span style="color: rgb(0,0,0);"><span style="color: rgb(24,139,175);">**Les produits n'existant pas dans votre Dolibarr**</span>, mais que vous **<span style="color: rgb(24,139,175);">indiquez dans votre fichier d'import </span><span style="color: rgb(24,139,175);">seront créés automatiquement</span>**. En conséquence, afin que les fiches produits soient utilisables correctement, pensez à importer la description du produit et toutes les informations qui vous seront utiles au quotidien sur vos fiches produits.  
</span>

<span style="color: rgb(0,0,0);">Vous pouvez **<span style="color: rgb(24,139,175);">importer plusieurs catalogues de fournisseurs différents d'un coup</span>** si vous le voulez. Il vous faudra alors avoir le champ **<span style="color: rgb(24,139,175);">Code fournisseur</span>** obligatoirement renseigné dans votre fichier d'import. **<span style="color: rgb(24,139,175);">Le fournisseur devra déjà exister </span>**<span style="color: rgb(24,139,175);"><span style="color: rgb(0,0,0);">dans votre Dolibarr</span></span> puisque vous devrez **<span style="color: rgb(24,139,175);">indiquer le code fournisseur </span>**de votre Dolibarr **<span style="color: rgb(24,139,175);">dans votre fichier</span>**. </span>

<span style="color: rgb(0,0,0);">De même, vous pouvez **<span style="color: rgb(24,139,175);">importer des produits de plusieurs catégories</span>** : pour cela <span style="color: rgb(24,139,175);"><span style="color: rgb(0,0,0);">le champ </span></span>**<span style="color: rgb(24,139,175);">catégorie devra être rempli</span>** dans votre fichier d'import. **<span style="color: rgb(24,139,175);">Les catégories</span>** indiquées dans votre fichier d'import et **<span style="color: rgb(24,139,175);">n’existant pas </span>**<span style="color: rgb(24,139,175);"><span style="color: rgb(0,0,0);">dans votre Dolibarr</span> **seront crées à la phase de validation** <span style="color: rgb(0,0,0);">après l'import</span></span>.   
**<span style="color: rgb(186,55,42);">Attention </span>**: si <span style="color: rgb(24,139,175);"><span style="color: rgb(0,0,0);">vous reprenez des </span></span>**<span style="color: rgb(24,139,175);">catégories existantes</span>**, vous devrez **<span style="color: rgb(24,139,175);">libeller vos catégories dans votre fichier d'import exactement comme elles le sont dans votre Dolibarr</span>** (<span style="color: rgb(186,55,42);">sinon, elles seront considérées comme nouvelles catégories et  seront </span></span><span style="color: rgb(186,55,42);">donc </span><span style="color: rgb(0,0,0);"><span style="color: rgb(186,55,42);">créées</span>). </span>

<span style="color: rgb(0,0,0);"><span style="color: rgb(24,139,175);">**La référence interne est le code produit** </span>que vous utilisez dans votre Dolibarr. Il peut être configuré pour s’auto-incrémenter ou être librement choisi, selon la configuration du module Produits. <span style="color: rgb(24,139,175);">**Renseignez ce champ si vous utilisez des codes librement choisis**</span>. **<span style="color: rgb(24,139,175);">Sinon, n'importez pas ce champ</span>**, le module utilisera l'auto-incrémentation définie dans la configuration. </span>

<p class="callout info"><span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Note :</span>** Si vous disposez d'un fichier CSV qui contient plus de champs que requis, il n'est pas nécessaire des les supprimer : il suffira dans l'étape 2 de l'import de ne pas tenir compte des champs en trop.</span></p>

##### <span style="color: rgb(0,0,0);">Les champs à importer</span>

<span style="color: rgb(0,0,0);">Voici les champs et leur explication que vous retrouverez sur le fichier d'exemple :</span>

<table id="bkmrk-champs-explications--1" style="border-collapse: collapse; width: 96.5432%; margin-left: 40px; height: 4000.93px;"><tbody style="padding-left: 40px;"><tr style="padding-left: 40px; height: 46.6px;"><td class="align-left" style="background-color: rgb(236,240,241); padding-left: 40px; height: 46.6px; width: 26.8556%;"><span style="color: rgb(0,0,0);">**Champs**</span>  
</td><td class="align-left" style="background-color: rgb(236,240,241); padding-left: 40px; height: 46.6px; width: 53.9811%;"><span style="color: rgb(0,0,0);">**Explications**</span>  
</td><td class="align-left" style="background-color: rgb(236,240,241); padding-left: 40px; height: 46.6px; width: 24.5614%;"><span style="color: rgb(0,0,0);">**Champ <span style="color: rgb(24,139,175);">obligatoire</span>**</span></td></tr><tr style="padding-left: 40px; height: 125px;"><td class="align-left" style="height: 125px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Code fournisseur</span></td><td class="align-left" style="height: 125px; width: 53.9811%;"><span style="color: rgb(0,0,0);">C'est celui qui se trouve sur votre Dolibarr, le fournisseur doit déjà exister</span></td><td class="align-left" style="height: 125px; width: 24.5614%;"><span style="color: rgb(24,139,175);">**Oui**</span>

<span class="align-left" style="color: rgb(0,0,0);">surtout si plusieurs  
fournisseurs dans le  
même CSV</span>

</td></tr><tr><td style="width: 26.8556%;"><span style="color: rgb(0,0,0);">Statut</span></td><td style="width: 53.9811%;"><span style="color: rgb(0,0,0);">Ce champ doit toujours être rempli par 0</span></td><td style="width: 24.5614%;"><span style="color: rgb(24,139,175);">**Oui à partir de la version <span class="info-box-icon-version classfortooltip" title="Version 2024.07-168-g483f718">2024.07-168-g483f718</span>**</span>

</td></tr><tr style="padding-left: 40px; height: 63.1833px;"><td class="align-left" style="height: 63.1833px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Réf. Produit fournisseur</span></td><td class="align-left" style="height: 63.1833px; width: 53.9811%;"><span style="color: rgb(0,0,0);">La référence produit fournisseur doit être unique pour ce fournisseur</span></td><td class="align-left" style="height: 63.1833px; width: 24.5614%;">**<span style="color: rgb(24,139,175);">Oui</span>**</td></tr><tr style="padding-left: 40px; height: 57.8px;"><td class="align-left" style="height: 57.8px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Libellé</span>  
</td><td class="align-left" style="height: 57.8px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Libre à vous de choisir le libellé</span>

**<span style="color: rgb(24,139,175);">255 caractères maximum</span>**

</td><td class="align-left" style="height: 57.8px; width: 24.5614%;">**<span style="color: rgb(24,139,175);">Oui</span>**  
</td></tr><tr style="padding-left: 40px; height: 57.8px;"><td class="align-left" style="height: 57.8px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Description</span>  
</td><td class="align-left" style="height: 57.8px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Libre à vous de choisir la description</span>

**<span style="color: rgb(24,139,175);">Pas de limite de caractères</span>**

</td><td class="align-left" style="height: 57.8px; width: 24.5614%;"><span style="color: rgb(0,0,0);">Non</span>  
</td></tr><tr style="padding-left: 40px; height: 165px;"><td class="align-left" style="height: 165px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Référence interne</span>  
</td><td class="align-left" style="height: 165px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Référence du produit dans votre Dolibarr</span>

**<span style="color: rgb(24,139,175);">32 caractères maximum</span>**

<span style="color: rgb(0,0,0);">Ce champ peut être automatiquement rempli et auto-incrémenté si vous avez choisi cette méthode dans le **<span style="color: rgb(24,139,175);">module </span><span style="color: rgb(24,139,175);">Produits<span style="color: rgb(0,0,0);">.</span> </span>**</span><span style="color: rgb(186,55,42);">Ne pas importer ce champ dans ce cas.</span>

</td><td class="align-left" style="height: 165px; width: 24.5614%;"><span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Oui </span><span style="color: rgb(53,152,219);">Si </span>**vous gérez des références manuelles  
</span>

**<span style="color: rgb(24,139,175);">Non</span>**<span style="color: rgb(0,0,0);"> si vous utilisez des références auto-incrémentées</span>

</td></tr><tr><td style="width: 26.8556%;"><span style="color: rgb(0,0,0);">Produit / Service (0/1)</span></td><td style="width: 53.9811%;"><span style="color: rgb(0,0,0);">Indiquez ici si la ligne importée est une ligne de produit (0) ou de service (1)</span>

</td><td style="width: 24.5614%;"><span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Oui </span><span style="color: rgb(53,152,219);">Si </span>**vous gérez des produits et des services</span>

**<span style="color: rgb(24,139,175);">Non</span>**<span style="color: rgb(0,0,0);"> si vous importez uniquement des produits.</span>

</td></tr><tr style="padding-left: 40px; height: 80.2px;"><td class="align-left" style="height: 80.2px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Catégorie</span>  
</td><td class="align-left" style="height: 80.2px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Catégorie du produit </span>

<span style="color: rgb(0,0,0);">Si elle est inexistante elle sera créée dans Dolibarr</span>

</td><td class="align-left" style="height: 80.2px; width: 24.5614%;"><span style="color: rgb(0,0,0);">Non</span>  
</td></tr><tr style="padding-left: 40px; height: 125px;"><td class="align-left" style="height: 125px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Quantité</span>  
</td><td class="align-left" style="height: 125px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Quantité du produit pour le prix considéré (en cas d'achat en nombre)</span>

<span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Ce n'est pas le stock </span>**</span>

</td><td class="align-left" style="height: 125px; width: 24.5614%;"><span style="color: rgb(0,0,0);">Non  
</span>

<span style="color: rgb(0,0,0);">  
Par défaut, si vous  
n'indiquez pas de quantité d'achat pour le prix indiqué, ce sera 1</span>

</td></tr><tr style="padding-left: 40px; height: 147.4px;"><td class="align-left" style="height: 147.4px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Prix catalogue</span>  
</td><td class="align-left" style="height: 147.4px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Le prix (pour la quantité) du fournisseur uniquement (pas de monnaie) </span>

**<span style="color: rgb(24,139,175);">Ex : 23.12 ou 23,12</span>**

</td><td class="align-left" style="height: 147.4px; width: 24.5614%;"><span style="color: rgb(0,0,0);">Non</span>

<span style="color: rgb(0,0,0);">Si vous n'indiquez pas de prix d'achat, toute la chaîne de calcul de prix sera à 0</span>

</td></tr><tr style="padding-left: 40px; height: 192.2px;"><td class="align-left" style="height: 192.2px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Devise (Monnaie)</span>  
</td><td class="align-left" style="height: 192.2px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Code monnaie du prix fournisseur sur trois lettres (ex : pour l'euro = EUR)</span>

<span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);"> Obligatoire si les prix sont en devise différente de votre monnaie par défaut</span>** dans Dolibarr</span>

<span style="color: rgb(0,0,0);">Liste détaillée dans : Configuration &gt; Dictionnaires &gt; Monnaies. </span>

</td><td class="align-left" style="height: 192.2px; width: 24.5614%;"><span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Oui </span>**</span>**<span style="color: rgb(53,152,219);">Si </span>**<span style="color: rgb(0,0,0);">vous gérez les coefficients par devise.</span>

<span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Non </span>**</span><span class="align-left" style="color: rgb(0,0,0);">si vous ne gérez pas d'achat en devise. Si non renseigné, ce sera la  
monnaie de votre  
Dolibarr.</span>

</td></tr><tr style="height: 57.8px;"><td class="align-left" style="height: 57.8px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Taux TVA</span>  
</td><td class="align-left" style="height: 57.8px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Taux de TVA sur les ACHATS</span>

**<span style="color: rgb(24,139,175);">Ex : pour une TVA de 19,6 % : 19.6</span>**

</td><td class="align-left" style="height: 57.8px; width: 24.5614%;"><span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Oui </span><span style="color: rgb(53,152,219);">Si </span>**différent de 0</span>

</td></tr><tr style="height: 237px;"><td class="align-left" style="height: 237px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Remise fournisseur </span>  
</td><td class="align-left" style="height: 237px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Taux de remise fournisseur pour le produit</span>

<span style="color: rgb(24,139,175);">**Ex : indiquez 10 pour 10%** </span>

</td><td class="align-left" style="height: 237px; width: 24.5614%;"><span style="color: rgb(0,0,0);">Non</span>

<span style="color: rgb(0,0,0);">Vous pouvez indiquer le prix public de votre produit et votre remise fournisseur, ou bien indiquer directement dans le champ "prix catalogue" votre prix net (et dans ce cas, pas de remise fournisseur)</span>

</td></tr><tr style="height: 63.4px;"><td class="align-left" style="height: 63.4px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Prix de base</span>  
</td><td class="align-left" style="height: 63.4px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Prix catalogue remisé pour la quantité achetée (pour les achats en nombre) </span>  
</td><td class="align-left" style="height: 63.4px; width: 24.5614%;"><span style="color: rgb(0,0,0);">Non</span>

<span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Calcul automatique</span>**</span>

</td></tr><tr style="height: 57.8px;"><td class="align-left" style="height: 57.8px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Prix unitaire</span>  
</td><td class="align-left" style="height: 57.8px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Prix catalogue remisé unitaire</span>

**<span style="color: rgb(24,139,175);">  
</span>**

</td><td class="align-left" style="height: 57.8px; width: 24.5614%;"><span style="color: rgb(0,0,0);">Non</span>

<span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Calcul automatique</span>**</span>

</td></tr><tr style="height: 188.8px;"><td class="align-left" style="height: 188.8px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Coefficient  coût</span>  
</td><td class="align-left" style="height: 188.8px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Coefficient d'achat à appliquer au prix catalogue remisé pour calculer le prix de revient.</span>

<span style="color: rgb(0,0,0);">Il s'agit du Coefficient d'achat défini et modifiable dans la configuration du module. </span>

<span style="color: rgb(0,0,0);">Normalement il n'est pas importé à ce stade sauf si vous avez des coefficients différents selon vos produits ; dans ce cas, ne pas utiliser le menu **<span style="color: rgb(24,139,175);">Mise à jour des coefficients</span>**</span>

</td><td class="align-left" style="height: 188.8px; width: 24.5614%;"><span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Oui SI </span>**</span><span style="color: rgb(0,0,0);">vous utilisez plusieurs niveaux de prix</span>

</td></tr><tr style="height: 102.383px;"><td class="align-left" style="height: 102.383px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Prix de revient</span>  
</td><td class="align-left" style="height: 102.383px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Prix fournisseur catalogue remisé x coefficient d'achat + charges pour les achats en nombre</span>

</td><td class="align-left" style="height: 102.383px; width: 24.5614%;"><span style="color: rgb(0,0,0);">Non</span>

<span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Calcul automatique</span>**</span>

</td></tr><tr style="height: 80.2px;"><td class="align-left" style="height: 80.2px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Prix de revient unitaire</span>  
</td><td class="align-left" style="height: 80.2px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Prix catalogue fournisseur remisé x coefficient d'achat   
</span>

</td><td class="align-left" style="height: 80.2px; width: 24.5614%;"><span style="color: rgb(0,0,0);">Non</span>

<span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Calcul automatique</span>**</span>

</td></tr><tr style="height: 102.383px;"><td class="align-left" style="height: 102.383px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Code-barres</span></td><td class="align-left" style="height: 102.383px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Alimente et met à jour le champ "Code barre" des fiches produits de Dolibarr</span>  
</td><td class="align-left" style="height: 102.383px; width: 24.5614%;"><span style="color: rgb(0,0,0);">Non</span></td></tr><tr style="height: 79.9833px;"><td class="align-left" style="height: 79.9833px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Pays</span>  
</td><td class="align-left" style="height: 79.9833px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Alimente et met à jour le champ "Pays d'origine" des fiches produits de Dolibarr</span>  
</td><td class="align-left" style="height: 79.9833px; width: 24.5614%;"><span style="color: rgb(0,0,0);">Non</span></td></tr><tr style="height: 63.4px;"><td class="align-left" style="height: 63.4px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Notes</span>

</td><td class="align-left" style="height: 63.4px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Alimente et met à jour le champ "Notes" des fiches produits de Dolibarr</span>  
</td><td class="align-left" style="height: 63.4px; width: 24.5614%;"><span style="color: rgb(0,0,0);">Non</span></td></tr><tr style="height: 211.2px;"><td class="align-left" style="height: 211.2px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Fournisseur préféré</span>

</td><td class="align-left" style="height: 211.2px; width: 53.9811%;"><span style="color: rgb(0,0,0);"><span style="color: rgb(24,139,175);">**À utiliser si vous avez plusieurs fournisseurs pour un produit** </span>et que vous souhaitez que ce fournisseur précis soit utilisé pour calculer le prix de vente, quels que soient les imports futurs venant des autres fournisseurs.</span>

<span style="color: rgb(0,0,0);">Par défaut, **<span style="color: rgb(24,139,175);">sans information</span>** sur ce champ **<span style="color: rgb(24,139,175);">ou s'il n'existe pas dans le CSV</span>**, le dernier prix fournisseur importé met à jour le prix de vente du produit</span>

</td><td class="align-left" style="height: 211.2px; width: 24.5614%;"><span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Oui</span>**</span>

<span style="color: rgb(0,0,0);">Mettre 1 si ce fournisseur est le fournisseur préféré pour ce produit</span>

</td></tr><tr style="height: 63.4px;"><td class="align-left" style="height: 63.4px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Poids</span>

</td><td class="align-left" style="height: 63.4px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Indiquer le chiffre, sans unité</span>  
</td><td class="align-left" style="height: 63.4px; width: 24.5614%;"><span style="color: rgb(0,0,0);">Non</span>  
</td></tr><tr style="height: 98.2px;"><td class="align-left" style="height: 98.2px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Unité de poids</span>

</td><td class="align-left" style="height: 98.2px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Les unités suivantes sont prises en compte, **<span style="color: rgb(24,139,175);">à libeller de cette manière<span style="color: rgb(0,0,0);"> </span></span>**<span style="color: rgb(24,139,175);"><span style="color: rgb(0,0,0);">: </span></span></span>

<span style="color: rgb(0,0,0);">mg ; g ; kg ; tonne ; pound...</span>

</td><td class="align-left" style="height: 98.2px; width: 24.5614%;"><span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Oui </span>**</span>**<span style="color: rgb(53,152,219);">Si </span>**<span style="color: rgb(0,0,0);">vous importez un poids</span>

</td></tr><tr style="height: 35.4px;"><td class="align-left" style="height: 35.4px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Longueur</span>

</td><td class="align-left" style="height: 35.4px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Indiquer le chiffre, sans unité</span>  
</td><td class="align-left" style="height: 35.4px; width: 24.5614%;"><span style="color: rgb(0,0,0);">Non</span>  
</td></tr><tr style="height: 80.2px;"><td class="align-left" style="height: 80.2px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Unité de longueur</span>

</td><td class="align-left" style="height: 80.2px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Les unités suivantes sont prises en compte **<span style="color: rgb(24,139,175);"><span style="color: rgb(0,0,0);"> <span style="color: rgb(24,139,175);">à libeller de cette manière<span style="color: rgb(0,0,0);"> </span></span></span></span>**<span style="color: rgb(24,139,175);"><span style="color: rgb(0,0,0);">:</span></span>**<span style="color: rgb(24,139,175);"><span style="color: rgb(0,0,0);"> mm </span></span>**; **cm** ; **dm** ; **m** ; **foot** ; **inch**</span>  
</td><td class="align-left" style="height: 80.2px; width: 24.5614%;"><span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Oui </span>**</span>**<span style="color: rgb(53,152,219);">Si </span>**<span style="color: rgb(0,0,0);">vous importez une longueur</span>

</td></tr><tr style="height: 44.2px;"><td class="align-left" style="height: 44.2px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Surface</span>

</td><td class="align-left" style="height: 44.2px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Indiquer le chiffre, sans unité</span>  
</td><td class="align-left" style="height: 44.2px; width: 24.5614%;">Non  
</td></tr><tr style="height: 80.2px;"><td class="align-left" style="height: 80.2px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Unité de surface</span>

</td><td class="align-left" style="height: 80.2px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Les unités suivantes sont prises en compte  **<span style="color: rgb(24,139,175);">à libeller de cette manière<span style="color: rgb(0,0,0);"> </span></span>**:</span>

**<span style="color: rgb(0,0,0);">m2 ; dm2 ; cm2 ; mm2 ; foot2 ; inch2</span>**

</td><td class="align-left" style="height: 80.2px; width: 24.5614%;"><span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Oui </span>**</span>**<span style="color: rgb(53,152,219);">Si </span>**<span style="color: rgb(0,0,0);">vous importez une surface</span>

</td></tr><tr style="height: 40.4px;"><td class="align-left" style="height: 40.4px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Volume</span>

</td><td class="align-left" style="height: 40.4px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Indiquer le chiffre, sans unité</span>  
</td><td class="align-left" style="height: 40.4px; width: 24.5614%;"><span style="color: rgb(0,0,0);">Non</span>  
</td></tr><tr style="height: 102.6px;"><td class="align-left" style="height: 102.6px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Unité de volume</span>

</td><td class="align-left" style="height: 102.6px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Les unités suivantes sont prises en compte **<span style="color: rgb(24,139,175);">à libeller de cette manière<span style="color: rgb(0,0,0);"> </span></span>**: </span>

**<span style="color: rgb(0,0,0);">m3 ; dm3 ou l (litre) ; cm3 ou ml ; mm3 ou µl ; foot3 ; inch3</span>**

</td><td class="align-left" style="height: 102.6px; width: 24.5614%;"><span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Oui </span>**</span>**<span style="color: rgb(53,152,219);">Si </span>**<span style="color: rgb(0,0,0);">vous importez un volume</span>

</td></tr><tr style="height: 179px;"><td class="align-left" style="height: 179px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Champs personnalisés</span>

</td><td class="align-left" style="height: 179px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Vous retrouverez dans la procédure d'import tout champ supplémentaire personnalisé que vous aurez créé via Configuration &gt; Modules &gt; Produits &gt; onglet "Attributs supplémentaires"</span>

<span style="color: rgb(0,0,0);">Vous pouvez donc ajouter à votre fichier d'import les colonnes correspondantes pour alimenter ces champs</span>

<span style="color: rgb(0,0,0);">N'oubliez pas de déclarer dans la constante cachée le ou les codes des champs qui doivent être mis à jour</span>

</td><td class="align-left" style="height: 179px; width: 24.5614%;"><span style="color: rgb(0,0,0);">Non</span>

<span style="color: rgb(0,0,0);">ATTENTION à déclarer dans la constante cachée le ou les champs supplémentaires qui doivent être mis à jour.</span>

</td></tr><tr style="height: 35.4px;"><td class="align-left" style="height: 35.4px; width: 26.8556%;"><span style="color: rgb(0,0,0);">URL</span>

</td><td class="align-left" style="height: 35.4px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Lien vers une page web si elle existe</span>  
</td><td class="align-left" style="height: 35.4px; width: 24.5614%;"><span style="color: rgb(0,0,0);">Non</span>  
</td></tr><tr><td style="width: 26.8556%;"><span style="color: rgb(0,0,0);">Statut (toujours à 0)</span>

</td><td style="width: 53.9811%;"><span style="color: rgb(0,0,0);">Information technique destinée à gérer correctement l'information relative aux statuts des articles importés (produits ou services).</span>

**<span style="color: rgb(186,55,42);">OBLIGATOIRE et TOUJOURS À 0</span>**

</td><td style="width: 24.5614%;"><span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Oui </span>**</span>

<span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Cette colonne ne doit jamais être vide et ne comporte que la valeur 0</span>**</span>

</td></tr><tr style="height: 253.6px;"><td class="align-left" style="height: 253.6px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Coefficient Vente</span>  
</td><td class="align-left" style="height: 253.6px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Coefficient de vente à appliquer au prix catalogue ou au prix de revient (selon la configuration) pour calculer le prix de vente.</span>

<span style="color: rgb(0,0,0);">Il s'agit du coefficient. de vente défini et modifiable dans la configuration du module. </span>

<span style="color: rgb(0,0,0);">Normalement il n'est pas importé à ce stade sauf si vous avez des coefficients différents selon les produits ; dans ce cas, ne pas utiliser le menu " mise à jour des coefficients"</span>

</td><td class="align-left" style="height: 253.6px; width: 24.5614%;"><span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Oui </span><span style="color: rgb(53,152,219);">Si</span>** les coefficients sont différents  
selon les produits</span>

<span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Oui </span>**</span>**<span style="color: rgb(53,152,219);">Si </span>**<span style="color: rgb(0,0,0);">plusieurs niveaux de prix et dans ce cas : 1 colonne par niveau de prix</span>

</td></tr><tr style="height: 110px;"><td class="align-left" style="height: 110px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Prix de vente minimum non remisé</span>  
</td><td class="align-left" style="height: 110px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Permet de définir un prix minimum de vente. Doit être importé via CSV</span>

**<span style="color: rgb(24,139,175);">Ne se calcule pas automatiquement</span>**

</td><td class="align-left" style="height: 110px; width: 24.5614%;"><span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Oui </span>**</span>**<span style="color: rgb(53,152,219);">Si </span>**<span style="color: rgb(0,0,0);">vous l'utilisez</span>

<span style="color: rgb(0,0,0);">1 colonne / niveau de prix</span>

</td></tr><tr style="height: 192.2px;"><td class="align-left" style="height: 192.2px; width: 26.8556%;"><span style="color: rgb(0,0,0);">Prix de vente non remisé</span>  
</td><td class="align-left" style="height: 192.2px; width: 53.9811%;"><span style="color: rgb(0,0,0);">Prix de revient unitaire x coeff. de vente</span>

<span style="color: rgb(0,0,0);"> ou </span>

<span style="color: rgb(0,0,0);">Prix catalogue unitaire x coeff. de vente selon la configuration</span>

</td><td class="align-left" style="height: 192.2px; width: 24.5614%;"><span style="color: rgb(0,0,0);"><span style="color: rgb(24,139,175);">**Non**</span> si vous utilisez les coefficients de vente.   
**<span style="color: rgb(24,139,175);">Calcul automatique </span>**</span>

<span style="color: rgb(186,55,42);"><span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Oui </span>**</span>**<span style="color: rgb(53,152,219);">Si </span>**vous n'utilisez pas les coefficients de vente. Dans ce cas vous importez vos prix de vente dans cette colonne.</span>

</td></tr><tr style="height: 111.6px;"><td style="height: 111.6px; width: 26.8556%; text-align: justify;"><span style="color: rgb(0,0,0);">Remise client</span>  
</td><td style="height: 111.6px; width: 53.9811%; text-align: justify;"><span style="color: rgb(0,0,0);">Taux de remise accordée aux clients</span>

<span style="color: rgb(0,0,0);">Valable pour tous les clients (l'information est stockée au niveau du prix du produit)</span>

**<span style="color: rgb(24,139,175);">Ex : une opération promotionnelle</span>**

</td><td style="height: 111.6px; width: 24.5614%; text-align: justify;"><span style="color: rgb(0,0,0);">Si import : 1 colonne / niveau de prix</span>  
</td></tr><tr style="height: 59.6px;"><td style="height: 59.6px; width: 26.8556%; text-align: justify;"><span style="color: rgb(0,0,0);">Prix de vente</span>  
</td><td style="height: 59.6px; width: 53.9811%; text-align: justify;"><span style="color: rgb(0,0,0);">Prix de vente remisé pour les clients</span>

</td><td style="height: 59.6px; width: 24.5614%; text-align: justify;"><span style="color: rgb(0,0,0);">Non  
<span style="color: rgb(24,139,175);">**Calcul automatique**</span></span>  
</td></tr><tr style="height: 72.4px;"><td style="height: 72.4px; width: 26.8556%; text-align: justify;"><span style="color: rgb(0,0,0);">TVA vente</span>  
</td><td style="height: 72.4px; width: 53.9811%; text-align: justify;"><span style="color: rgb(0,0,0);">Taux de TVA à appliquer pour la vente</span>  
</td><td style="height: 72.4px; width: 24.5614%; text-align: justify;"><span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Oui </span>**</span>**<span style="color: rgb(53,152,219);">Si </span>**<span style="color: rgb(0,0,0);">différent de 0</span>

</td></tr></tbody></table>


#### **<span style="color: rgb(0,0,0);">4.1.5- Fournisseur multiples pour un même produit</span>**

<span style="color: rgb(0,0,0);">Vous pouvez gérer **<span style="color: rgb(24,139,175);">plusieurs prix fournisseur pour un même produit</span>**. </span><span style="color: rgb(0,0,0);">Pour cela dans votre fichier CSV vous devez mentionner la référence interne du produit. </span>

<span style="color: rgb(0,0,0);">Donc si dans votre import vous disposez d'au moins deux prix fournisseurs nouveaux pour un nouveau produit ; nous importons les deux fournisseurs (même code fournisseur), les références fournisseur pour le produit (qui sont différentes), le libellé (qui doit être identique), la description (de préférence identique également, le module n'en prendra qu'une), les éléments de prix (prix base fournisseur, TVA achat et vente, éventuelles remises, quantité et prix pour la quantité, éventuelles charges...). </span>

<span style="color: rgb(0,0,0);">Dans ce cas précis, lors de la procédure de validation du catalogue, le module va mentionner deux nouveaux produits à créer, avec les deux lignes correspondant aux deux prix fournisseurs. Mais <span style="color: rgb(24,139,175);">**à la création du produit, vous aurez une ligne d'erreur**</span> disant qu'un produit a été créé, puis l'erreur : "le produit existe déjà pour la deuxième ligne". **<span style="color: rgb(24,139,175);">C'est normal</span>** puisque dès le traitement de la première ligne de prix, le produit est créé et du coup le deuxième n'est pas vraiment une création. Nous n'avons pas encore traité dans cette version une procédure plus explicite, **<span style="color: rgb(24,139,175);">mais le produit est bien créé</span>** et <span style="color: rgb(24,139,175);">**vous pourrez ensuite valider les deux lignes de prix pour les deux fournisseurs**</span>, tout à fait normalement. </span>

<span style="color: rgb(0,0,0);">Bien entendu, si vous importez vos prix fournisseurs pour le même produit dans deux fichiers séparés, vous n'aurez pas ce problème.</span>

#### **<span style="color: rgb(0,0,0);">4.1.6 - "Fournisseur préféré" pour le calcul du prix de vente</span>**

<span style="color: rgb(0,0,0);">**<span style="color: rgb(24,139,175);">Si vous avez plusieurs fournisseurs pour un même produit,</span>** vous avez peut-être **<span style="color: rgb(24,139,175);">besoin d'un prix d'achat de référence pour calculer votre prix de vente</span>** : quels que soient les autres prix fournisseurs, **<span style="color: rgb(24,139,175);">c'est sur ce prix-là que vous basez votre calcul du prix de vente</span>**. Or par défaut, le dernier import modifie les prix et donc le prix de vente : donc par défaut, les derniers prix fournisseurs importés vont déterminer les prix de vente. </span>

<span style="color: rgb(0,0,0);">Le module Gestion des prix vous permet **<span style="color: rgb(24,139,175);">d'indiquer lorsqu'un fournisseur doit être considéré comme la référence à conserver pour le calcul des prix de vente d'un produit</span>**, via la notion de "**<span style="color: rgb(24,139,175);">fournisseur préféré</span>**". Ainsi, les imports futurs d'autres prix fournisseurs pour ce produit n'affecteront pas le prix de vente du produit. </span>

<span style="color: rgb(0,0,0);">Pour cela, ajoutez dans votre CSV une **<span style="color: rgb(24,139,175);">colonne </span>**"**<span style="color: rgb(24,139,175);">fournisseur préféré</span>**" et **<span style="color: rgb(24,139,175);">mettez 1</span>** pour chaque ligne de prix pour laquelle c'est <span style="color: rgb(24,139,175);">**ce tarif**</span> qui doit servir **<span style="color: rgb(24,139,175);">de référence pour le calcul du prix de vente</span>**. </span>

<span style="color: rgb(0,0,0);">Si <span style="color: rgb(24,139,175);">**pas de colonne**</span> dans le CSV ou <span style="color: rgb(24,139,175);">**0 est indiqué**<span style="color: rgb(0,0,0);"> dans la colonne</span></span> : **<span style="color: rgb(24,139,175);">le prix de vente du produit est mis à jour avec chaque nouvel import</span>** pour ce produit, quel que soit le fournisseur. </span>

<span style="color: rgb(0,0,0);">Si <span style="color: rgb(24,139,175);">**1 est indiqué**</span> dans le CSV : les imports futurs avec d'autres prix venant d'autres fournisseurs n'**<span style="color: rgb(24,139,175);">affecteront pas les prix de vente qui resteront ceux du fournisseur indiqué</span>** comme "**<span style="color: rgb(24,139,175);">fournisseur préféré</span>**".</span>

<p class="callout info"><span style="color: rgb(0,0,0);"><span style="color: rgb(24,139,175);">**Note**</span> : Si vous calculez des coefficients de vente ou d'achat différents selon les marques de vos produits, les fournisseurs, ou encore les niveaux de prix, vous devrez alors les intégrer à vos fichiers d'import. En effet, passer par la configuration du module pour gérer les coefficients implique d'appliquer le même coefficient à tous les produits, que ce soit de manière globale ou par devise, ce qui ne convient pas dans ces cas précis.</span></p>