Fix build errors and prepare for deployment
- Fix const reassignment in Phase 2 reports export (use let for mutable vars) - Fix TypeScript interface to match Prisma reconciliation schema - Fix array comparison logic in bank CSV parsing - Temporarily disable pdf-parse due to module compatibility issue (pre-existing) All phases now build successfully with zero errors.
This commit is contained in:
@@ -19,13 +19,16 @@ interface BankStatement {
|
||||
id: string;
|
||||
bankLineId: string;
|
||||
transactionType: string;
|
||||
transactionId?: string;
|
||||
transactionId: string | null;
|
||||
description: string;
|
||||
systemAmount: number;
|
||||
bankAmount: number;
|
||||
amountMatches: boolean;
|
||||
confidence: number;
|
||||
notes?: string;
|
||||
notes: string | null;
|
||||
matchedAt: Date;
|
||||
matchedBy: string | null;
|
||||
statementId: string;
|
||||
}[];
|
||||
}
|
||||
|
||||
|
||||
@@ -234,8 +234,8 @@ export default function ReportsPageClient({ data }: { data: ReportData }) {
|
||||
}, [drillDownMonth, normalizedData, sortBy]);
|
||||
|
||||
const handleExportLedger = () => {
|
||||
const from = fromDate ? new Date(fromDate) : null;
|
||||
const to = toDate ? new Date(`${toDate}T23:59:59`) : null;
|
||||
let from = fromDate ? new Date(fromDate) : null;
|
||||
let to = toDate ? new Date(`${toDate}T23:59:59`) : null;
|
||||
|
||||
let ledgerRows: any[] = [];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user