> 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/ventes/factures/generer-un-avoir.md).

# generer-un-avoir

{% hint style="warning" %}
Tout avoir n'est possible que si la facture concernée a été **validée**.

Si ce n'est pas le cas, le bouton![](https://297857182-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQ9LMIGmeG0qrLUTeglcC%2Fuploads%2Fgit-blob-8807bfb8acbacbd1203868be25653008a929babc%2Favoir.JPG?alt=media)n'est pas visible.
{% endhint %}

{% hint style="success" %}
Pour créer un avoir à partir d'une facture, vous devez tout d'abord la sélectionner dans le tableau des factures.

Vous pouvez aussi créer vos avoirs directement depuis le **menu Avoirs**.
{% endhint %}

1. Cliquez sur ![](https://297857182-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQ9LMIGmeG0qrLUTeglcC%2Fuploads%2Fgit-blob-d1b276173964ef2d2b4141f36940a8666fe1ab8a%2Fpencilbox%20\(3\).JPG?alt=media) ou **\<F4>** sur la ligne de la facture pour laquelle vous souhaitez générer l'avoir.
2. Cliquez sur le bouton ![](https://297857182-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQ9LMIGmeG0qrLUTeglcC%2Fuploads%2Fgit-blob-8807bfb8acbacbd1203868be25653008a929babc%2Favoir%20\(1\).JPG?alt=media).
3. Confirmez le message d'alerte.

{% hint style="info" %}
L'avoir est alors immédiatement créé et donc visible dans le **menu Avoirs** avec un commentaire précisant à partir de quelle facture il a été créé, dans son objet.

Pour le valider vous devez vous ouvrir la pièce (avoir) que vous venez de créer et cliquer sur![](https://297857182-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FQ9LMIGmeG0qrLUTeglcC%2Fuploads%2Fgit-blob-2435bfa626f2927c82072a8f199562aef72e4e16%2Fvalider%20\(9\).JPG?alt=media).

Pour l'affecter à la pièce d'origine, si tel est votre souhait, vous devez le valider puis vous rendre au menu Ventes/Règlements. L'avoir apparaîtra donc dans votre liste, en cliquant dessus, vous pouvez cocher la facture et valider l'opération.
{% endhint %}

Vous pouvez alors le modifier avant son impression et sa validation.


---

# 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/ventes/factures/generer-un-avoir.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.
