---
title: "Document Types - Stock Controls"
canonical: "https://wiki.soft1.eu/space/SS5EN/1035403265/Document%20Types%20-%20Stock%20Controls"
format: markdown
---
|  |  |  |
| --- | --- | --- |
| **<span style="color: #ffffff">Parameter </span>** | **<span style="color: #ffffff">Functionality </span>** | **<span style="color: #ffffff">Related Info</span>** |
| **In line ** | - **Set Yes **to perform stock control **when inserting Item lines** (i.e. when an Item is selected or modified in the Doc).
- **Yes No **to perform stock control **only when saving the Doc.** | → Works combined with **Formula **and **Behavior **parameters.<br>→ A message is displayed informing users about the available Stock Item Balance. |
| **Formula** | → Refers to a **numerical formula** (hyperlink ***Formula***) which defines **how Balance Control is performed.**<br>- **Default**: `BL` (Current balance).
- **RM** indications: Refer to outstanding stock quantities *(e.g. orders)*. You can select from various Expression terms such as *Reserved from Sales orders*`(BL - RM2).`
- Formula should have the following form:  
**[Numeric Type] - [Line Quantity] > 0. **If the result is **< 0**, a message (Warning or Prohibition) will be displayed. | → Works combined with **Behavior **and **In line **parameters.<br>![2_ Formula.png](media://864d5fed-192d-4e7d-8bec-a6982d470a40) |
| **Alert Behavior ** | Select the type of message **(Alert Behavior)** that will be displayed when the quantity of each line in Doc **does not meet the stock control **set in **Behavior**.<br>- **No check**: No stock control is performed upon saving the Doc.
- **Warning**: A message is displayed, but the Doc can still be saved.  
*e.g. ATTENTION! Stock limit exceeded*.*. Item: M120.12.66 Smart ... - Available qty: 4 *  
e.g. ATTENTION! Attention! Insufficient stock balance for certain items in the document. Item: Μ120.12.66 Smart….
- **Prohibition**: A message is displayed and Doc cannot be saved.  
*e.g. ATTENTION! Attention! Insufficient stock balance for certain items in the document. Posting is cancelled. %s! *
- **Question**: A message is displayed including a question on whether or not you will save the Doc (**Yes/No).** | → If **Balance Control** is activated **In Line**,** Messages **will be displayed **when inserting each Item line** (i.e. when an Item is selected or modified in the Doc).<br>![3_ Alert Behavior.png](media://82f5d657-80a9-403a-a2df-2bcccf5dc617) |
| **Per W/h** | Select the Stock Control Level:<br>- **At Item level:** Check Item balance in all W/hs.
- **At Item - W/h level: **Check balance in W/h, in Doc or lines.
- **At Item - W/h Group level:** Check balance in W/h Group of the selected W/hs in Doc or lines.<br>:blue_star: In **Sales**, it works combined with the [**Quantity configuration**](https://wiki.soft1.eu/space/SS5EL/861306881/%CE%A4%CF%8D%CF%80%CE%BF%CE%B9+%CE%A0%CE%B1%CF%81%CE%B1%CF%83%CF%84%CE%B1%CF%84%CE%B9%CE%BA%CF%8E%CE%BD+(%CE%91%CE%B3%CE%BF%CF%81%CE%AD%CF%82+-+%CE%A0%CF%89%CE%BB%CE%AE%CF%83%CE%B5%CE%B9%CF%82+-+%CE%91%CF%80%CE%BF%CE%B8%CE%AE%CE%BA%CE%B7)#tab:-%CE%91%CF%80%CF%8C%CE%B8%CE%B5%CE%BC%CE%B1) flag *(Doc Τype → Stock tab → Other Checks)*. ERP works automatically to manage quantity in Doc lines, ensuring that only items with sufficient balance are saved based on Stock Control Level selected. | → For Items, *Stock Control *flag should be activated in their profile *(Trade tab).*<br>→ For W/h, *Check Balance* flag should be activated their profile* (General data tab).*<br>→ For Groups, *Check Balance* flag should be activated in each W/h Group’s profile.<br>![image](media://e3a64aa7-5fb5-42b2-8e6d-1a33445f9cf8) |
| **Special ** | Special Stock Controls are performed if **In line** flag **is activated** in Doc Type.<br>- **Lot**: A message is displayed if lot stock is exceeded.
- **Storage bin**: A message is displayed if storage bin stock is exceeded.
- **Business Unit**: A message is displayed if business unit stock is exceeded.
- **Project**: A message is displayed if project stock is exceeded.
- **Storage Bin and Lot **(Combined control) | → Special controls prevail over Basic controls, *e.g. Stock Control *at Item - W/h level.<br>→ For Storage bins, Business unit or Projects, the corresponding flags should be activated in Stock Management parameters *(Properties tab → Document Line Controls).*<br>![5_ Special.png](media://3ceddfe3-e44c-4a96-8b59-4cb927671959) |
| **Per Variation** | Select whether Stock Control will be performed if variation quantity (e.g. color - size) is not available in stock.<br>A message is displayed:<br>- Either upon selecting another line,* e.g. ATTENTION! Stock limit exceeded Item: 100003390 - Available Qty, Colour: Black Size: Small,*
- Either upon saving the Doc: *ATTENTION! Insufficient stock balance for certain items in the document Item: 100003390 Oversized cotton sweatshirt (colour-size) Colour: Black Size: Small.* | → Per Variation control prevails over Basic Stock Control, *e.g. Stock Control at Item level.*<br>![6_ Per Variation.png](media://4a3c3769-9029-4bb4-be8c-540825f9d167)<br>*In this example, the selected quantity is 3000 pieces, but the available balance for the Color Black (02) and Size S is only 100 pieces, as shown in the variations analysis.* |