Add photo data to Excel exports and correct database column mappings

Adds a "Photos" sheet to Excel exports with links to images and fixes DB column mappings for sales 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/z4eyzzt
This commit is contained in:
michaelschal committed 2025-07-19 11:28:02 +00:00
1 parent 58a06455f6
commit 91f5c13f33
4 files changed
+73 -42

No files matched your search

-1
View File
@@ -50,7 +50,6 @@ export default function SalesHistory({ canDelete = false }: SalesHistoryProps) {
});
const sales = Array.isArray(salesData) ? salesData : [];
console.log('DEBUG: Sample sale with photos:', sales.find(s => s.photoRecto || s.photoVerso || s.photoTicket));
// Filtrer les ventes selon la recherche
const filteredSales = useMemo(() => {