fix: Ajouter champs manquants au type Amendment

- employee_matricule
- production_name
- numero_avenant
- date_avenant
- type_avenant
- motif_avenant

Corrige l'erreur de build Vercel.
This commit is contained in:
odentas 2025-11-05 18:32:49 +01:00
parent da17ca6ef2
commit 69cb2c5a0a

View file

@ -54,14 +54,20 @@ export interface AmendmentRemunerationData {
// Structure complète d'un avenant // Structure complète d'un avenant
export interface Amendment { export interface Amendment {
id?: string; id?: string;
numero_avenant?: string; // Numéro de l'avenant (ex: AVE-001)
contract_id: string; contract_id: string;
contract_number?: string; contract_number?: string;
employee_name?: string; employee_name?: string;
employee_matricule?: string;
organization_name?: string; organization_name?: string;
production_name?: string;
// Métadonnées // Métadonnées
date_effet: string; // Date d'effet de l'avenant (YYYY-MM-DD) date_effet: string; // Date d'effet de l'avenant (YYYY-MM-DD)
date_signature?: string; // Date de signature (YYYY-MM-DD) date_avenant?: string; // Date de signature de l'avenant (YYYY-MM-DD)
date_signature?: string; // Alias pour date_avenant
type_avenant?: string; // "modification" ou "annulation"
motif_avenant?: string; // Motif de l'avenant (texte libre)
status: AmendmentStatus; status: AmendmentStatus;
// Éléments avenantés (au moins un doit être présent) // Éléments avenantés (au moins un doit être présent)