From 11a59f53e62352b547ddf6cf9c4a8512d8260ceb Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Tue, 4 Nov 2025 05:43:40 +0000 Subject: [PATCH] Update data storage to include invoice details and reconciliation status Modify DatabaseStorage and MemStorage classes to incorporate new fields: supplierName, invoiceReference, invoiceAmount, dueDate, and isReconciled, enhancing data persistence and retrieval for invoice management. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 1e4433b5-47ab-464c-b663-fea2e53367dd Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 521a9239-53be-4766-99e6-a59de73ba301 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/1e4433b5-47ab-464c-b663-fea2e53367dd/gTQvEeF --- server/storage.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/storage.ts b/server/storage.ts index d7b2dba..8cde487 100644 --- a/server/storage.ts +++ b/server/storage.ts @@ -1720,6 +1720,11 @@ export class DatabaseStorage implements IStorage { exists: cacheData.exists, matchType: cacheData.matchType, errorMessage: cacheData.errorMessage, + supplierName: cacheData.supplierName, + invoiceReference: cacheData.invoiceReference, + invoiceAmount: cacheData.invoiceAmount, + dueDate: cacheData.dueDate, + isReconciled: cacheData.isReconciled, cacheHit: cacheData.cacheHit, apiCallTime: cacheData.apiCallTime, updatedAt: new Date() @@ -3615,9 +3620,12 @@ export class MemStorage implements IStorage { groupId: cache.groupId, invoiceReference: cache.invoiceReference, supplierName: cache.supplierName || null, + invoiceAmount: cache.invoiceAmount || null, + dueDate: cache.dueDate || null, exists: cache.exists, matchType: cache.matchType, errorMessage: cache.errorMessage || null, + isReconciled: cache.isReconciled || false, cacheHit: cache.cacheHit || false, apiCallTime: cache.apiCallTime || null, expiresAt: cache.expiresAt,