Module Margins: Difference between revisions

From Dolibarr ERP CRM Wiki
Jump to navigation Jump to search
Tag: 2017 source edit
 
(15 intermediate revisions by one other user not shown)
Line 18: Line 18:




= Introduction =
=Introduction=


This module is included in Dolibarr since version 3.3.0
This module is included in Dolibarr since version 3.3.0


The margins module allows you to calculate and display the margins made on sales. Summary tables provide a view of the margins on each document (commercial proposal, order, contract, invoice) as well as overall, by user, product and customer.
The margins module allows you to calculate and display the margins made on sales. Summary tables provide a view of the margins on each document (commercial proposal, order, contract, invoice) as well as overall, by user, product, and customer.


The margin can be calculated by default against the best purchase price or the AWP price (Aveage Weighted Price), although there is the possibility of free entry of the purchase price at any time.
The margin can be calculated by default against the best purchase price or the AWP price (Average Weighted Price), although there is the possibility of free entry of the purchase price at any time.


= Installation =
=Installation=
{{NoInstallModuleEn}}
{{NoInstallModuleEn}}


= Configuration =
=Configuration=
{{ToTranslate}}
Pour utiliser ce module, il vous faut d'abord l'activer. Pour cela, après s'être connecté avec un compte administrateur, aller sur la page "Accueil - Configuration - Modules".


Choisissez l'onglet dans lequel apparaît le module puis cliquez sur "Activer".
To use this module, you must first activate it. To do this, after logging in with an administrator account, go to the "Home - Configuration - Modules" page.


Le module est alors activé.  
Choose the tab where the module appears and click on "Activate".


Définissez vos paramètres de fonctionnement global pour le module :
The module is then activated.
* Choix du type de marge géré : marge brute ou marge nette
* Affichage du taux de marge ou du taux de marque
* Comportement du module si le prix d'achat n'est pas renseigné dans les lignes :
** À "ON" la ligne est prise en compte avec une marge nulle (on force le prix d'achat comme égal au prix de vente)
** À "OFF" la ligne est prise en compte avec une marge égale au prix de vente (on force le prix d'achat à 0).
* Choix d'une méthode de gestion des remises globales : sur le total, sur les produits ou sur les services
* (Facultatif) définir un type de contact à utiliser pour attribuer les marges d'un document à un autre utilisateur que celui attribué comme commercial sur le tiers. Il est possible d'utiliser un type de contact pré-défini de Dolibarr, ou d'en créer un pour cet usage (dans Configuration -> Dictionnaires -> Types de contact).


=Gérer les prix d'achat/coûts de revient=
Define your global operating parameters for the module:
Renseignez sur vos fiches produits et services, les prix d'achat fournisseurs – vous pouvez en avoir plusieurs. Ils seront proposés en choix de prix d'achat sur les lignes de saisie des propositions commerciales, commandes clients et factures clients (liste déroulante) – ils permettent en outre de créer les commandes fournisseurs.
Sur les fiches fournisseurs des produits et services, vous avez à disposition un champ supplémentaire nommé « Charges » qui vous permet d'ajouter au prix d'achat fournisseur une charge qui vous est propre qui viendra s'ajouter au prix d'achat. Le total sera le coût de revient de votre produit ou service.
En choisissant dans le paramétrage de calculer la marge nette, tous les calculs de marge décrits ci-après seront donc faits sur ce prix de revient, et non sur le seul prix fournisseur.
Si vous saisissez un prix fournisseur pour un nombre minimum d'articles (par exemple, 100 chaises) parce que vous avez un tarif particulier à partir d'un seuil de produits achetés, vous pouvez également saisir la charge correspondante à ce « lot ». Elle sera répartie pour être prise en compte en coût unitaire sur chaque élément de ce lot commandé.


=Gérer vos commerciaux=
   Choice of the type of margin managed: gross margin or net margin
Pour suivre les marges par commercial, vous devez avoir autant de compte utilisateur que de commercial différent. Il doit s'agir de compte internes à la société, et non de comptes externes.
Ensuite, sur l'onglet « fiche » de vos clients, vous devez choisir un commercial à attacher à ce client. À partir de là, quelque soit l'utilisateur qui crée les factures, les marges seront comptabilisées à ce commercial, sauf si vous définissez un type de contact et un utilisateur différent sur les factures (au cas par cas).


'''Attention''' : Dolibarr permet de pouvoir attribuer plusieurs commerciaux à un tiers. Toutefois, le module Marges pour l'heure ne gère pas ce cas de figure, et vos marges vont être mulitpliées par le nombre de commerciaux indiqués.
   Display of the margin rate or the brand rate
Vous devez donc '''attribuer un seul commercial par tiers''' (le principal), puis les gérer les cas de commerciaux différent via l'onglet "Contacts/Adresse" de chaque document concerné en choisissant l'utilisateur concerné, et le type de contact que vous avez défini dans la configuration du module.


=Saisie d'un document=
   Behavior of the module if the purchase price is not entered in the lines:
Dans la saisie des lignes de propale/commande/facture, choisissez ou saisissez le prix d'achat du produit ou du service afin d'inclure la ligne dans le calcul des marges.


Choix des prix d'achat :
       At "ON" the line is taken into account with a zero margin (the purchase price is forced to be equal to the sales price)
* Si vous saisissez une ligne « libre », vous indiquez le prix de vente et le prix d'achat (ou le prix de revient selon votre choix de calcul global).
* Si vous choisissez un produit ou service de votre base produit/service, vous pourrez choisir un prix fournisseur tel que renseigné sur la fiche, ou encore saisir un prix d'achat libre.
Rappel : si le prix d'achat n'est pas renseigné, la prise en compte de la ligne dans le calcul des marges dépendra du paramètre que vous avez défini dans la configuration du module.


Un tableau récapitulant les marges relatives au document en cours, avec une ligne pour les marges sur les produits, une pour les marges sur les services, et une pour la marge totale du document est présent sur l'écran de chaque document.
       At "OFF" the line is taken into account with a margin equal to the sales price (the purchase price is forced to 0).


= Cas des remises =
   Choose a method for managing global discounts: on the total, on products or on services
Une remise faite sur une ligne sera prise en compte pour le calcul de la marge.
Les remises globales sont prises en compte en fonction du paramétrage du module.


= Récapitulatifs généraux =
   (Optional) Define a contact type to be used to assign the margins of a document to a user other than the one assigned as salesperson on the third party. It is possible to use a predefined contact type of Dolibarr, or to create one for this purpose (in Configuration -> Dictionaries -> Contact types).
Accédez aux récapitulatifs généraux par commercial, par client ou par produit/service en cliquant sur le
menu Marges présent dans Compta/Tréso.


La prise en compte des marges dans les tableaux récapitulatifs est faite sur les '''''factures validées'''''.
=Managing purchase prices/costs=
Pour chaque onglet de cet écran, vous pouvez afficher le tableaux récapitulatif ou le détail par produit, client, ou agent commercial.
 
Vous pouvez également sélectionner une plage de dates de prise en compte des factures validées.
Enter the supplier purchase prices on your product and service sheets - you can have several. They will be proposed as a choice of purchase price on the lines for entering sales proposals, customer orders and customer invoices (drop-down list) - they also allow you to create supplier orders. On the supplier files for products and services, you have an additional field called "Charges" which allows you to add your own charges to the supplier purchase price. The total will be the cost price of your product or service. By choosing to calculate the net margin in the settings, all the margin calculations described below will be made on this cost price, and not on the supplier price alone. If you enter a supplier price for a minimum number of items (for example, 100 chairs) because you have a particular rate from a threshold of products purchased, you can also enter the charge corresponding to this "batch". It will be distributed to be considered as a unit cost on each item of this ordered lot.
 
=Manage your sales people=
To track margins by salesperson, you must have as many user accounts as different salespeople. These accounts must be internal to the company, not external. Then, on the tab "file" of your customers, you must choose a salesperson to attach to this customer. From then on, no matter which user creates the invoices, the margins will be posted to this sales person, unless you define a different type of contact and user on the invoices (on a case by case basis).
 
'''Attention''' : Dolibarr allows you to assign several sales representatives to a third party. However, the Margins module does not manage this case, and your margins will be multiplied by the number of sales representatives indicated.
 
You must therefore assign '''only one salesperson''' per third party (the main one), then manage the cases of different salespersons via the "Contacts/Address" tab of each document concerned by choosing the user concerned, and the type of contact that you have defined in the module configuration.
 
=Entering a document=
In the propale/order/invoice line entry, choose or enter the purchase price of the product or service to include the line in the margin calculation.
 
Choice of purchase prices:
 
*If you enter a "free" line, you indicate the sale price and the purchase price (or the cost price according to your choice of global calculation).
*If you choose a product or service from your product/service base, you will be able to choose a supplier price as indicated on the file, or enter a free purchase price.
 
Reminder:  If the purchase price is not entered, the inclusion of the line in the calculation of margins will depend on the parameter you have defined in the module configuration.
 
A table summarizing the margins for the current document, with a line for the margins on products, one for the margins on services, and one for the total margin of the document is present on the screen of each document.
 
=Case of discounts=
A discount made on a line will be taken into account for the calculation of the margin.  Global discounts are taken into account according to the module settings.
 
=General summaries=
Access general summaries by salesperson, customer or product/service by clicking on the Margins menu in Accounting/Cash Management.
 
The margins in the summary tables are taken into account on the validated invoices.
 
For each tab of this screen, you can display the summary table or the details by product, customer or sales agent. You can also select a date range for validated invoices.

Latest revision as of 07:25, 31 August 2022

Marges
Numéro/ID du module 59000
Doc utilisateur du module This page
Doc développeur du module Module Margin (developer)


Introduction

This module is included in Dolibarr since version 3.3.0

The margins module allows you to calculate and display the margins made on sales. Summary tables provide a view of the margins on each document (commercial proposal, order, contract, invoice) as well as overall, by user, product, and customer.

The margin can be calculated by default against the best purchase price or the AWP price (Average Weighted Price), although there is the possibility of free entry of the purchase price at any time.

Installation

This module is included with the Dolibarr distribution, so there is no need to install it.

Configuration

To use this module, you must first activate it. To do this, after logging in with an administrator account, go to the "Home - Configuration - Modules" page.

Choose the tab where the module appears and click on "Activate".

The module is then activated.

Define your global operating parameters for the module:

   Choice of the type of margin managed: gross margin or net margin

   Display of the margin rate or the brand rate

   Behavior of the module if the purchase price is not entered in the lines:

       At "ON" the line is taken into account with a zero margin (the purchase price is forced to be equal to the sales price)

       At "OFF" the line is taken into account with a margin equal to the sales price (the purchase price is forced to 0).

   Choose a method for managing global discounts: on the total, on products or on services

   (Optional) Define a contact type to be used to assign the margins of a document to a user other than the one assigned as salesperson on the third party. It is possible to use a predefined contact type of Dolibarr, or to create one for this purpose (in Configuration -> Dictionaries -> Contact types).

Managing purchase prices/costs

Enter the supplier purchase prices on your product and service sheets - you can have several. They will be proposed as a choice of purchase price on the lines for entering sales proposals, customer orders and customer invoices (drop-down list) - they also allow you to create supplier orders. On the supplier files for products and services, you have an additional field called "Charges" which allows you to add your own charges to the supplier purchase price. The total will be the cost price of your product or service. By choosing to calculate the net margin in the settings, all the margin calculations described below will be made on this cost price, and not on the supplier price alone. If you enter a supplier price for a minimum number of items (for example, 100 chairs) because you have a particular rate from a threshold of products purchased, you can also enter the charge corresponding to this "batch". It will be distributed to be considered as a unit cost on each item of this ordered lot.

Manage your sales people

To track margins by salesperson, you must have as many user accounts as different salespeople. These accounts must be internal to the company, not external. Then, on the tab "file" of your customers, you must choose a salesperson to attach to this customer. From then on, no matter which user creates the invoices, the margins will be posted to this sales person, unless you define a different type of contact and user on the invoices (on a case by case basis).

Attention : Dolibarr allows you to assign several sales representatives to a third party. However, the Margins module does not manage this case, and your margins will be multiplied by the number of sales representatives indicated.

You must therefore assign only one salesperson per third party (the main one), then manage the cases of different salespersons via the "Contacts/Address" tab of each document concerned by choosing the user concerned, and the type of contact that you have defined in the module configuration.

Entering a document

In the propale/order/invoice line entry, choose or enter the purchase price of the product or service to include the line in the margin calculation.

Choice of purchase prices:

  • If you enter a "free" line, you indicate the sale price and the purchase price (or the cost price according to your choice of global calculation).
  • If you choose a product or service from your product/service base, you will be able to choose a supplier price as indicated on the file, or enter a free purchase price.

Reminder: If the purchase price is not entered, the inclusion of the line in the calculation of margins will depend on the parameter you have defined in the module configuration.

A table summarizing the margins for the current document, with a line for the margins on products, one for the margins on services, and one for the total margin of the document is present on the screen of each document.

Case of discounts

A discount made on a line will be taken into account for the calculation of the margin. Global discounts are taken into account according to the module settings.

General summaries

Access general summaries by salesperson, customer or product/service by clicking on the Margins menu in Accounting/Cash Management.

The margins in the summary tables are taken into account on the validated invoices.

For each tab of this screen, you can display the summary table or the details by product, customer or sales agent. You can also select a date range for validated invoices.