hvp-shared 6.80.0 → 6.82.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.
|
@@ -62,6 +62,11 @@ export interface PayrollCalculationContext {
|
|
|
62
62
|
readonly employerImssRate?: number;
|
|
63
63
|
readonly workedHours: number;
|
|
64
64
|
readonly hourlyRate?: number;
|
|
65
|
+
readonly dailySalary?: number;
|
|
66
|
+
readonly separationType?: string;
|
|
67
|
+
readonly yearsOfService?: number;
|
|
68
|
+
readonly daysWorkedInYear?: number;
|
|
69
|
+
readonly vacationDaysToPay?: number;
|
|
65
70
|
}
|
|
66
71
|
export interface PayrollEmployeeSnapshot {
|
|
67
72
|
readonly fullName: string;
|
|
@@ -142,7 +147,11 @@ export interface NominalPayrollData {
|
|
|
142
147
|
readonly totals: PayrollV2Totals;
|
|
143
148
|
readonly cfdi?: PayrollV2Cfdi;
|
|
144
149
|
}
|
|
150
|
+
/** Distinguishes ordinary payrolls from settlement (finiquito/liquidación) */
|
|
151
|
+
export type PayrollType = "ordinary" | "settlement";
|
|
145
152
|
export interface PayrollV2 {
|
|
153
|
+
/** "ordinary" (default) or "settlement". Absent on old payrolls = ordinary. */
|
|
154
|
+
readonly payrollType?: PayrollType;
|
|
146
155
|
readonly collaboratorId?: string;
|
|
147
156
|
readonly employmentId?: string;
|
|
148
157
|
readonly jobId?: string;
|