> 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="/files/Ymgqoj58Zq7i3HMDIcqh" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/aiB2nbiioOQf2t9KFMo9" 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="/files/cP2waoZ79p4XiYS0N5zt" 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="/files/RvCvsmkPE3AMJpi0Wzf8" 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="/files/1XaLM6W4PCsknlvcC10K" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/tFMj7OgPVX7gtEAbImd0" 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="/files/Rw0Szcqx98QGFwqA6zwd" 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc.simax.fr/fonctionnelle/facturation/documents-particuliers/avoirs.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
