> For the complete documentation index, see [llms.txt](https://doc.simax.fr/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.simax.fr/fonctionnelle/facturation/documents-particuliers/avoirs.md).

# Avoirs

## Contexte

**Cas client – BRED Allemagne**\
BRED Allemagne a récemment passé une **commande de 100 commodes** pour un montant total de **8 000 €**.\
**MASOCIETE** a émis la facture correspondante, et BRED Allemagne a procédé au **paiement intégral**.\
Après la livraison, BRED Allemagne a constaté que **10 commodes étaient défectueuses**, représentant un montant de **800 €**. Informée de la situation, **MASOCIETE a accepté le retour** des articles concernés et a émis une **facture d’avoir** en vue du remboursement.

## Implémentation dans Simax

**Première étape :** il est nécessaire de **créer la commande** puis de **générer la facture** correspondante.

<figure><img src="https://1324884545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBJ3Kpe0vg6NlDz0QDIX%2Fuploads%2FZxUG7ED7O4MtI7ylLghj%2FCapture221.PNG?alt=media&amp;token=8d9724f5-0858-4c83-8d55-a78711c0a0a3" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1324884545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBJ3Kpe0vg6NlDz0QDIX%2Fuploads%2FMlwwrA68qYAhMYJT8xXr%2FCapture222.PNG?alt=media&amp;token=6dcede98-89b7-4d7b-add6-76dc86906f3c" alt=""><figcaption></figcaption></figure>

Ensuite, vous pouvez **créer l’avoir** correspondant à la facture en **sélectionnant la facture concernée** et en cliquant sur **\[\[Avoir]]**.

<figure><img src="https://1324884545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBJ3Kpe0vg6NlDz0QDIX%2Fuploads%2FVo90PNabcPplc3ZIkZCp%2FCapture223.PNG?alt=media&amp;token=0e549a82-4ab6-4db0-8c22-908bfc6a8738" alt=""><figcaption></figcaption></figure>

Il est nécessaire de **modifier la ligne de l’avoir** en fonction des articles à retourner.\
Dans notre exemple, **10 commodes** doivent être retournées. Il convient également de **sélectionner un motif** pour l’avoir (les motifs peuvent être créés via : **Fichiers > Vente > Motifs d’avoir**).

<figure><img src="https://1324884545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBJ3Kpe0vg6NlDz0QDIX%2Fuploads%2FadEwE0JvwRp6AFEhrDkF%2FCapture224.PNG?alt=media&amp;token=8dc29b38-c254-44e9-9411-1f6b7beb626c" alt=""><figcaption></figcaption></figure>

**Terminez en cliquant sur \[\[Enregistrer]].**

À noter : vous pouvez consulter les **détails de la facture, de la commande et du bon de livraison** associés à l’avoir dans la section **\[Pièces liées]**.

<figure><img src="https://1324884545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBJ3Kpe0vg6NlDz0QDIX%2Fuploads%2F7JT49oOV63LBk1vIYsr8%2FCapture225.PNG?alt=media&amp;token=5ab8cd5f-95f2-4531-8500-92434f209a4b" alt=""><figcaption></figcaption></figure>

L’avoir peut être consulté dans **Vente > Facturation > Avoirs**.

<figure><img src="https://1324884545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBJ3Kpe0vg6NlDz0QDIX%2Fuploads%2FT9qJAFJBt1KEuIx6VaNm%2FCapture226.PNG?alt=media&amp;token=a921cee3-5674-45c8-b2a9-9fc248c4cc5d" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Il est possible de consulter une **statistique mensuelle des avoirs par motif** dans :\
**Vente > Facturation > Stats > Avoir par motif**.

{% endhint %}

<figure><img src="https://1324884545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBJ3Kpe0vg6NlDz0QDIX%2Fuploads%2FunG8YP5ox5sEAXgTe4Jj%2FCapture227.PNG?alt=media&amp;token=8c50d133-021e-4f2f-95d4-89ad257bfe19" alt=""><figcaption></figcaption></figure>


---

# 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://doc.simax.fr/fonctionnelle/facturation/documents-particuliers/avoirs.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.
