Investigate why sale #17's photos are missing from reports

Adds debug logging to investigate missing photos in PDF/Excel exports for sale ID 17.

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/JR6WwoN
This commit is contained in:
michaelschal committed 2025-07-19 11:16:41 +00:00
1 parent 1c58d8a406
commit 47c750dc93
3 files changed
+8

No files matched your search

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

+8
View File
@@ -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,