mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-11 17:29:48 +02:00
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:
1 parent
ba643b557a
commit
b28291496c
2 files changed
+4
-4
No files matched your search
@@ -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: '',
|
||||||
|
|||||||
@@ -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: '',
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in new issue
Block a user