mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Improve invoice caching and reconciliation processes for faster lookups
Enhance invoice verification logic by leveraging database cache hits, reducing processing time and improving performance for reconciliation tasks. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 8fae4ef1-b00b-4bd8-8289-47e3f95f4555 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/GjEDOGr
This commit is contained in:
1 parent
4268029635
commit
0589d6d6fc
1 file changed
+205
+205
@@ -0,0 +1,205 @@
|
||||
Actions
|
||||
|
||||
|
||||
|
||||
|
||||
isReconciled: true,
|
||||
|
||||
expired: false,
|
||||
|
||||
expiresAt: 2075-11-04T10:58:49.326Z,
|
||||
|
||||
currentTime: '2025-11-04T12:15:03.672Z'
|
||||
|
||||
}
|
||||
|
||||
🛡️ [CACHE] PERMANENT - Facture validée avec coche verte, AUCUNE vérification: {
|
||||
|
||||
invoiceReference: '000752796',
|
||||
|
||||
groupId: 1,
|
||||
|
||||
exists: true,
|
||||
|
||||
invoiceAmount: '1203.12',
|
||||
|
||||
dueDate: null
|
||||
|
||||
}
|
||||
|
||||
✅ [INVOICE] Résultat depuis cache: {
|
||||
|
||||
exists: true,
|
||||
|
||||
matchType: 'invoice_reference',
|
||||
|
||||
errorMessage: null,
|
||||
|
||||
invoiceReference: '000752796',
|
||||
|
||||
supplierName: 'CMP',
|
||||
|
||||
invoiceAmount: 1203.12,
|
||||
|
||||
invoiceAmountTTC: 1443.74,
|
||||
|
||||
dueDate: null,
|
||||
|
||||
fromCache: true,
|
||||
|
||||
permanent: true
|
||||
|
||||
}
|
||||
|
||||
🔍 [INVOICE] Début vérification facture: { invoiceReference: '22529151', groupId: 1, forceRefresh: false }
|
||||
|
||||
🔍 [INVOICE] Vérification cache...
|
||||
|
||||
🔍 [CACHE] Recherche cache pour: { invoiceReference: '22529151', groupId: 1, cacheKey: '1_22529151' }
|
||||
|
||||
✅ [DATABASE-CACHE] Cache hit pour: {
|
||||
|
||||
cacheKey: '1_22529151',
|
||||
|
||||
expires: 2075-11-04T10:58:49.338Z,
|
||||
|
||||
hoursRemaining: 438287
|
||||
|
||||
}
|
||||
|
||||
🔍 [CACHE] Résultat cache: {
|
||||
|
||||
found: true,
|
||||
|
||||
isReconciled: true,
|
||||
|
||||
expired: false,
|
||||
|
||||
expiresAt: 2075-11-04T10:58:49.338Z,
|
||||
|
||||
currentTime: '2025-11-04T12:15:03.675Z'
|
||||
|
||||
}
|
||||
|
||||
🛡️ [CACHE] PERMANENT - Facture validée avec coche verte, AUCUNE vérification: {
|
||||
|
||||
invoiceReference: '22529151',
|
||||
|
||||
groupId: 1,
|
||||
|
||||
exists: true,
|
||||
|
||||
invoiceAmount: '2653.75',
|
||||
|
||||
dueDate: null
|
||||
|
||||
}
|
||||
|
||||
✅ [INVOICE] Résultat depuis cache: {
|
||||
|
||||
exists: true,
|
||||
|
||||
matchType: 'invoice_reference',
|
||||
|
||||
errorMessage: null,
|
||||
|
||||
invoiceReference: '22529151',
|
||||
|
||||
supplierName: 'Sovacom',
|
||||
|
||||
invoiceAmount: 2653.75,
|
||||
|
||||
invoiceAmountTTC: 3184.5,
|
||||
|
||||
dueDate: null,
|
||||
|
||||
fromCache: true,
|
||||
|
||||
permanent: true
|
||||
|
||||
}
|
||||
|
||||
🔍 [INVOICE] Début vérification facture: { invoiceReference: 'FCLT035833', groupId: 1, forceRefresh: false }
|
||||
|
||||
🔍 [INVOICE] Vérification cache...
|
||||
|
||||
🔍 [CACHE] Recherche cache pour: {
|
||||
|
||||
invoiceReference: 'FCLT035833',
|
||||
|
||||
groupId: 1,
|
||||
|
||||
cacheKey: '1_fclt035833'
|
||||
|
||||
}
|
||||
|
||||
✅ [DATABASE-CACHE] Cache hit pour: {
|
||||
|
||||
cacheKey: '1_fclt035833',
|
||||
|
||||
expires: 2075-11-04T10:58:49.353Z,
|
||||
|
||||
hoursRemaining: 438287
|
||||
|
||||
}
|
||||
|
||||
🔍 [CACHE] Résultat cache: {
|
||||
|
||||
found: true,
|
||||
|
||||
isReconciled: true,
|
||||
|
||||
expired: false,
|
||||
|
||||
expiresAt: 2075-11-04T10:58:49.353Z,
|
||||
|
||||
currentTime: '2025-11-04T12:15:03.677Z'
|
||||
|
||||
}
|
||||
|
||||
🛡️ [CACHE] PERMANENT - Facture validée avec coche verte, AUCUNE vérification: {
|
||||
|
||||
invoiceReference: 'FCLT035833',
|
||||
|
||||
groupId: 1,
|
||||
|
||||
exists: true,
|
||||
|
||||
invoiceAmount: '1307.26',
|
||||
|
||||
dueDate: null
|
||||
|
||||
}
|
||||
|
||||
✅ [INVOICE] Résultat depuis cache: {
|
||||
|
||||
exists: true,
|
||||
|
||||
matchType: 'invoice_reference',
|
||||
|
||||
errorMessage: null,
|
||||
|
||||
invoiceReference: 'FCLT035833',
|
||||
|
||||
supplierName: 'Idvpc',
|
||||
|
||||
invoiceAmount: 1307.26,
|
||||
|
||||
invoiceAmountTTC: 1568.71,
|
||||
|
||||
dueDate: null,
|
||||
|
||||
fromCache: true,
|
||||
|
||||
permanent: true
|
||||
|
||||
}
|
||||
|
||||
💰 Livraisons nécessitant récupération TTC: 0
|
||||
|
||||
📅 Total échéances retournées: 34
|
||||
|
||||
GET /api/payment-schedule 304 in 17159ms
|
||||
|
||||
HEAD /api/health 200 in 1ms
|
||||
|
||||
Reference in new issue
Block a user