@@ -469,7 +469,7 @@ export function FnFPage({ currentUser, onViewDetails }: FnFPageProps) {
))}
{displaySettlements.filter(c => c.status === 'Under Review' || c.status === 'Calculated').length === 0 && (
)}
diff --git a/src/components/applications/ProspectiveApplicationDetails.tsx b/src/components/applications/ProspectiveApplicationDetails.tsx
index eb92d00..eff4ef0 100644
--- a/src/components/applications/ProspectiveApplicationDetails.tsx
+++ b/src/components/applications/ProspectiveApplicationDetails.tsx
@@ -195,8 +195,8 @@ export function ProspectiveApplicationDetails({ id, onBack }: Props) {
diff --git a/src/components/dashboard/FDDDashboardPage.tsx b/src/components/dashboard/FDDDashboardPage.tsx
index 1aae74f..bedefaf 100644
--- a/src/components/dashboard/FDDDashboardPage.tsx
+++ b/src/components/dashboard/FDDDashboardPage.tsx
@@ -162,7 +162,7 @@ export function FDDDashboardPage() {
navigate(`/applications/${app.id}`)}
+ onClick={() => navigate(`/fdd-details/${app.id}`)}
>
diff --git a/src/components/dashboard/FinanceDashboard.tsx b/src/components/dashboard/FinanceDashboard.tsx
index 6f0d7b1..1a8d1e8 100644
--- a/src/components/dashboard/FinanceDashboard.tsx
+++ b/src/components/dashboard/FinanceDashboard.tsx
@@ -1,4 +1,4 @@
-import { DollarSign, FileText, CheckCircle, Plus, Trash2, Save, Calculator, Clock, TrendingUp, TrendingDown, ShieldCheck } from 'lucide-react';
+import { IndianRupee, FileText, CheckCircle, Plus, Trash2, Save, Calculator, Clock, TrendingUp, TrendingDown } from 'lucide-react';
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '../ui/card';
import { Badge } from '../ui/badge';
import { Button } from '../ui/button';
@@ -78,7 +78,7 @@ export function FinanceDashboard({ onNavigate, onViewPaymentDetails, onViewAudit
const stage = app.currentStage;
return [
'LOI In Progress', 'LOI Issued', 'LOA Pending', 'Dealer Code Generation',
- 'LOI_APPROVAL', 'LOA_APPROVAL', 'PAYMENT_VERIFICATION', 'SECURITY_DEPOSIT',
+ 'LOA_APPROVAL', 'PAYMENT_VERIFICATION', 'SECURITY_DEPOSIT',
'EOR Complete', 'Inauguration', 'Approved', 'Onboarded'
].includes(s) || stage === 'Finance';
});
@@ -171,7 +171,7 @@ export function FinanceDashboard({ onNavigate, onViewPaymentDetails, onViewAudit
const pendingOnboarding = applications.filter(app => getRelevantPaymentStatus(app) !== 'Verified');
const verifiedOnboarding = applications.filter(app => getRelevantPaymentStatus(app) === 'Verified');
- const pendingAudits = applications.filter(app => app.status === 'LOI_APPROVAL' || app.overallStatus === 'LOI In Progress');
+ const pendingAudits = applications.filter(app => app.status === 'FDD_VERIFICATION' || app.overallStatus === 'FDD Verification');
const pendingFnF = mockFnFCases.filter(f => !f.hasFinanceSummary);
const completedFnF = mockFnFCases.filter(f => f.hasFinanceSummary);
@@ -289,7 +289,7 @@ export function FinanceDashboard({ onNavigate, onViewPaymentDetails, onViewAudit
-
+
Onboarding
@@ -343,7 +343,7 @@ export function FinanceDashboard({ onNavigate, onViewPaymentDetails, onViewAudit
Stage
- {app.status === 'LOI_APPROVAL' || app.status === 'PAYMENT_VERIFICATION' ? 'Initial Deposit' : 'Final Deposit'}
+ {app.status === 'PAYMENT_VERIFICATION' ? 'Security Deposit' : 'First Fill'}
@@ -365,33 +365,18 @@ export function FinanceDashboard({ onNavigate, onViewPaymentDetails, onViewAudit
View Details
- {app.status === 'LOI_APPROVAL' || app.overallStatus === 'LOI In Progress' ? (
- {
- if (onViewAuditDetails) {
- onViewAuditDetails(app.applicationId || app.id);
- }
- }}
- >
-
- Review Audit
-
- ) : (
- {
- if (onViewPaymentDetails) {
- onViewPaymentDetails(app.applicationId || app.id);
- }
- }}
- >
-
- Verify Payment
-
- )}
+ {
+ if (onViewPaymentDetails) {
+ onViewPaymentDetails(app.applicationId || app.id);
+ }
+ }}
+ >
+
+ Verify Payment
+
diff --git a/src/components/ui/DocumentPreviewModal.tsx b/src/components/ui/DocumentPreviewModal.tsx
index f6632f9..7946c1e 100644
--- a/src/components/ui/DocumentPreviewModal.tsx
+++ b/src/components/ui/DocumentPreviewModal.tsx
@@ -42,7 +42,7 @@ export const DocumentPreviewModal: React.FC = ({
return (
-
+
{document ? (
<>
diff --git a/src/services/onboarding.service.ts b/src/services/onboarding.service.ts
index 542ad23..ab251a9 100644
--- a/src/services/onboarding.service.ts
+++ b/src/services/onboarding.service.ts
@@ -160,5 +160,20 @@ export const onboardingService = {
const response: any = await API.updateApplication(id, data);
if (!response.ok) throw new Error(response.data?.message || 'Failed to update application');
return response.data;
+ },
+ submitFddReport: async (data: any) => {
+ const response: any = await API.submitFddReport(data);
+ if (!response.ok) throw new Error(response.data?.message || 'Failed to submit FDD report');
+ return response.data;
+ },
+ getFddAssignment: async (applicationId: string) => {
+ const response: any = await API.getFddAssignment(applicationId);
+ if (!response.ok) throw new Error(response.data?.message || 'Failed to fetch FDD assignment');
+ return response.data;
+ },
+ assignFddAgency: async (data: any) => {
+ const response: any = await API.assignFddAgency(data);
+ if (!response.ok) throw new Error(response.data?.message || 'Failed to assign FDD agency');
+ return response.data;
}
};