HR Module: Employees, Contracts, and Payroll Roster
The HR module manages employee records with contract types, tracks active and inactive staff, and supports payroll roster generation for sublimation businesses.
Use this file to discover all available pages before exploring further.
The HR module provides sublimation businesses with structured employee management and a payroll processing pipeline. Employee records capture personal details, document type, base salary, contract type, and current status. A roster (Roster) represents a payroll period header that ties one or more employees to a specific pay cycle, while DetailedPayroll and PayrollConcept records hold the granular calculations — devengados (earnings) and deducciones (deductions) — that produce each employee’s net pay.
Stored in collection roster_sublimacion. A roster is the payroll period header — it defines the pay window and links to the employee being paid during that period.
Field
Type
Notes
start_period
String
Start date of the payroll period
end_period
String
End date of the payroll period
stade
String (enum)
Roster state: "Draft", "Calculada", "Pagada", or ""
company
String
ID of the owning company
employee
String
ID of the employee for this payroll entry
Roster lifecycle:
Draft — The period has been opened but payroll has not been calculated yet.
Calculada — Payroll calculations have been run and figures are ready for review.
Pagada — Payment has been confirmed and the payroll period is closed.
Stored in collection concept_payroll_sublimacion. Associates a PayrollConcept with a specific DetailedPayroll record and records the computed value for that run.
The ConceptPayroll model file contains a //! no usarlo comment indicating this model is not currently in active use. It is documented here for completeness; prefer PayrollConcept for concept management.
Field
Type
Notes
detail_payroll
String
ID of the parent DetailedPayroll record
payroll_concept
String
ID of the PayrollConcept applied
valor
Number
Computed value of the concept for this payroll run
To build a complete payroll run: create PayrollConcept records for each earning/deduction type your business uses, then for each employee and period create a DetailedPayroll and link ConceptPayroll entries to it for every applicable concept.