> 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.8.3/guide/esempi/magazzino.md).

# Quantità di magazzino

Come gestire le quantità di magazzino in OpenSTAManager

Nel caso magazzino ci presentino articoli con quantità negativa, è possibile procedere ad allinearli cliccando nel rispettivo record.

Dalla schermata di dettaglio dell'articolo, è quindi possibile andare alla sezione Giacenza totale, abilitare Modifica quantità, modificare la quantità desiderata e inserire una Descrizione movimento.

![](https://content.gitbook.com/content/2PiRYHiPQyyI5VSQPG8a/blobs/tMXM7ZWVbNjORxTqGO7f/image.png)

La quantità dell'articolo ora sarà quella appena selezionata.

Nel modulo **Movimenti** sarà possibile visualizzare il movimento generatosi dall'operazione appena eseguita.

![](https://content.gitbook.com/content/2PiRYHiPQyyI5VSQPG8a/blobs/Ahvd4ifcEgsK2wn09agK/image.png)

In alternativa è possibile aggiungere un movimento per allineare la quantità dell'articolo[ dal modulo movimenti.](https://docs.openstamanager.com/modules/magazzino/movimenti#creazione)

## ● Articolo fittizio

{% hint style="info" %}
Nel caso in cui si debba aggiungere un servizio, come ad esempio le spese di spedizione, è possibile farlo creando un nuovo **Articolo.**
{% endhint %}

Il procedimento è uguale a quello di[ Creazione di un Articolo](https://docs.openstamanager.com/modules/magazzino/articoli-1#creazione) ma bisognerà abilitare l'opzione Questo articolo è un servizio, dalla sezione Vendita. Si dovrà inoltre specificare un prezzo di vendita.

![](https://content.gitbook.com/content/2PiRYHiPQyyI5VSQPG8a/blobs/Fp75ARHWEVvRZqhexsbI/image.png)

Spuntando la casella **Questo articolo è un servizio** le quantità non saranno considerate, in questo modo rimarranno fisse a **0** mentre il **Prezzo di vendita** sarà il prezzo stabilito per il servizio.

Grazie alla possibilità di aggiungere un articolo fittizio si potranno ad esempio aggiungere le spese di spedizione in un DDT in uscita.

## ● Utilizzare articoli con quantità negativa nei documenti

Il magazzino viene popolato tramite le fatture di acquisto, può succedere però per vari motivi che questa fattura arrivi in data successiva alla ricezione della merce, e che si abbia la necessità di inserirla in un'attività, DDT o fattura di vendita.

Per poter far ciò senza modificare manualmente le quantità in magazzino rischiando di commettere errori, si può abilitare l'impostazione "Permetti selezione articoli con quantità minore o guale a zero in Documenti di Vendita" in Strumenti/impostazioni/Generali.

<figure><img src="https://content.gitbook.com/content/2PiRYHiPQyyI5VSQPG8a/blobs/CH27jVds7ZgTOgtycM6Z/immagine.png" alt=""><figcaption></figcaption></figure>

Inserendo questi articoli nei vari documenti verranno automaticamente generati dei movimenti che li porteranno in quantità negativa, fino al momento dalla registrazione della relativa fattura d'acquisto dove le quantità corrette verranno ripristinate.&#x20;


---

# 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.8.3/guide/esempi/magazzino.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.
