hvp-shared 6.70.0 → 6.71.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* how the amount was calculated.
|
|
7
7
|
*/
|
|
8
8
|
import { CfdiStatus, PayrollStatus } from '../constants/hr.enums';
|
|
9
|
+
import { CompensationType, EmploymentType, PayrollStampingMode } from '../constants/employment.enums';
|
|
9
10
|
export declare enum PayrollItemCategory {
|
|
10
11
|
BASE_SALARY = "BASE_SALARY",
|
|
11
12
|
ADDITIONAL_FIXED = "ADDITIONAL_FIXED",
|
|
@@ -118,6 +119,29 @@ export interface PayrollEditableOverrides {
|
|
|
118
119
|
readonly otherFixedDeductions?: PayrollConceptDto[];
|
|
119
120
|
readonly otherVariableDeductions?: PayrollConceptDto[];
|
|
120
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* Snapshot of the employment configuration that affects payroll visualization.
|
|
124
|
+
* Stored on each PayrollV2 so the frontend can render it without external lookups.
|
|
125
|
+
*/
|
|
126
|
+
export interface PayrollV2EmploymentConfig {
|
|
127
|
+
readonly employmentType: EmploymentType;
|
|
128
|
+
readonly compensationType: CompensationType;
|
|
129
|
+
readonly payrollStampingMode: PayrollStampingMode;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Embedded nominal payroll data for employees that require CFDI stamping
|
|
133
|
+
* at minimum wage (casual with IMSS, coverage_only).
|
|
134
|
+
*
|
|
135
|
+
* Instead of generating a separate PayrollV2 record, the nominal component
|
|
136
|
+
* is embedded inside the main payroll record.
|
|
137
|
+
*/
|
|
138
|
+
export interface NominalPayrollData {
|
|
139
|
+
readonly perceptions: PayrollItem[];
|
|
140
|
+
readonly deductions: PayrollItem[];
|
|
141
|
+
readonly otherPayments: PayrollItem[];
|
|
142
|
+
readonly totals: PayrollV2Totals;
|
|
143
|
+
readonly cfdi?: PayrollV2Cfdi;
|
|
144
|
+
}
|
|
121
145
|
export interface PayrollV2 {
|
|
122
146
|
readonly collaboratorId?: string;
|
|
123
147
|
readonly employmentId?: string;
|
|
@@ -126,7 +150,10 @@ export interface PayrollV2 {
|
|
|
126
150
|
readonly periodEndDate?: string;
|
|
127
151
|
readonly payrollStatus?: PayrollStatus;
|
|
128
152
|
readonly daysPaid?: number;
|
|
129
|
-
|
|
153
|
+
/** Snapshot of employment config at generation time */
|
|
154
|
+
readonly employmentConfig?: PayrollV2EmploymentConfig;
|
|
155
|
+
/** Embedded nominal payroll (casual+IMSS, coverage_only) */
|
|
156
|
+
readonly nominalPayroll?: NominalPayrollData;
|
|
130
157
|
readonly perceptions: PayrollItem[];
|
|
131
158
|
readonly deductions: PayrollItem[];
|
|
132
159
|
readonly otherPayments: PayrollItem[];
|