From 76d47c72c7435b6953f877cd71a03e38af972172 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Sat, 19 Jul 2025 12:27:59 +0000 Subject: [PATCH] Mark identity and receipt photos as optional on the new sales form Update NewSaleForm.tsx and replit.md to reflect optional identity and receipt photos. Replit-Commit-Author: Agent Replit-Commit-Session-Id: e80fed01-7137-4997-b9af-dad57132d430 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/0715008c-7244-40f4-befc-26c014852236/e80fed01-7137-4997-b9af-dad57132d430/YqEkTym --- client/src/components/NewSaleForm.tsx | 6 ++++-- replit.md | 7 +++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/client/src/components/NewSaleForm.tsx b/client/src/components/NewSaleForm.tsx index ea6e8eb..8dd97a5 100644 --- a/client/src/components/NewSaleForm.tsx +++ b/client/src/components/NewSaleForm.tsx @@ -644,7 +644,8 @@ export default function NewSaleForm() { {/* Section Photos */}
-

Photos de la pièce d'identité

+

Photos de la pièce d'identité (optionnel)

+

Les photos d'identité ne sont pas obligatoires

@@ -755,7 +756,8 @@ export default function NewSaleForm() { {/* Photo Ticket de caisse */}
-

Photo du ticket de caisse

+

Photo du ticket de caisse (optionnel)

+

La photo du ticket n'est pas obligatoire

diff --git a/replit.md b/replit.md index ea9b4c2..5f07219 100644 --- a/replit.md +++ b/replit.md @@ -325,6 +325,13 @@ Preferred communication style: Simple, everyday language. - ✅ **Data Integrity**: SQL format preserves all database structure, constraints, and relationships - ✅ **User Interface**: Updated backup management UI with SQL-specific messaging and file extensions +### Photo Requirements Optimization (January 19, 2025) +- ✅ **Optional Identity Photos**: Made identity document photos (recto/verso) optional as per user request +- ✅ **Optional Receipt Photos**: Clarified that receipt/ticket photos are also optional +- ✅ **UI Updates**: Updated form labels to clearly indicate photo fields are not mandatory +- ✅ **Validation Adjustment**: Photos no longer required for form submission compliance +- ✅ **User Experience**: Added explanatory text to reduce confusion about photo requirements + ### Docker Configuration & Cleanup (January 9, 2025) - ✅ Complete Docker setup optimized for external PostgreSQL database - ✅ Docker Compose configuration with RegisFlow application only