# Unidades Alternativas em Lista

Fica abaixo um exemplo de como será apresenta no Wave Trade X:

* Na inserção no modo de linhas, após clicar na unidade alternativa na opção que permite escolher entre unidade principal e a unidade alternativa, será apresentada a lista das restantes unidades alternativas relacionadas com o artigo em causa. Caso a unidade alternativa da ficha do artigo não esteja preenchida, mas exista registos na tabela de unidades alternativas para esse artigo, será automaticamente aberto o ecrã com a lista de unidades alternativas;

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

<figure><img src="/files/9Jo5ffYWnDoDYwPWu9F4" alt=""><figcaption></figcaption></figure>

* No histórico de produtos vendidos, quando é colocado o "visto" em apresenta "Unidade Alternativa" será também apresentada a lista das restantes unidades alternativas relacionadas com o artigo em causa após clicar em cima da unidade;

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

<figure><img src="/files/0VapEFvYfo3sCdgFGZ1O" alt=""><figcaption></figcaption></figure>

#### Implementação

Para implementar este circuito é necessário que a tabela "X\_Items\_Units", fica abaixo um exemplo da configuração da tabela (disponível no FTP) e um exemplo do desenvolvimento feito no PHC.

Nota: apenas deverão ser carregas unidades na tabela "X\_Item\_Units" que não estejam a ser passadas na unidade principal ou unidade alternativa da tabela "X\_Items", para que não existem duplicação de registos de unidades no Wave Trade X

<figure><img src="/files/8aojCV5CvOHzZwKjK4m8" alt=""><figcaption></figcaption></figure>

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


---

# 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://docs.wave.pt/wave-trade-x/avancadas/unidades-alternativas-em-lista.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.
