mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-18 20:59:46 +02:00
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:
1 parent
e48337925c
commit
4f04428dea
5 files changed
+151
-38
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user