> For the complete documentation index, see [llms.txt](https://ajuda.consistem.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.consistem.com.br/tecnologia/erp/componentes/funcionalidades/pesquisa-avancada/pesquisa-avancada-de-orcamento-de-servico.md).

# Pesquisa Avançada de Orçamento de Serviço

Esta funcionalidade tem como objetivo padronizar e facilitar o tratamento do código informado pelo usuário. O leitor trata automaticamente o código do Orçamento de Serviço, garantindo consistência nos dados e evitando erros de digitação ou formatação incorreta.

#### Regras de Tratamento Automático

O sistema interpreta o que foi digitado e aplica regras inteligentes para localizar o orçamento desejado:

<table><thead><tr><th width="183">O que foi digitado</th><th>Comportamento do Sistema</th><th>Exemplo Prático</th></tr></thead><tbody><tr><td><strong>Apenas o Código</strong> (Sem revisão)</td><td>Busca automaticamente a <strong>última revisão</strong> criada para aquele orçamento.</td><td>Digitou <code>67</code> => Sistema busca <code>67-003</code></td></tr><tr><td><strong>Revisão Incompleta</strong></td><td>Preenche automaticamente com <strong>zeros à esquerda</strong> para completar o formato da revisão.</td><td>Digitou <code>67-1</code> (ou <code>67-01</code>) => Sistema busca <code>67-001</code></td></tr></tbody></table>

#### Validação de Dados

Caso o código informado não exista no banco de dados (mesmo após as tentativas automáticas de formatação), o sistema emitirá um alerta visual para o usuário:

{% hint style="success" %}
"Orçamento de serviço \[código informado] não encontrado!"
{% endhint %}

#### Atalhos e Funções

Para agilizar a navegação e operação nesta rotina, utilize as seguintes teclas de função:

* **F7 (Consulta):** Acessa a rotina de busca `ORCSER^CCPVSER299`.
* **F8 (Cadastro):** Acessa a rotina de cadastro `CCPVSER050`.


---

# 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 dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://ajuda.consistem.com.br/tecnologia/erp/componentes/funcionalidades/pesquisa-avancada/pesquisa-avancada-de-orcamento-de-servico.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
