diff --git a/attached_assets/image_1752929659498.png b/attached_assets/image_1752929659498.png new file mode 100644 index 0000000..eb7a055 Binary files /dev/null and b/attached_assets/image_1752929659498.png differ diff --git a/client/src/components/NewSaleFormMultiProduct.tsx b/client/src/components/NewSaleFormMultiProduct.tsx index 974886b..2438a9d 100644 --- a/client/src/components/NewSaleFormMultiProduct.tsx +++ b/client/src/components/NewSaleFormMultiProduct.tsx @@ -477,8 +477,8 @@ export default function NewSaleFormMultiProduct() { - {PAYMENT_METHODS.map((method) => ( - + {PAYMENT_METHODS.map((method, methodIndex) => ( + {method} ))} @@ -511,8 +511,8 @@ export default function NewSaleFormMultiProduct() { - {IDENTITY_TYPES.map((type) => ( - + {IDENTITY_TYPES.map((type, typeIndex) => ( + {type} ))} diff --git a/client/src/lib/validation.ts b/client/src/lib/validation.ts index 0c9156b..e0d3c84 100644 --- a/client/src/lib/validation.ts +++ b/client/src/lib/validation.ts @@ -81,15 +81,15 @@ export const ARTICLE_CATEGORY_MAPPING = { } as const; export const IDENTITY_TYPES = [ - { value: "CNI", label: "Carte Nationale d'Identité" }, - { value: "Passeport", label: "Passeport" }, - { value: "Permis de conduire", label: "Permis de conduire" } + "Carte Nationale d'Identité", + "Passeport", + "Permis de conduire" ] as const; export const PAYMENT_METHODS = [ - { value: "Carte Bancaire", label: "Carte Bancaire" }, - { value: "Espèce", label: "Espèce" }, - { value: "Chèque", label: "Chèque" }, - { value: "Carte Cadeau", label: "Carte Cadeau" }, - { value: "Autre", label: "Autre" } + "Carte Bancaire", + "Espèce", + "Chèque", + "Carte Cadeau", + "Autre" ] as const;