> 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).

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

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

<figure><img src="/files/7zX3Y3zcYWYM0ZYgbWI3" 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="/files/k53TSqGnOpoDz6AmOrjR" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/YcqaNcqnzyGT0N65eZEL" alt=""><figcaption></figcaption></figure>

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

<figure><img src="/files/79i2CfOLgnBQxgZSdpjn" 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/achat/factures-fournisseurs/facture.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.
