mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Refactor invoice verification service to correctly utilize `nocodbTableId` for NocoDB API calls, defaulting to 'mrr733dfb8wtt9b' if not provided. Updates column names for invoice and delivery slip searches to 'RefFacture' and 'Numero_BL' respectively. Also, corrects NocoDB configuration URLs and project IDs for production environments. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 7c468936-2a88-4686-ac0a-84921a45222d Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/7c468936-2a88-4686-ac0a-84921a45222d/t34W525
201 lines
3.3 KiB
Plaintext
201 lines
3.3 KiB
Plaintext
}
|
|
|
|
🔍 Recherche NocoDB: {
|
|
|
|
url: 'https://nocodb.ffnancy.fr/api/v1/db/data/v1/pcg4uw79ukvycxc/CommandeF',
|
|
|
|
column: 'RefFacture',
|
|
|
|
value: '37424'
|
|
|
|
}
|
|
|
|
🔧 Configuration NocoDB active récupérée: {
|
|
|
|
id: 1,
|
|
|
|
name: 'Nocodb',
|
|
|
|
baseUrl: 'https://nocodb.ffnancy.fr',
|
|
|
|
projectId: 'pcg4uw79ukvycxc',
|
|
|
|
apiToken: 'z4BAwLo6dgoN_E7PKJSHN7PA7kdBePtKOYcsDlwQ',
|
|
|
|
description: '',
|
|
|
|
isActive: true,
|
|
|
|
createdBy: 'admin_local',
|
|
|
|
createdAt: 2025-07-22T11:12:54.971Z,
|
|
|
|
updatedAt: 2025-07-25T23:07:17.197Z
|
|
|
|
}
|
|
|
|
🔧 Configuration NocoDB trouvée: {
|
|
|
|
configName: 'Nocodb',
|
|
|
|
baseUrl: 'https://nocodb.ffnancy.fr',
|
|
|
|
projectId: 'pcg4uw79ukvycxc',
|
|
|
|
hasToken: true
|
|
|
|
}
|
|
|
|
🔍 Recherche NocoDB: {
|
|
|
|
url: 'https://nocodb.ffnancy.fr/api/v1/db/data/v1/pcg4uw79ukvycxc/CommandeF',
|
|
|
|
column: 'RefFacture',
|
|
|
|
value: '000752796'
|
|
|
|
}
|
|
|
|
✅ Résultat vérification: {
|
|
|
|
exists: false,
|
|
|
|
matchType: 'none',
|
|
|
|
errorMessage: 'Aucune correspondance trouvée dans NocoDB'
|
|
|
|
}
|
|
|
|
❌ Erreur réponse NocoDB: 404 Not Found
|
|
|
|
❌ Erreur réponse NocoDB: 404 Not Found
|
|
|
|
❌ Erreur réponse NocoDB: 404 Not Found
|
|
|
|
✅ Résultat vérification: {
|
|
|
|
exists: false,
|
|
|
|
matchType: 'none',
|
|
|
|
errorMessage: 'Aucune correspondance trouvée dans NocoDB'
|
|
|
|
}
|
|
|
|
✅ Résultat vérification: {
|
|
|
|
exists: false,
|
|
|
|
matchType: 'none',
|
|
|
|
errorMessage: 'Aucune correspondance trouvée dans NocoDB'
|
|
|
|
}
|
|
|
|
❌ Erreur réponse NocoDB: 404 Not Found
|
|
|
|
🔍 Recherche NocoDB: {
|
|
|
|
url: 'https://nocodb.ffnancy.fr/api/v1/db/data/v1/pcg4uw79ukvycxc/CommandeF',
|
|
|
|
column: 'Numero_BL',
|
|
|
|
value: 'F5164434'
|
|
|
|
}
|
|
|
|
POST /api/deliveries/38/verify-invoice 200 in 162ms
|
|
|
|
POST /api/deliveries/43/verify-invoice 200 in 167ms
|
|
|
|
POST /api/deliveries/11/verify-invoice 200 in 156ms
|
|
|
|
✅ Résultat vérification: {
|
|
|
|
exists: false,
|
|
|
|
matchType: 'none',
|
|
|
|
errorMessage: 'Aucune correspondance trouvée dans NocoDB'
|
|
|
|
}
|
|
|
|
❌ Erreur réponse NocoDB: 404 Not Found
|
|
|
|
POST /api/deliveries/33/verify-invoice 200 in 149ms
|
|
|
|
❌ Erreur réponse NocoDB: 404 Not Found
|
|
|
|
🔍 Recherche NocoDB: {
|
|
|
|
url: 'https://nocodb.ffnancy.fr/api/v1/db/data/v1/pcg4uw79ukvycxc/CommandeF',
|
|
|
|
column: 'Numero_BL',
|
|
|
|
value: '37424'
|
|
|
|
}
|
|
|
|
❌ Erreur réponse NocoDB: 404 Not Found
|
|
|
|
🔍 Recherche NocoDB: {
|
|
|
|
url: 'https://nocodb.ffnancy.fr/api/v1/db/data/v1/pcg4uw79ukvycxc/CommandeF',
|
|
|
|
column: 'Numero_BL',
|
|
|
|
value: '000752796'
|
|
|
|
}
|
|
|
|
❌ Erreur réponse NocoDB: 404 Not Found
|
|
|
|
✅ Résultat vérification: {
|
|
|
|
exists: false,
|
|
|
|
matchType: 'none',
|
|
|
|
errorMessage: 'Aucune correspondance trouvée dans NocoDB'
|
|
|
|
}
|
|
|
|
POST /api/deliveries/38/verify-invoice 200 in 166ms
|
|
|
|
❌ Erreur réponse NocoDB: 404 Not Found
|
|
|
|
✅ Résultat vérification: {
|
|
|
|
exists: false,
|
|
|
|
matchType: 'none',
|
|
|
|
errorMessage: 'Aucune correspondance trouvée dans NocoDB'
|
|
|
|
}
|
|
|
|
POST /api/deliveries/28/verify-invoice 200 in 154ms
|
|
|
|
❌ Erreur réponse NocoDB: 404 Not Found
|
|
|
|
✅ Résultat vérification: {
|
|
|
|
exists: false,
|
|
|
|
matchType: 'none',
|
|
|
|
errorMessage: 'Aucune correspondance trouvée dans NocoDB'
|
|
|
|
}
|
|
|
|
POST /api/deliveries/27/verify-invoice 200 in 166ms
|
|
|
|
HEAD /api/health 200 in 1ms
|
|
|
|
HEAD /api/health 200 in 1ms
|
|
|
|
HEAD /api/health 200 in 1ms
|
|
|
|
HEAD /api/health 200 in 2ms
|
|
|