> 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/achat/factures-fournisseurs/facture.md). Agents can also search and read this documentation through its [MCP server](https://doc.simax.fr/~gitbook/mcp).

# Facture

***Voyons le cas de la société CartonPACK :***&#x20;

Après la réception de la commande fournisseur, **CartonPACK** et **COTONOUX** ont procédé à la livraison des produits commandés par **MASOCIETE**.\
Suite à cette réception, les factures d’achat correspondantes ont été établies par **CartonPACK** et **COTONOUX** pour **MASOCIETE**.\
Concernant **CartonPACK**, un avoir de **500 euros** a été émis en raison de **500 cartons** constatés comme défectueux lors du contrôle de réception.

#### Implémentation&#x20;

### Facturation d’un bon de réception

#### Facture d’achat

Pour créer la facture d’achat, nous allons sélectionner le bon de réception et **\[\[Facture d’achat]]**.

<figure><img src="https://1324884545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBJ3Kpe0vg6NlDz0QDIX%2Fuploads%2Fb1l2OpXPTOC9lZz5YfOT%2FBouton%20facture%20d'achat.png?alt=media&amp;token=51f700a8-34b0-4e2f-9c96-4c1643aabc69" alt=""><figcaption></figcaption></figure>

Et **\[\[Enregistrer]]**.

<figure><img src="https://1324884545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBJ3Kpe0vg6NlDz0QDIX%2Fuploads%2FGMB0Q3DxA3Amm1hoQMHw%2FCr%C3%A9er%20facture%20d'achat%20vrai.png?alt=media&amp;token=201d1b19-1384-4dd6-af46-838854288f58" alt=""><figcaption></figcaption></figure>

La facture est maintenant visible dans la liste des factures d’achat.

#### Facture d’avoir

Pour la demande d’avoir sur facture de 50 euros, nous allons dans **Achat > Facture fournisseur > Facture d’achat**.

Par la suite, nous allons sélectionner la facture d’achat et puis sur **\[\[Avoir]]**.&#x20;

<figure><img src="https://1324884545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBJ3Kpe0vg6NlDz0QDIX%2Fuploads%2FgGwrJbx9Ndhlx3b45Mgk%2FBouton%20Avoir%20vrai.png?alt=media&amp;token=3e3b532b-796c-405a-bbfc-655aecc50a6c" alt=""><figcaption></figcaption></figure>

Modifions le montant de l’avoir et **\[\[Enregistrer]]**.&#x20;

<figure><img src="https://1324884545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBJ3Kpe0vg6NlDz0QDIX%2Fuploads%2F69qCceatTVpfJwFfC9Hz%2FAvoir%20sur%20achat%20vrai.png?alt=media&amp;token=ed9bae1d-d5a2-4e97-85dc-278648f6eb07" alt=""><figcaption></figcaption></figure>

L’avoir est visible dans la liste.&#x20;

<figure><img src="https://1324884545-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FvBJ3Kpe0vg6NlDz0QDIX%2Fuploads%2FXSatMqgdopc7dOQvRs95%2FListe%20avoir%20sur%20achat.PNG?alt=media&amp;token=478c3069-a714-48c8-b53e-eeafa3c74314" 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/achat/factures-fournisseurs/facture.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.
