> For the complete documentation index, see [llms.txt](https://docs.openstamanager.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.openstamanager.com/2.4.33/guide/esempi/gestione-acconto.md).

# Gestione acconto

Come gestire gli acconti nei documenti di vendita con OpenSTAManager

#### Esempio:&#x20;

*Registrazione di un preventivo per un importo di 1000€ con acconto di 300€ e successivo saldo pari a 700€*

Creare un **preventivo** e inserire le seguenti righe:

1. Una o più righe per un importo pari ai **1000€**
2. Una riga con importo pari a **300€** che fa riferimento all'**acconto**
3. Una riga con importo pari a **-300€** che fa riferimento alla **detrazione** dell'acconto

![](https://firebasestorage.googleapis.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZJeLg23eVDvrCv74U7-887967055%2Fuploads%2F2lSsh5b757dplX4NwfQq%2Ffile.png?alt=media)

Successivamente creare una **fattura** **di** **vendita** importando la riga dell'acconto con l'importo di **300€** dal preventivo.

![](https://firebasestorage.googleapis.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZJeLg23eVDvrCv74U7-887967055%2Fuploads%2FaNmQRSKdjlryuALtcqDK%2Ffile.png?alt=media)

Infine creare una nuova **fattura** importando le **due** righe rimaste:

1. Riga del preventivo con l'importo totale del preventivo pari a **1000€**
2. Riga del preventivo con l'importo pari a **-300€** che fa riferimento alla detrazione dell'acconto

![](https://firebasestorage.googleapis.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LZJeLg23eVDvrCv74U7-887967055%2Fuploads%2F16XFmEWcSiIwPnivQO67%2Ffile.png?alt=media)


---

# 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.openstamanager.com/2.4.33/guide/esempi/gestione-acconto.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.
