From be668a328b0b1862f3bace2724daded10783b5ba Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Wed, 3 Sep 2025 09:07:24 +0000 Subject: [PATCH] Improve invoice verification by fixing a database column error Fix "column 'is_reconciled' does not exist" error in invoice_verification_cache table during invoice verification process. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 28b81ac1-a55f-409c-b6a9-88ad420d8a9a Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/28b81ac1-a55f-409c-b6a9-88ad420d8a9a/6PoDWd4 --- ...cations-Se-1756890409403_1756890409403.txt | 235 ++++++++++++++++++ 1 file changed, 235 insertions(+) create mode 100644 attached_assets/Pasted-Administration-User-related-Environment-related-Registries-Logs-Notifications-Se-1756890409403_1756890409403.txt diff --git a/attached_assets/Pasted-Administration-User-related-Environment-related-Registries-Logs-Notifications-Se-1756890409403_1756890409403.txt b/attached_assets/Pasted-Administration-User-related-Environment-related-Registries-Logs-Notifications-Se-1756890409403_1756890409403.txt new file mode 100644 index 0000000..52dcfa1 --- /dev/null +++ b/attached_assets/Pasted-Administration-User-related-Environment-related-Registries-Logs-Notifications-Se-1756890409403_1756890409403.txt @@ -0,0 +1,235 @@ +Administration + +User-related + + +Environment-related + +Registries + +Logs + +Notifications + +Settings + +New version available 2.33.1 +DismissSee what's new +Community Edition +2.27.6 LTS +Containers>logiflow-logiflow-1>Logs +Container logs + + +admin +Log viewer settings +Auto-refresh logs +Wrap lines +Display timestamps +Fetch +All logs +Search +Filter... +Lines +100 +Actions + + + + + code: '42703', + + detail: undefined, + + hint: undefined, + + position: '183', + + internalPosition: undefined, + + internalQuery: undefined, + + where: undefined, + + schema: undefined, + + table: undefined, + + column: undefined, + + dataType: undefined, + + constraint: undefined, + + file: 'parse_target.c', + + line: '1075', + + routine: 'checkInsertTargets' + +} + +❌ Erreur sauvegarde cache not found BL: error: column "is_reconciled" of relation "invoice_verification_cache" does not exist + + at /app/node_modules/pg-pool/index.js:45:11 + + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) + + at async file:///app/node_modules/drizzle-orm/node-postgres/session.js:83:22 + + at async DatabaseStorage.createInvoiceVerificationCache (file:///app/dist/index.js:2193:27) + + at async InvoiceVerificationService.verifyInvoiceByBL (file:///app/dist/index.js:4947:15) + + at async file:///app/dist/index.js:6758:18 { + + length: 153, + + severity: 'ERROR', + + code: '42703', + + detail: undefined, + + hint: undefined, + + position: '183', + + internalPosition: undefined, + + internalQuery: undefined, + + where: undefined, + + schema: undefined, + + table: undefined, + + column: undefined, + + dataType: undefined, + + constraint: undefined, + + file: 'parse_target.c', + + line: '1075', + + routine: 'checkInsertTargets' + +} + +🔗 PRODUCTION: getOrder #58 found 1 associated deliveries + +✅ PRODUCTION: getDelivery #88 found associated order #58 with status: delivered + +POST /api/deliveries/88/verify-invoice 403 in 1919ms + +❌ Erreur création cache: error: column "is_reconciled" of relation "invoice_verification_cache" does not exist + + at /app/node_modules/pg-pool/index.js:45:11 + + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) + + at async file:///app/node_modules/drizzle-orm/node-postgres/session.js:83:22 + + at async DatabaseStorage.createInvoiceVerificationCache (file:///app/dist/index.js:2193:27) + + at async InvoiceVerificationService.verifyInvoiceByBL (file:///app/dist/index.js:4947:15) + + at async file:///app/dist/index.js:6758:18 { + + length: 153, + + severity: 'ERROR', + + code: '42703', + + detail: undefined, + + hint: undefined, + + position: '183', + + internalPosition: undefined, + + internalQuery: undefined, + + where: undefined, + + schema: undefined, + + table: undefined, + + column: undefined, + + dataType: undefined, + + constraint: undefined, + + file: 'parse_target.c', + + line: '1075', + + routine: 'checkInsertTargets' + +} + +❌ Erreur sauvegarde cache not found BL: error: column "is_reconciled" of relation "invoice_verification_cache" does not exist + + at /app/node_modules/pg-pool/index.js:45:11 + + at process.processTicksAndRejections (node:internal/process/task_queues:95:5) + + at async file:///app/node_modules/drizzle-orm/node-postgres/session.js:83:22 + + at async DatabaseStorage.createInvoiceVerificationCache (file:///app/dist/index.js:2193:27) + + at async InvoiceVerificationService.verifyInvoiceByBL (file:///app/dist/index.js:4947:15) + + at async file:///app/dist/index.js:6758:18 { + + length: 153, + + severity: 'ERROR', + + code: '42703', + + detail: undefined, + + hint: undefined, + + position: '183', + + internalPosition: undefined, + + internalQuery: undefined, + + where: undefined, + + schema: undefined, + + table: undefined, + + column: undefined, + + dataType: undefined, + + constraint: undefined, + + file: 'parse_target.c', + + line: '1075', + + routine: 'checkInsertTargets' + +} + +✅ Résultat vérification: { + + exists: false, + + matchType: 'none', + + errorMessage: 'Aucun BL correspondant trouvé dans NocoDB' +