mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Update invoice reconciliation to fix display issues
Introduce detailed logging and data type conversions in invoice verification service and client-side reconciliation page to address discrepancies in displayed invoice amounts and due dates. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 41ed310d-8033-46c7-bb26-e56560b56490 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/gTQvEeF
This commit is contained in:
1 parent
fc6661551a
commit
c669c4eba9
3 files changed
+33
-2
No files matched your search
@@ -35,7 +35,9 @@ export class InvoiceVerificationService {
|
||||
console.log('🛡️ [CACHE] PERMANENT - Facture validée avec coche verte, AUCUNE vérification:', {
|
||||
invoiceReference,
|
||||
groupId,
|
||||
exists: cached.exists
|
||||
exists: cached.exists,
|
||||
invoiceAmount: cached.invoiceAmount,
|
||||
dueDate: cached.dueDate
|
||||
});
|
||||
return {
|
||||
exists: cached.exists,
|
||||
@@ -43,6 +45,8 @@ export class InvoiceVerificationService {
|
||||
errorMessage: cached.errorMessage,
|
||||
invoiceReference: cached.invoiceReference,
|
||||
supplierName: cached.supplierName,
|
||||
invoiceAmount: cached.invoiceAmount ? parseFloat(cached.invoiceAmount) : undefined,
|
||||
dueDate: cached.dueDate ? new Date(cached.dueDate).toISOString() : null,
|
||||
fromCache: true,
|
||||
permanent: true
|
||||
};
|
||||
@@ -57,6 +61,8 @@ export class InvoiceVerificationService {
|
||||
errorMessage: cached.errorMessage,
|
||||
invoiceReference: cached.invoiceReference,
|
||||
supplierName: cached.supplierName,
|
||||
invoiceAmount: cached.invoiceAmount ? parseFloat(cached.invoiceAmount) : undefined,
|
||||
dueDate: cached.dueDate ? new Date(cached.dueDate).toISOString() : null,
|
||||
fromCache: true,
|
||||
permanent: false
|
||||
};
|
||||
@@ -115,6 +121,8 @@ export class InvoiceVerificationService {
|
||||
groupId,
|
||||
invoiceReference,
|
||||
supplierName: supplierName || null,
|
||||
invoiceAmount: result.invoiceAmount || null,
|
||||
dueDate: result.dueDate ? new Date(result.dueDate) : null,
|
||||
exists: result.exists,
|
||||
matchType: result.matchType,
|
||||
errorMessage: result.errorMessage || null,
|
||||
|
||||
Reference in new issue
Block a user