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
This commit is contained in:
michaelschal committed 2025-11-04 05:43:40 +00:00
1 parent c17cc7ed5e
commit 11a59f53e6
1 file changed
+8
+8
View File
@@ -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,