From b28291496c29319f6363400ce3403f77c2c482da Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Sat, 19 Jul 2025 13:34:01 +0000 Subject: [PATCH] Set the default quantity of products sold to one during sales entry Sets default value of 'quantite' field to "1" in NewSaleForm.tsx and NewSaleFormMulti.tsx components. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 4b008663-bd72-492b-b0b6-fa252367e730 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/4b008663-bd72-492b-b0b6-fa252367e730/Rb1L0tF --- client/src/components/NewSaleForm.tsx | 4 ++-- client/src/components/NewSaleFormMulti.tsx | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/components/NewSaleForm.tsx b/client/src/components/NewSaleForm.tsx index a6667b1..ad8f941 100644 --- a/client/src/components/NewSaleForm.tsx +++ b/client/src/components/NewSaleForm.tsx @@ -64,7 +64,7 @@ export default function NewSaleForm() { dateVente: new Date().toISOString().split('T')[0], typeArticle: '', categorie: '', - quantite: '', + quantite: '1', gencode: '', nom: '', prenom: '', @@ -109,7 +109,7 @@ export default function NewSaleForm() { dateVente: new Date().toISOString().split('T')[0], typeArticle: '', categorie: '', - quantite: '', + quantite: '1', gencode: '', nom: '', prenom: '', diff --git a/client/src/components/NewSaleFormMulti.tsx b/client/src/components/NewSaleFormMulti.tsx index 16148ba..cbad8d7 100644 --- a/client/src/components/NewSaleFormMulti.tsx +++ b/client/src/components/NewSaleFormMulti.tsx @@ -43,7 +43,7 @@ export default function NewSaleFormMulti() { { typeArticle: '', categorie: '', - quantite: '', + quantite: '1', gencode: '', } ], @@ -241,7 +241,7 @@ export default function NewSaleFormMulti() { append({ typeArticle: '', categorie: '', - quantite: '', + quantite: '1', gencode: '', }); };