Add option to include and display a photo of the sales receipt

Implements `photoTicket` field in `Sale` and `FormData` types, adds UI elements in `NewSaleForm` and `SaleDetailsModal` components, and updates schema.ts.

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/7df9e24f-d78b-4589-9a08-c70e02d6d7d9.jpg
This commit is contained in:
michaelschal committed 2025-07-11 18:15:16 +00:00
1 parent e48337925c
commit 4f04428dea
5 files changed
+151 -38

No files matched your search

+3 -1
View File
@@ -27,6 +27,7 @@ export interface Sale {
// Photos
photoRecto?: string;
photoVerso?: string;
photoTicket?: string;
}
export interface FormData {
@@ -46,9 +47,10 @@ export interface FormData {
dateDelivrance: string;
photoRecto?: string;
photoVerso?: string;
photoTicket?: string;
}
export type PhotoType = 'recto' | 'verso';
export type PhotoType = 'recto' | 'verso' | 'ticket';
export interface BackupData {
timestamp: string;