mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
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:
1 parent
c17cc7ed5e
commit
11a59f53e6
1 file changed
+8
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user