Evidence Summary
- Create route
/vendas/ft/create- Search field
#buscaArtigo- Verified search term
AI-DEMO-20260519-021105- Inserted line
- Quantity
1, VAT23, total with VAT1.96677 - Evidence file
raw/playwright/workflows/latest-sales-invoice-article-search-line.json
When to Use This
Use this when the user needs to find a product or service inside an invoice and add it to the document lines. It covers the document-tab article search and line insertion step, before any invoice save action.
Step-by-Step
- Open Sales / Invoice [FT], then click New document, or navigate to
/vendas/ft/create. - Select the billing customer and complete mandatory header fields.
- Open the Document tab and find the article search field below the document-line grid.
- Type the article code, barcode, or description in Search Articles /
#buscaArtigo. - Choose the desired result from the autocomplete list.
- Confirm the line appears in the document grid with article code, description, quantity, unit price, VAT, warehouse, and total.
- Adjust quantity, price, VAT, warehouse, discount, or other line fields if needed before saving.
Verified Behavior
| Check | Observed result |
|---|---|
| Search field | The FT document tab exposed #buscaArtigo. |
| Search request | Typing AI-DEMO-20260519-021105 triggered article-search traffic including loadTabDocumentoArtigos. |
| Line insertion | Selecting the result inserted article AI-DEMO-20260519-021105 with description AI Demo Article 20260519T021105Z, quantity 1, VAT 23, and total with VAT 1.96677. |
| Save boundary | No saveDocument, saveRascunho, print, payment, or delete request was submitted. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
loadTabDocumentoArtigos | Searches available article rows for the document-line selector. |
SearchProduct / loadArtigoReducido | Loads selected article metadata such as price, VAT, stock, warehouse, cost, and article flags. |
insertLinhaTabDoc | Creates the temporary invoice line in the document grid. |
listaTabDocumento | Reloads the document-line grid after insertion. |
create_document&option=calcular_totais | Recalculates VAT and totals after the line is added. |
Raw evidence: raw/playwright/workflows/sales-invoice-article-search-line-20260520T023231Z.json. Screenshots: assets/screenshots/sales-invoice-article-search-line-20260520T023231Z-01-create-page.png through assets/screenshots/sales-invoice-article-search-line-20260520T023231Z-04-article-line-added.png.