Evidence Summary
- Create route
/compras/pec/create- List route
/compras/pec- Final view
/compras/pec/view/OTk5OTAwMDE3- Workflow run
supplier-request-quotation-pec-20260519T074730Z- Created document
999900017 / PEC 9999/17- Evidence file
raw/playwright/workflows/latest-supplier-request-quotation-pec.json
When to Use This
Use Request for quotation [PEC] to ask a supplier for prices or availability before placing a supplier order or invoice. The verified path creates an open supplier quotation request; it does not require payment and it does not increase physical stock. It did increase the supplier-order quantity field for the article.
Step-by-Step
- Open Purchases / Request for quotation [PEC], then click Create Quotation Order, or navigate directly to
/compras/pec/create. - Confirm the page title is OG - Request for quotation [PEC] and the action button is Save and Finish.
- Select the Supplier. The verified run used supplier
100, AI Demo Supplier 20260519T030323Z, VAT590303236. - Enter a traceable value in Supplier`s N.. The verified run used
AI-PEC-20260519T074730Z, checked byfindNumNoFornagainst tableDocumPEC. - Review dates and defaults. The verified run used emission date
19/05/2026, due date20/05/2026, series9999, employeeDemo, payment conditionPP, currencyEUR, and warehouse1. - Add the article line. The verified line used article
AI-DEMO-20260519-021105, quantity1, unit cost1.23, VAT23%, and total1.51. - Click Save and Finish.
- Confirm the Are you sure? dialog with OK.
- OfficeGest posts
saveDocument, redirects to the PEC view, and keeps the request in Open status. The verified save response was999900017%&=&OKDOC&=&. - Search the PEC list for
999900017or the supplier reference. The verified list row had statusABR/ Open, total1.51, and paid value0.
Verified PEC Values
| Field | Value |
|---|---|
| Internal number | 999900017 |
| Visible document number | PEC 9999/17 |
| Supplier reference | AI-PEC-20260519T074730Z |
| Supplier | [100] AI Demo Supplier 20260519T030323Z, VAT 590303236 |
| Route/list identity | /compras/pec, table DocumPEC, tipoop=PEC, tipoterc=F, actualizacc=F, recibo=F. |
| Status | ABR / Open, validation N/D. |
| Payment | No payment line; ValorPago=0. |
| Total | 1.51 |
| Stock/order effect | Physical stock in warehouse 1 stayed 5; supplier-order quantity qtd_enc_forn changed from 1 to 2; customer-order quantity stayed 4. |
Backend Calls Observed
| Action or endpoint | Purpose |
|---|---|
NameEntidades&tabla=Forn | Loads supplier master data after selecting supplier 100. |
findNumNoForn | Checks duplicate supplier reference using tabela=DocumPEC, supplier 100, and numnoforn=AI-PEC-20260519T074730Z. |
loadArtigoReducido&compras=T | Loads purchase article metadata, including physical stock 5, cost 1.23, and VAT 23. |
insertLinhaTabDoc | Inserts the article into temporary PEC table 47912 with id_tipoop=PEC, cliente=100, isforn=T, quantity 1, and warehouse 1. |
price_variation_article | Checks supplier/article price variation for supplier 100. |
create_document&option=calcular_totais | Calculates net, VAT, and total for the PEC request. |
saveDocument | Creates the open PEC document. The verified payload used TipoOp=PEC, NumNoForn=AI-PEC-20260519T074730Z, MovimentaStock=1, id=47912, isedit=F, and israsc=0. |
DT_List_DocumentosF | Verifies the request in the PEC list using table DocumPEC, actualizacc=F, and tipoop=PEC. |
dt_list_recalc_stock_articles_lojas | Verifies that physical stock did not change while supplier-order quantity increased. |
Raw evidence: raw/playwright/workflows/supplier-request-quotation-pec-20260519T074730Z.json. Screenshots: assets/screenshots/supplier-request-quotation-pec-20260519T074730Z-01-create-page.png through assets/screenshots/supplier-request-quotation-pec-20260519T074730Z-04-pec-list.png.
Validation Notes
- No payment modal: PEC Save and Finish did not require supplier payment.
- Open state: the verified request saved as
ABR/ Open, which matches a request waiting for supplier response or later conversion. - Stock distinction: PEC did not add available physical stock, but it did increase
qtd_enc_forn, the supplier-order quantity tracked on the article/warehouse row.