# Matrix

## Data Settings - Advanced

Item **Matrix** allows us to generate variations of the entered items such as **Sizes**, **Colors**, etc. When selling an item with Matrix we will be asked which one we are selling in each case.&#x20;

The first step is to define if you are going to use an item matrix or not. Click on the ![](/files/hAxvbVLkJfMtwUUKuiPr) button to activate/deactivate matrix.

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

Once you have defined that the items DO have Matrix, the functionality to manage them will be enabled. Go back to the previous screen and press the ![](/files/uYFchqOwOmUxJBSi9rNw) button.

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

In this screen we will add the **Matrix with their values**.&#x20;

Press the ![](/files/6fxhCLQX0fxcJZQJozgt) button to add a **new type of matrix** (Size, Color). If you want to **edit/delete** the existing matrix, long press on them.

<figure><img src="/files/3YiEzhedb93tE8sLieXB" alt=""><figcaption></figcaption></figure>

Here you can enter the data for each type of matrix:&#x20;

* ***Code:*** Here you can define the code for the Matrix. By default, the system generates a sequential code, which can be changed as long as it is unique.&#x20;
* ***Name:*** Here you must enter the name of the Matrix (color, size, etc.).&#x20;
* ***Code Position:*** All items that have Matrix add a **suffix** to the parent item's code. If you use more than one Matrix, then it is recommended that you enter the **insertion** **number as a suffix** here (for example, if you add Size and Color as Matrix, one will have a 1 and the other a 2).&#x20;
* ***Bar-code Position:*** All items that have Matrix, add a **suffix** to the bar-code of the parent item. If you use more than one Matrix, then it is recommended that you enter the **insertion number as a suffix** here. (For example, if we add Size and Color as Matrix, we will give one a 1 and the other a 2).

##

Now, you have already created some Matrix.

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

If you slide your finger on the screen to the left, to access the second tab for managing matrix, you can **add values** to a matrix by clicking on the ![](/files/6fxhCLQX0fxcJZQJozgt) button.

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

Here you can enter the data of the value:&#x20;

* ***Code:*** Here you should enter the code of the matrix value. By default, the system generates a sequential code, which can be changed as long as it is unique.&#x20;
* ***Name:*** Enter here the name of the matrix value (black, white, etc.).&#x20;
* ***Matrix:*** Select the Matrix to which the value belongs.
* ***Item Suffix:*** Enter the value to be added as a suffix to the parent item code that will be used to generate the new item codes.&#x20;
* ***Bar-code Suffix:*** Enter the value to be added as a suffix to the bar-code of the parent item that will be used to generate the bar-codes of the new items.

##

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

Here you can see some example values entered as **Matrix**: ***Sizes***.


---

# 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://factorypos.gitbook.io/pos-r4-en/main-screen/data-settings/matrix.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.
