Workflow

How to Create an Employee

Verified end to end. Demo run create-employee-20260519T031958Z created employee [122] AI Demo Employee 20260519T031958Z and verified it through dt_select_empreg_dep, Sel2_Select_v2, and NameEntidades.

Evidence Summary

Route
/entidades/empregados
Page title
OfficeGest
Workflow run
create-employee-20260519T031958Z
Created employee
[122] AI Demo Employee 20260519T031958Z
Verification
dt_select_empreg_dep returned recordsFiltered: 1
Evidence file
raw/playwright/workflows/latest-create-employee.json

Verified employee creation workflow

When to Use This

Use this workflow when a collaborator must exist as an OfficeGest employee for selectors, permissions, cash-register assignment, agenda/workshop operations, project management, tickets, HR records, web access, biometric access, or payroll-related configuration. The initial create modal captures only the minimum employee identity and access context; detailed employee profile tabs are completed after the employee exists.

Step-by-Step

  1. Open Entities / Employees, or navigate directly to /entidades/empregados.
  2. Click New Employee. OfficeGest opens modal nuevoempleado with form form-nuevoempr.
  3. Enter the required identity fields: Name, Address, Location, Zip Code, and Email.
  4. Confirm Country. The verified run used Portugal, stored as CodPais=PT.
  5. Optionally enter Phone and Cell phone. The selected country prefix is saved with the number.
  6. Confirm Cash No.. The default observed value was 0, displayed as [0] Caixa 0.
  7. Select a required Permissions group. The verified run used [24] Santos Demo to avoid granting the broad Full Administrator profile.
  8. Click Save. OfficeGest posts the form to /ajaxserver with the newempregado submit field.
  9. Confirm the success alert Collaborator ... Data written successfully.
  10. Search the Employees grid by name or email to confirm the employee appears.

Required and Default Fields

FieldVerified behavior
NameRequired. Stored as Nome.
AddressRequired. Stored as Morada.
LocationRequired. Stored as Localidade.
Zip CodeRequired. Stored as CodPostal.
EmailRequired. Stored as EMail and also used as the initial web_login_c.
CountryRequired. The modal defaulted to PT.
Phone and Cell phoneOptional. Saved values include the country prefix, for example +351.244000005 and +351.959031958.
Cash No.Optional with default 0 / [0] Caixa 0. Stored as NCaixa_c=0.
PermissionsRequired. Loaded through Sel2_Select_v2 against privsgroups. The verified run selected group 24 / Santos Demo.

Verified Created Record

FieldValue
Employee id122
NameAI Demo Employee 20260519T031958Z
AddressRua Employee Demo 19
LocationLeiria
Zip Code2400-005
CountryPT
Emailai-demo-employee-20260519t031958z@example.invalid
Phone+351.244000005
Cell phone+351.959031958
Permission group24 / Santos Demo
Cash register0
StatusActivo: T

Backend Calls Observed

Action or endpointPurpose
dt_select_empreg_depLoads and filters the Employees grid. The verified lookup by name, name column, and email returned one row for employee 122.
Sel2_Select_v2Loads permission groups from privsgroups and resolves employees for selectors. The permission dropdown returned groups such as Full Administrator, Balcao, Contabilidade, Ticket, Santos Demo, and Mecanico.
/ajaxserver form post with newempregadoCreates the employee. The payload included Nome, Morada, Localidade, CodPostal, EMail, CodPais, phone/mobile prefixes, NCaixa_c, and PrivGroup_c.
NameEntidadesReads full employee master data by CodEmpr. The correct table parameter is tabla=Empreg; tabla=Empregado returned an empty array.

Raw evidence: raw/playwright/workflows/create-employee-20260519T031958Z.json. Screenshots: assets/screenshots/create-employee-20260519T031958Z-01-employees-list.png through assets/screenshots/create-employee-20260519T031958Z-05-verified-list.png.

Detail View Context

The employee detail route is broader than the create modal. The captured detail page exposes configuration areas for employee data, workshops, TPV, project management, AMS, GDPR, entity contacts, observations, identification, passport, driving license, human resources, maturity, single report, accounting, biometric settings, recurring remuneration, salaries, SEPA, extra fields, attachments, definitions, schedule, web access, panels, API access, password-change enforcement, and dashboard data.

Important default master-data values observed after creation include web_login_c set to the email, web_is_active_c=0, usaagenda=T, externo=F, tipoempreg=I, rgdp_allow_mailing=1, and serialized store/series access lists.

Validation Notes