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
This commit is contained in:
michaelschal committed 2025-07-19 13:34:01 +00:00
1 parent ba643b557a
commit b28291496c
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -64,7 +64,7 @@ export default function NewSaleForm() {
dateVente: new Date().toISOString().split('T')[0], dateVente: new Date().toISOString().split('T')[0],
typeArticle: '', typeArticle: '',
categorie: '', categorie: '',
quantite: '', quantite: '1',
gencode: '', gencode: '',
nom: '', nom: '',
prenom: '', prenom: '',
@@ -109,7 +109,7 @@ export default function NewSaleForm() {
dateVente: new Date().toISOString().split('T')[0], dateVente: new Date().toISOString().split('T')[0],
typeArticle: '', typeArticle: '',
categorie: '', categorie: '',
quantite: '', quantite: '1',
gencode: '', gencode: '',
nom: '', nom: '',
prenom: '', prenom: '',
+2 -2
View File
@@ -43,7 +43,7 @@ export default function NewSaleFormMulti() {
{ {
typeArticle: '', typeArticle: '',
categorie: '', categorie: '',
quantite: '', quantite: '1',
gencode: '', gencode: '',
} }
], ],
@@ -241,7 +241,7 @@ export default function NewSaleFormMulti() {
append({ append({
typeArticle: '', typeArticle: '',
categorie: '', categorie: '',
quantite: '', quantite: '1',
gencode: '', gencode: '',
}); });
}; };