mirror of
https://github.com/R0m1k3/Regisflow.git
synced 2026-10-11 17:29:48 +02:00
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:
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 |
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user