Overview
Inserts a new payroll novelty (novedad) intotab_novedades with employee, concept, and value information.
Signature
Parameters
Payroll year (Primary Key)
Payroll month (Primary Key)
Payroll period (Primary Key)
Employee ID (Foreign Key to tab_emplea)
Concept ID (Foreign Key to tab_conceptos)
Number of days worked
Payroll value for this novelty
Returns
VOID (no return value)Example Usage
Validation Rules
- Year, month, and period form a composite primary key
- Employee ID must exist in tab_emplea
- Concept ID must exist in tab_conceptos
- Days worked must be positive
- Payroll value must be positive
Source
source/func/novedades/fun_insert_novedades.sql