diff --git a/attached_assets/image_1752923725972.png b/attached_assets/image_1752923725972.png new file mode 100644 index 0000000..3e0674d Binary files /dev/null and b/attached_assets/image_1752923725972.png differ diff --git a/attached_assets/image_1752923751728.png b/attached_assets/image_1752923751728.png new file mode 100644 index 0000000..2cd1af5 Binary files /dev/null and b/attached_assets/image_1752923751728.png differ diff --git a/server/storage.ts b/server/storage.ts index 0b6a99b..1895f65 100644 --- a/server/storage.ts +++ b/server/storage.ts @@ -246,6 +246,14 @@ export class DatabaseStorage implements IStorage { const salesMap = new Map(); results.forEach(row => { + if (row.id === 17) { + console.log('DEBUG: Row data for sale 17:', { + id: row.id, + photo_recto: row.photo_recto ? 'PRESENT' : 'NULL', + photo_verso: row.photo_verso ? 'PRESENT' : 'NULL', + photo_ticket: row.photo_ticket ? 'PRESENT' : 'NULL' + }); + } if (!salesMap.has(row.id)) { salesMap.set(row.id, { id: row.id,