Workflow

How to Create a Supplier

Verified end to end. Demo run create-supplier-20260519T030323Z created supplier [100] AI Demo Supplier 20260519T030323Z and verified it through DT_SelectFornecedores and NameEntidades.

Evidence Summary

Route
/entidades/fornecedores
Page title
OG - Suppliers
Workflow run
create-supplier-20260519T030323Z
Created supplier
[100] AI Demo Supplier 20260519T030323Z
Verification
DT_SelectFornecedores returned recordsFiltered: 1
Evidence file
raw/playwright/workflows/latest-create-supplier.json

Verified supplier creation workflow

When to Use This

Use this workflow before recording purchases, supplier invoices, purchase orders, supplier receipts, supplier stock documents, or payable/accounting activity for a vendor that does not already exist in OfficeGest.

Step-by-Step

  1. Open Entities / Suppliers, or navigate directly to /entidades/fornecedores.
  2. Click New Supplier. OfficeGest opens the side modal Add new supplier.
  3. Choose Country. The verified run used Portugal, stored as CodPais=PT.
  4. Enter the required VAT Number. In the supplier form this field is required, unlike the customer create modal where VAT was optional in the HTML form.
  5. Enter the required identity and address fields: Name, Address, Location, and Zip Code.
  6. Optionally fill Address 2, Email, Phone, Cell phone, and Classification.
  7. Click Save. OfficeGest posts createNovoForn.
  8. After saving, OfficeGest refreshes the supplier list and loads supplier detail data such as contacts, counters, accounting account selection, and entity selectors.
  9. Search the Suppliers grid by name or VAT number to confirm the new supplier appears. The verified record returned recordsFiltered: 1.

Required and Default Fields

FieldVerified behavior
CountryRequired select. The workflow used PT.
VAT NumberRequired. Stored as NContrib.
NameRequired. Stored as Nome.
AddressRequired. Stored as Morada.
Address 2Optional. Stored as Morada2.
LocationRequired. Stored as Localidade.
Zip CodeRequired. Stored as CodPostal. The modal also called a postal-code selector endpoint for the entered value.
EmailOptional. Stored as EMail.
Phone and Cell phoneOptional. Prefix and number are combined on the saved record, for example +351.244000002 and +351.929030323.
ClassificationOptional. The verified run left CodClassif blank.

Verified Created Record

FieldValue
Supplier id100
NameAI Demo Supplier 20260519T030323Z
VAT590303236
AddressRua Fornecedor Demo 19
Address 2Armazem 2
LocationLeiria
Zip Code2400-002
Emailai-demo-supplier-20260519t030323z@example.invalid
Phone+351.244000002
Cell phone+351.929030323
Accounting account2211100100
StatusActivo: T

Backend Calls Observed

ActionPurpose
DT_SelectFornecedoresLoads and filters the Suppliers grid. The verified lookup by supplier name returned one row for id 100.
loadForm&form=forn&id=novofornLoads the New Supplier modal HTML, including hidden fields for website, share capital, fax, and observations.
Sel2_SelectLooks up postal-code data while the zip code is entered.
createNovoFornCreates the supplier. The verified payload included country, VAT, name, address, location, zip code, email, phone, mobile, and classification.
counters&option=fornecedoresLoads counts for supplier tabs such as contacts, appointments, notes, attachments, and loyalty.
entidades&option=entityContactsLoads the saved supplier phone and mobile contact list using entity_type=F and entity_id=100.
Sel2_ContasResolves the generated accounting account 2211100100.
NameEntidadesReads the created supplier by CodTerc. The correct table parameter is tabla=Forn; tabla=Fornecedor returned an empty array.

Raw evidence: raw/playwright/workflows/create-supplier-20260519T030323Z.json. Screenshots: assets/screenshots/create-supplier-20260519T030323Z-01-suppliers-list.png through assets/screenshots/create-supplier-20260519T030323Z-05-verified-list.png.

Validation Notes