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() {
Informations Vendeur
-
diff --git a/client/src/types/sale.ts b/client/src/types/sale.ts
index 7d98d48..0a5c7ea 100644
--- a/client/src/types/sale.ts
+++ b/client/src/types/sale.ts
@@ -4,7 +4,6 @@ export interface Sale {
// Vendeur
vendeur: string;
- dateVente: string;
// Produit
typeArticle: string;
@@ -32,7 +31,6 @@ export interface Sale {
export interface FormData {
vendeur: string;
- dateVente: string;
typeArticle: string;
categorie: string;
quantite: string;
diff --git a/replit.md b/replit.md
index 65e0c4a..5e9f3c7 100644
--- a/replit.md
+++ b/replit.md
@@ -238,6 +238,8 @@ Preferred communication style: Simple, everyday language.
- ✅ Removed section borders for cleaner design with color-coded backgrounds
- ✅ Added border to reset button for better visibility
- ✅ Optimized border thickness for better balance between visibility and aesthetics
+- ✅ Removed manual date field from new sale form - timestamp now automatically recorded
+- ✅ Automatic date/time creation ensures accuracy and prevents manual entry errors
### Docker Configuration & Cleanup (January 9, 2025)
- ✅ Complete Docker setup optimized for external PostgreSQL database
diff --git a/shared/schema.ts b/shared/schema.ts
index 3776586..f749a44 100644
--- a/shared/schema.ts
+++ b/shared/schema.ts
@@ -60,7 +60,6 @@ export const sales = pgTable("sales", {
// Vendeur
vendeur: varchar("vendeur", { length: 255 }).notNull(),
- dateVente: varchar("date_vente", { length: 10 }).notNull(),
// Produit
typeArticle: varchar("type_article", { length: 255 }).notNull(),