Overview
Addendums (Adendas) are legal documents used to modify existing employment contracts without creating a new contract. Common uses include extending contract duration, changing salary, or updating work location.What are Addendums?
An addendum is a supplementary document that:Extends
Contract duration or end date
Modifies
Terms like salary or position
Updates
Work location or division
Preserves
Original contract integrity
When to Use Addendums
Contract Extension
Contract Extension
When an employee’s contract period needs to be extended:Original Contract:
- Start: 01/01/2024
- End: 30/06/2024
- New End Date: 31/12/2024
- Maintains all other terms
Salary Adjustment
Salary Adjustment
When an employee receives a raise or salary modification:Original Contract:
- Salary: S/. 3,000
- New Salary: S/. 3,500
- Effective from: 01/07/2024
Position Change
Position Change
When an employee changes roles within the company:Original Contract:
- Position: Assistant
- New Position: Analyst
- Maintains original contract dates
Location Transfer
Location Transfer
When an employee transfers to a different division or location:Original Contract:
- Division: Main Office
- New Division: Branch Office
- Updates address information
Addendum Excel Format
Required Column Headers
Addendum Excel files use different headers than regular contracts:| Field | Accepted Headers | Format | Example |
|---|---|---|---|
| Division | DIVISION, división, area | Text | Recursos Humanos |
| Document Number | Numero Documento, dni, NÚMERO DE DOCUMENTO | 8 digits | 12345678 |
| Worker Name | TRABAJADOR, trabajador, nombres y apellidos | Text | Juan Pérez García |
| Entry Date | fecha de ingreso, Fecha Ingreso | DD/MM/YYYY | 01/01/2024 |
| Original Start | INICIO, inicio | DD/MM/YYYY | 01/01/2024 |
| Original End | FECHA FIN, fecha fin, fin contrato | DD/MM/YYYY | 30/06/2024 |
| Salary | salario, sueldo, SUELDO | Number | 3500 |
| Salary in Words | salario en letras, Sueldo en Letras | Text | tres mil quinientos soles |
| Addendum Start | INICIO ADENDA, inicio adenda | DD/MM/YYYY | 01/07/2024 |
| Addendum End | FIN ADENDA, fin adenda | DD/MM/YYYY | 31/12/2024 |
Location Fields
Same as regular contracts:| Field | Headers | Example |
|---|---|---|
| Address | dirección, direccion, DOMICILIO | Av. Principal 123 |
| Province | provincia, PROVINCIA | Lima |
| District | distrito, DISTRITO | Miraflores |
| Department | departamento, DEPARTAMENTO | Lima |
Upload and Processing Workflow
Processing Implementation
The addendum service (src/services/addendum.service.ts:9) processes Excel files:
Validation Rules
Addendum data is validated with specific rules:Validation Response Structure
The validation result includes statistics and detailed error information:src/services/excel-parser.service.ts:314:
Example Excel Template
Addendum Template
| DIVISION | Numero Documento | TRABAJADOR | fecha de ingreso | INICIO | FECHA FIN | dirección | provincia | distrito | departamento | SUELDO | Sueldo en Letras | INICIO ADENDA | FIN ADENDA |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Recursos Humanos | 12345678 | Juan Pérez García | 01/01/2024 | 01/01/2024 | 30/06/2024 | Av. Principal 123 | Lima | Miraflores | Lima | 3500 | tres mil quinientos soles | 01/07/2024 | 31/12/2024 |
| Operaciones | 87654321 | María López Ruiz | 15/02/2024 | 15/02/2024 | 31/08/2024 | Jr. Los Olivos 456 | Lima | San Isidro | Lima | 2800 | dos mil ochocientos soles | 01/09/2024 | 28/02/2025 |
All date fields must use DD/MM/YYYY format for consistency.
Complete Example
Upload Addendum File
Error Handling
Common Validation Errors
Invalid Document Number
Invalid Document Number
Error:
DNI debe tener exactamente 8 dígitos numéricosCause: Document number is not exactly 8 digitsSolution:- Ensure DNI has exactly 8 digits
- Remove any dashes or spaces
- Don’t use leading zeros unless part of actual DNI
Invalid Date Format
Invalid Date Format
Error:
Fecha debe estar en formato DD/MM/YYYYCause: Date is not in the expected formatSolution:- Use DD/MM/YYYY format (e.g., 01/07/2024)
- Or use Excel date cells (will be auto-converted)
- Ensure dates are logical (start before end)
Invalid Salary
Invalid Salary
Error:
El sueldo debe ser mayor a 0Cause: Salary is zero, negative, or invalidSolution:- Enter positive numeric value
- Remove currency symbols if using numeric field
- Or use text format like “S/. 3500”
Missing Required Field
Missing Required Field
Error:
Campo requerido no puede estar vacíoCause: A required field is emptySolution:- Fill all required columns
- Check for hidden empty cells
- Verify data doesn’t have trailing spaces
Differences from Regular Contracts
| Aspect | Regular Contract | Addendum |
|---|---|---|
| Field Map | CONTRACT_FIELDS_MAP | ADDENDUM_FIELDS_MAP |
| Worker Name | Split into 3 fields (name, lastNameFather, lastNameMother) | Single field (worker) |
| Date Fields | entryDate, endDate | start, end, startAddendum, endAddendum |
| Division | subDivisionOrParking | division |
| Validation Endpoint | /api/excel/upload | /api/addendum/upload |
src/constants/contract-field.ts:324
Best Practices
Data Preparation
- Verify original contract dates
- Ensure new dates extend existing contract
- Double-check employee DNI numbers
- Use consistent date formats
Validation
- Review all validation errors
- Test with small batch first
- Keep backup of original data
- Document changes made
Date Logic
- startAddendum should be after or equal to original end
- endAddendum should be after startAddendum
- Original dates should match employee records
- Consider holiday and weekend dates
Salary Updates
- Verify salary increase amounts
- Write salary in words correctly
- Check currency formatting
- Document approval for changes
Next Steps
Excel Upload Guide
Learn more about Excel file requirements
Error Handling
Understand error responses and debugging