mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-22 06:38:21 +02:00
Update photo properties to ensure correct data flow between front and back
Refactor photo property names in `Sale` and `FormData` types to align with the database and API conventions. 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/34ee2cfd-a3a7-4fbf-9b2b-8de06d7b79b5.jpg
This commit is contained in:
1 parent
9016a564ec
commit
afb7a90e0a
1 file changed
+5
-4
@@ -24,10 +24,10 @@ export interface Sale {
|
|||||||
autoriteDelivrance: string;
|
autoriteDelivrance: string;
|
||||||
dateDelivrance: string;
|
dateDelivrance: string;
|
||||||
|
|
||||||
// Photos
|
// Photos (snake_case to match database)
|
||||||
photoRecto?: string;
|
photo_recto?: string;
|
||||||
photoVerso?: string;
|
photo_verso?: string;
|
||||||
photoTicket?: string;
|
photo_ticket?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface FormData {
|
export interface FormData {
|
||||||
@@ -45,6 +45,7 @@ export interface FormData {
|
|||||||
numeroIdentite: string;
|
numeroIdentite: string;
|
||||||
autoriteDelivrance: string;
|
autoriteDelivrance: string;
|
||||||
dateDelivrance: string;
|
dateDelivrance: string;
|
||||||
|
// Photos (camelCase for form handling, snake_case conversion happens in API)
|
||||||
photoRecto?: string;
|
photoRecto?: string;
|
||||||
photoVerso?: string;
|
photoVerso?: string;
|
||||||
photoTicket?: string;
|
photoTicket?: string;
|
||||||
|
|||||||
Reference in new issue
Block a user