From fee34d6c4faeb052f1aa7959d885f12b90eee731 Mon Sep 17 00:00:00 2001
From: michaelschal <35957947-michaelschal@users.noreply.replit.com>
Date: Thu, 10 Jul 2025 08:50:31 +0000
Subject: [PATCH] Remove manual date entry and automate timestamp for new sales
records
Removes dateVente field from NewSaleForm, sale types, and shared schema.
Replit-Commit-Author: Agent
Replit-Commit-Session-Id: dec54137-d5a2-4406-8ad4-5f2f9fb110bf
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/fa7f08e0-2cf1-49d3-8250-af23db9cc3bd.jpg
---
client/src/components/NewSaleForm.tsx | 16 +---------------
client/src/types/sale.ts | 2 --
replit.md | 2 ++
shared/schema.ts | 1 -
4 files changed, 3 insertions(+), 18 deletions(-)
diff --git a/client/src/components/NewSaleForm.tsx b/client/src/components/NewSaleForm.tsx
index ad30bdd..56fdc89 100644
--- a/client/src/components/NewSaleForm.tsx
+++ b/client/src/components/NewSaleForm.tsx
@@ -133,7 +133,6 @@ export default function NewSaleForm() {
const saleData = {
vendeur: data.vendeur,
- dateVente: data.dateVente,
typeArticle: data.typeArticle,
categorie: data.categorie as 'F2' | 'F3',
quantite: parseInt(data.quantite),
@@ -167,7 +166,7 @@ export default function NewSaleForm() {