> For the complete documentation index, see [llms.txt](https://ajuda.pdvlegal.com.br/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ajuda.pdvlegal.com.br/retaguarda/modulo-servicos/gestao-legal.md).

# Gestão Legal

O **Gestão Legal** é a interface usada pelo técnico ou pela equipe de campo.

Ele permite acompanhar e executar as ordens de serviço já criadas no **Cloud**.

{% hint style="warning" %}
O acesso deve ser criado em **Usuários ADM**.

As permissões do perfil definem o que o usuário pode fazer no app.
{% endhint %}

## Dashboard

No **Dashboard**, você acompanha as ordens pelos status:

* **Aberto**
* **Em andamento**
* **Concluído**
* **Cancelado**

Também é possível visualizar todas as ordens em uma única lista.

<figure><img src="https://1320237751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLaIVEmahy7qwD0rmQzED%2Fuploads%2FhvVimNuPrphumjKhvQlv%2Fgestao_legal01.avif?alt=media&amp;token=61c68c9a-78c1-4faf-926e-e170c2c9211a" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Não recrie a mesma OS no **Cloud** e no **Gestão Legal**.

A sincronização entre os dois ambientes é automática.
{% endhint %}

### Criando ou editando uma OS

Se o perfil permitir, o usuário pode clicar em **+Nova OS** e criar a ordem diretamente por aqui.

A estrutura é parecida com a tela do **Cloud**.

<figure><img src="https://1320237751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLaIVEmahy7qwD0rmQzED%2Fuploads%2FcccfH9lqkhsnWEsaHN1P%2Fgestao_legal02.png?alt=media&amp;token=f3d02a31-d637-4f4b-866a-e28d2d1ed6c4" alt=""><figcaption></figcaption></figure>

Ao cadastrar ou revisar a OS, valide:

* **Cliente**: Deve estar previamente cadastrado.
* **Técnico responsável**: Usuário que executará o serviço.
* **Atendente**: Usuário que criou a ordem de serviço.
* **Data e Hora**: Indicam quando o serviço será executado.
* **Serviço**: Deve estar previamente cadastrado.
* **Forma de pagamento**: Deve existir no sistema.
* **Anexos**: Guardam fotos, comprovantes e materiais de apoio.

Depois disso, clique em **Gravar**.

### Check-in e check-out

A execução da OS acontece por **check-in** e **check-out**.

#### Check-in

Quando o técnico chega ao local, ele abre a OS e faz **CHECK-IN**.

{% hint style="info" %}
Esse processo atualiza o status para **Em andamento**.
{% endhint %}

<figure><img src="https://1320237751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLaIVEmahy7qwD0rmQzED%2Fuploads%2FYwAsOc4zeqxTVvdUSZAc%2Fgestao_legal03.png?alt=media&amp;token=b1ed0028-4962-47d9-adb7-e58ff105b261" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
O check-in registra a geolocalização do dispositivo no momento da execução.
{% endhint %}

<figure><img src="https://1320237751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLaIVEmahy7qwD0rmQzED%2Fuploads%2FZlHLRJg5czM4Z6kQFh7k%2Fgestao_legal04.png?alt=media&amp;token=622f0cbc-0d75-4e9c-83d8-fc69cdc27691" alt=""><figcaption></figcaption></figure>

#### Check-out

Ao concluir o serviço, o técnico faz **CHECK-OUT**.

Esse processo finaliza a OS e muda o status para **Concluído**.

<figure><img src="https://1320237751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLaIVEmahy7qwD0rmQzED%2Fuploads%2FSXb6zgMrps7L5LEBjUrS%2Fgestao_legal05.png?alt=media&amp;token=92c6ce9f-1ba2-4f79-bd8a-ce0b43b481c2" alt=""><figcaption></figcaption></figure>

Depois disso, o gestor ainda pode revisar a ordem no **Cloud**.

<figure><img src="https://1320237751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLaIVEmahy7qwD0rmQzED%2Fuploads%2FKHrOOWJLfGBlrBj4Uavf%2Fgestao_legal06.png?alt=media&amp;token=3e28ad9b-d142-4532-9fae-4ca6925b5617" alt=""><figcaption></figcaption></figure>

### O que o técnico consegue fazer

De acordo com o perfil, o usuário pode:

* editar a OS
* incluir ou remover serviços
* anexar arquivos
* consultar histórico
* gerar o link da OS
* adicionar comentários

### Reflexos no financeiro e no Cloud

Após a conclusão da OS:

* o sistema gera um lançamento em **Contas a Receber**
* a venda do serviço aparece no **Dashboard do Cloud**

<figure><img src="https://1320237751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLaIVEmahy7qwD0rmQzED%2Fuploads%2FREuamf3Q0079OYC7OuEL%2Fgestao_legal07.avif?alt=media&amp;token=a4675e57-694c-4352-9269-d581b30bfcdb" alt=""><figcaption></figcaption></figure>

Esse fluxo ajuda a conciliar a execução do serviço com o controle financeiro.

{% hint style="info" %}
Se a OS estiver vinculada ao fluxo de **NFS-e**, a emissão da nota continua no **Cloud**.
{% endhint %}

### Link da OS

Você pode compartilhar a OS com o cliente.

Para isso:

1. abra a ordem desejada
2. clique nos três pontos
3. escolha **Link da OS**

<figure><img src="https://1320237751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLaIVEmahy7qwD0rmQzED%2Fuploads%2FXbzdC6uCL7lk9f38Uir5%2Fgestao_legal10.png?alt=media&amp;token=03006cfc-8e5a-4489-9d1a-f87ec03552eb" alt=""><figcaption></figcaption></figure>

O sistema gera uma visualização com os dados da ordem.

<figure><img src="https://1320237751-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FLaIVEmahy7qwD0rmQzED%2Fuploads%2FAbUKdTk2pg5YwlmuiuDe%2Fgestao_legal11.png?alt=media&amp;token=72b6a98a-7f77-41de-bafd-7b3751a62657" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://ajuda.pdvlegal.com.br/retaguarda/modulo-servicos/gestao-legal.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
