# Flow with pre-filled quantity

In **Settings > Plug-ins and Option Selection**, under the **\[Logistics]** tab, check the **Pre-fill quantity** option, then **save.**

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

To create an order, go to **Sales > Order > Orders**, then click **\[\[ New ]].**

{% hint style="warning" %}

* **Caution:** Before creating the order, verify that there is sufficient stock for the items concerned (Stock > Stock status)
* If the **OK payment box** for the order is not checked, the order remains pending payment.The status is determined automatically based on the payment deadline defined for the customer:
* **If the payment terms** require payment upon ordering, a **100% deposit** must be paid before the order can be confirmed.
* **If no deposit is required** according to the payment terms, the order automatically changes to status 40 – Validated and payment OK.
  {% endhint %}

Select your order, then click on **\[\[ Preparation voucher ]].**

Select the **preparator**

A **preparation vouche**r opens. In the **list of prepared items on the left**, **Simax** automatically pre-fills and selects the **batches of items to be decanted.**

However, you can override this selection and access the **detailed lines** to manually choose the **stock** that suits you.

{% hint style="success" %}
**Simax** selects the stock to be used based on the use-by date and **best-before date**, giving priority to items with the **closest use-by date** and **best-before date.**

You can click on **\[\[ Save without validating ]]** if you want to **put the preparation on hold** and continue later. The preparation slip can be found later:

from your order form in **\[Related documents]**

or from **Stock > Preparation > Preparation vouchers**.

You can click on **\[\[Cancel Preparation voucher]]** to **cancel the preparation voucher** if necessary.
{% endhint %}

You can now validate the **preparation voucher** and generate the **delivery note** via **\[\[ Validate ⇒ DN ]]**.

A **delivery note** is generated and the lines are automatically filled in according to what has been prepared in the preparation voucher.

You can now **complete the flow** by **validating** the **delivery note** via **\[\[ Validate ]]**.

{% hint style="success" %}

* You can click on **\[\[ Save without validating ]]** for the delivery note (DN) if you wish to continue later. In this case, the DN will not affect stock levels.&#x20;
* You will be able to find the DN later:directly from your order form in **\[Related documents]**\
  or from **Stock> Delivery > Delivery notes**.
* You can click on **\[\[Cancel DN]]** if necessary. In this case, the preparation voucher will need to be revalidated to generate a new, correct DN.
* You can also click **\[\[Close]]** to set the BL aside and deal with it later.
  {% endhint %}

**After the delivery note (DN) has been validated**, your **stock** levels are reduced. The **movement history c**an be viewed via:

**Stock > Movements > Movement history.**

{% hint style="success" %}
At each stage (**preparation, delivery**), the **status o**f your **order** is updated automatically.

Access: **Sales > Order > Orders.**
{% endhint %}


---

# Agent Instructions: 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:

```
GET https://doc.simax.fr/documentation-simax-anglais/management-of-stock-and-logistics/order-flow-preparation-delivery/flow-with-pre-filled-quantity.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
