> For the complete documentation index, see [llms.txt](https://docs.dailybiz.com/index/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dailybiz.com/index/gestion-commerciale-bis/editions/marge-negoce.md).

# marge-negoce

Analyse rentabilité

Dans le [**menu Options/Pièces commerciales**, **thème Articles**](https://docs.dailybiz.com/gestion-commerciale/options/pieces-commerciales#articles), vous choisissez si vous souhaitez **afficher les prix d'achats et la marge dans les pièces commerciales de vente**.

Couplé à cet affichage dans les pièces, vous disposez de l'**édition d'analyse de marge brute** basée sur ces données calculées ici.

{% hint style="warning" %}
Cette édition est calculée uniquement si l'option d'affichage de la marge dans les pièces est activée.
{% endhint %}

Pour rendre visible ou pas la marge dans les pièces de vente, vous devez paramétrer l'option "**Souhaitez-vous afficher les prix d'achat et la marge dans les pièces commerciales de vente ?**"

{% hint style="info" %}
Que l'option soit activée ou non, le prix d'achat et la marge seront toujours calculés dans la pièce.
{% endhint %}

{% hint style="info" %}
Différentes techniques de valorisation du prix d'achat :

**Fiche article** : correspond au prix d'achat de la fiche article.

**Dernier prix d'achat** : correspond au prix d'achat de la dernière facture fournisseur validée.

**Stock (PAMP, FIFO, LIFO)** : correspond au prix d'achat valorisé selon la méthode de gestion de stock retenue. Dans le cas d'un article géré par lots, correspond au prix d'achat du lot.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.dailybiz.com/index/gestion-commerciale-bis/editions/marge-negoce.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
