hvp-shared 6.40.0 → 6.42.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.
|
@@ -14,8 +14,9 @@ export type ReconciliationWarningSeverity = 'info' | 'warning' | 'error';
|
|
|
14
14
|
* - STALE_CLOSING: QVET closing is older than 30 minutes
|
|
15
15
|
* - MISSING_CARD_VERIFICATION: QVET has card payments but no terminal total entered
|
|
16
16
|
* - MIGRATED_NO_QVET: historical record migrated without a matching QVET closing
|
|
17
|
+
* - EXPIRED_UNRECONCILED: QVET closing was not reconciled within 24h and was auto-closed by the system
|
|
17
18
|
*/
|
|
18
|
-
export type ReconciliationWarningCode = 'CASH_MISMATCH' | 'STAFF_MISMATCH' | 'STALE_CLOSING' | 'MISSING_CARD_VERIFICATION' | 'MIGRATED_NO_QVET';
|
|
19
|
+
export type ReconciliationWarningCode = 'CASH_MISMATCH' | 'STAFF_MISMATCH' | 'STALE_CLOSING' | 'MISSING_CARD_VERIFICATION' | 'MIGRATED_NO_QVET' | 'EXPIRED_UNRECONCILED';
|
|
19
20
|
export interface CashReconciliationWarning {
|
|
20
21
|
code: string;
|
|
21
22
|
severity: ReconciliationWarningSeverity;
|
|
@@ -96,6 +96,32 @@ export interface PayrollV2Cfdi {
|
|
|
96
96
|
readonly cancelledAt?: Date | string;
|
|
97
97
|
readonly errorMessage?: string;
|
|
98
98
|
}
|
|
99
|
+
/**
|
|
100
|
+
* A named amount concept (bonus, deduction, etc.).
|
|
101
|
+
* Mirrors the PayrollConcept shape used in both frontend and backend.
|
|
102
|
+
*/
|
|
103
|
+
export interface PayrollConceptDto {
|
|
104
|
+
readonly name: string;
|
|
105
|
+
readonly description?: string;
|
|
106
|
+
readonly amount: number;
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* The subset of payroll fields that users can edit directly.
|
|
110
|
+
* Everything else is calculated by the V2 engine.
|
|
111
|
+
*
|
|
112
|
+
* Used by:
|
|
113
|
+
* - PATCH /payrolls/:id/v2 (save edits)
|
|
114
|
+
* - POST /payrolls/recalculate-v2 (preview recalculation)
|
|
115
|
+
* - Frontend edit form state
|
|
116
|
+
*/
|
|
117
|
+
export interface PayrollEditableOverrides {
|
|
118
|
+
readonly specialBonuses?: PayrollConceptDto[];
|
|
119
|
+
readonly endYearBonus?: number;
|
|
120
|
+
readonly extraVariableCompensations?: PayrollConceptDto[];
|
|
121
|
+
readonly profitSharing?: number;
|
|
122
|
+
readonly otherFixedDeductions?: PayrollConceptDto[];
|
|
123
|
+
readonly otherVariableDeductions?: PayrollConceptDto[];
|
|
124
|
+
}
|
|
99
125
|
export interface PayrollV2 {
|
|
100
126
|
readonly collaboratorId?: string;
|
|
101
127
|
readonly employmentId?: string;
|