Workflow

How to Create a Customer

Verified end to end. Demo run create-customer-20260519T025604Z created customer [1003] AI Demo Customer 20260519T025604Z and verified it through DT_SelectClientes and NameEntidades.

Starting Point

Verified Screen Flow

Verified customer creation workflow

  1. Click New Customer.
  2. OfficeGest opens the side modal Add new customer.
  3. Choose the Customer Type. The verified run used Company, stored as TipoCliente=E.
  4. Choose Country. The verified run used Portugal, stored as CodPais=PT.
  5. Enter a VAT number. OfficeGest checks duplicates with entidades&option=find_customer_ncontrib. A duplicate VAT can open a warning modal: The specified tax number already exists.
  6. Enter the required identity and address fields: Name, Address, Location, Zip Code, and Cell phone.
  7. Optionally fill Email, Phone, Referrer Type, Payment Meth., Classification, No. Beneficiary, and GDPR/campaign permission fields.
  8. Click Save. OfficeGest posts createNovoCliente.
  9. Confirm the success toast/message Data written successfully.
  10. Search the Customers grid for the name. The verified record returned recordsFiltered: 1.

Required and Default Fields

FieldVerified behavior
Customer TypeDefaults to Company. Other choices observed: Company Sole Proprietors and Particular.
CountryRequired. Defaults to Portugal / PT.
VAT NumberOptional in the HTML form but checked for duplicates when filled.
NameRequired. Stored as Nome.
AddressRequired. Stored as Morada.
LocationRequired. Stored as Localidade.
Zip CodeRequired. Stored as CodPostal.
Cell phoneRequired in the form. OfficeGest stores the selected prefix and the number as a single value, for example +351.919025604.
Payment Meth.Default observed: PP / Pronto Pagamento.
ClassificationDefault observed: CF / Cliente Final.

Verified Created Record

FieldValue
Customer id1003
NameAI Demo Customer 20260519T025604Z
VAT590256041
AddressRua Demo 19
LocationLeiria
Zip Code2400-001
Emailai-demo-customer-20260519t025604z@example.invalid
Phone+351.244000001
Cell phone+351.919025604
Accounting account2111101003
StatusActivo: T

Backend Calls Observed

ActionPurpose
DT_SelectClientesLoads and filters the customer grid. The verified lookup by customer name returned one row for id 1003.
loadForm&form=cliente&id=novoclienteLoads the New Customer modal HTML, including the duplicate VAT warning modal and the fields listed above.
entidades&option=find_customer_ncontribChecks whether a VAT number already exists.
searchTelefoneClienteChecks phone and mobile values for possible existing customer matches.
createNovoClienteCreates the customer. The response returned id: 1003 and a data object with the saved fields.
NameEntidadesReads the created customer by CodTerc, returning the full customer master-data record.

Raw evidence: raw/playwright/workflows/create-customer-20260519T025604Z.json. Screenshots: assets/screenshots/create-customer-20260519T025604Z-01-customers-list.png through assets/screenshots/create-customer-20260519T025604Z-05-verified-list.png.

Validation Notes