Type: {sale.typeIdentite || 'Non spécifié'}
+
Numéro: {sale.numeroIdentite || 'Non spécifié'}
Autorité de délivrance: {sale.autoriteDelivrance || 'Non spécifiée'}
Date de délivrance:{' '}
diff --git a/client/src/lib/validation.ts b/client/src/lib/validation.ts
index ca15416..0b9d0ba 100644
--- a/client/src/lib/validation.ts
+++ b/client/src/lib/validation.ts
@@ -19,8 +19,12 @@ export function validateRequiredFields(formData: any): string[] {
{ key: 'typeArticle', label: 'Type d\'article' },
{ key: 'categorie', label: 'Catégorie' },
{ key: 'quantite', label: 'Quantité' },
+ { key: 'gencode', label: 'Gencode' },
{ key: 'nom', label: 'Nom' },
- { key: 'prenom', label: 'Prénom' }
+ { key: 'prenom', label: 'Prénom' },
+ { key: 'dateNaissance', label: 'Date de naissance' },
+ { key: 'typeIdentite', label: 'Type de pièce d\'identité' },
+ { key: 'numeroIdentite', label: 'Numéro de pièce d\'identité' }
];
return requiredFields
diff --git a/client/src/types/sale.ts b/client/src/types/sale.ts
index 058a153..53a085b 100644
--- a/client/src/types/sale.ts
+++ b/client/src/types/sale.ts
@@ -10,16 +10,17 @@ export interface Sale {
typeArticle: string;
categorie: 'F2' | 'F3';
quantite: number;
- gencode?: string;
+ gencode: string;
// Client
nom: string;
prenom: string;
- dateNaissance?: string;
+ dateNaissance: string;
lieuNaissance?: string;
// Identité
- typeIdentite?: string;
+ typeIdentite: string;
+ numeroIdentite: string;
autoriteDelivrance?: string;
dateDelivrance?: string;
@@ -40,6 +41,7 @@ export interface FormData {
dateNaissance: string;
lieuNaissance: string;
typeIdentite: string;
+ numeroIdentite: string;
autoriteDelivrance: string;
dateDelivrance: string;
photoRecto?: string;