# Matrix

## Setup - Advanced Setup

The item's **Matrix** allow us to generate variations of the entered items such as **Sizes**, **Colors**, etc.&#x20;

When selling an item with matrices we will be asked which one we are selling in each case.

![](/files/-M4-6c4tJcO32nRVbRDc)

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

Tap the <img src="/files/-M4UNre1df7-djt_z-BI" alt="" data-size="original"> button to add a new type of Matrix (Size, Color). If you want to edit/delete an existing matrix, double tap on it.

![](/files/-M4-6hRznXrBxR8RPIsA)

Here you can enter the data for each matrix type:

* ***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.
* ***Name:*** Here you must enter the name of the matrix (color, size, etc.).
* ***Code Position:*** All items that have matrices, **add a suffix** to the parent item 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 matrices, one will have a 1 and the other a 2).
* ***Barcode Position:*** All items that have matrices, **add a suffix** to the parent item 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 matrices, one will have a 1 and the other a 2).

![](/files/-M4-6qTRP_xZGxH92cnk)

Now, you already have some **Matrix** created.

![](/files/-M4-6va-qUn2IGrQFXhN)

If you select one of them and slide your finger on the screen to the left, to access the second tab for managing the matrices, you can add values to the selected matrix using the <img src="/files/-M4UNre1df7-djt_z-BI" alt="" data-size="original">button.

![](/files/-M4-74zAlrU1v1SpX3aB)

Here you can enter the values of the matrix:

* ***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.
* ***Name:*** Enter here the name of the matrix value (black, white, etc.).
* ***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.
* ***Barcode Suffix:*** Enter the value to be **added as a suffix** to the **barcode of the parent item** that will be used to generate the barcodes of the new items..

![](/files/-M4-7A3X2T9cYlPhMrjd)

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


---

# 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-en/mainmenu/setup/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.
