mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-17 20:29:18 +02:00
Require complete identity information and EAN13 code for each sale
Makes identity document information and EAN13 code mandatory in the `NewSaleForm.tsx`, updates validation in `validation.ts`, and adds `numeroIdentite` to `Sale` and `FormData` types. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 91318273-c764-4fd4-be04-bdc12c38af32 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e098e07a-77c2-4cd4-a935-0bcff4db12bf.jpg
This commit is contained in:
1 parent
4fac1078a1
commit
cddfee5d09
4 files changed
+39
-16
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user