graph TD
%% ===== Start =====
Start([🟢 Start: Dealer Claim Process]) --> RI[1️⃣ Request Initiation - Requestor - Submits activity request with dealer info, type, date, location, and details]
%% ===== Proposal Submission =====
RI --> PS[2️⃣ Proposal Submission - Dealer - Submits proposal with cost breakup, timeline, and supporting documents]
%% ===== Request Evaluation =====
PS --> RE[3️⃣ Request Evaluation - Requestor - Reviews dealer proposal and adds comments]
RE --> RE_Decision{Proposal Satisfactory?}
RE_Decision -->|❌ Needs Clarification| RE_Clarify[Requestor Requests Clarification]
RE_Clarify --> PS
RE_Decision -->|✅ Confirmed to Proceed| DLA
%% ===== Department Lead Approval =====
DLA[4️⃣ Department Lead Approval - Dept. Lead - Reviews and Approves Request] --> DLA_Decision{Lead Decision}
DLA_Decision -->|❌ Needs Clarification| DLA_Clarify[Lead Requests Clarification]
DLA_Clarify --> RE
DLA_Decision -->|✅ Approved| BUD
%% ===== Budgeting =====
BUD[5️⃣ Budgeting - Finance or System - Blocks budget under IO Internal Order] --> AC
%% ===== Activity Creation =====
AC[6️⃣ Activity Creation - System - Creates Activity and Sends Notifications to Requestor, Dealer and Lead] --> AE
%% ===== Activity Execution =====
AE[7️⃣ Activity Execution - Dealer - Executes Activity and Uploads Proof Documents] --> CA
%% ===== Claim Approval =====
CA[8️⃣ Claim Approval - Requestor - Reviews submitted documents] --> CA_Decision{Documents OK?}
CA_Decision -->|❌ Needs More Info| CA_Clarify[Requestor Requests Additional Information]
CA_Clarify --> AE
CA_Decision -->|✅ Approved| CA_Type{Approval Type}
CA_Type -->|Full Approval| EI
CA_Type -->|Partial Approval| EI
%% ===== E-Invoicing =====
EI[9️⃣ E-Invoicing - Finance or System - Generates E-Invoice and Issues Credit Note] --> End([✅ Claim Settled - Process Completed])
%% ===== Styles =====
style RI fill:#e3f2fd,stroke:#2196f3,stroke-width:2px,color:#000
style PS fill:#f3e5f5,stroke:#9c27b0,stroke-width:2px,color:#000
style RE fill:#fff3e0,stroke:#ff9800,stroke-width:2px,color:#000
style DLA fill:#ffebee,stroke:#f44336,stroke-width:2px,color:#000
style BUD fill:#e8f5e9,stroke:#4caf50,stroke-width:2px,color:#000
style AC fill:#fce4ec,stroke:#e91e63,stroke-width:2px,color:#000
style AE fill:#e0f2f1,stroke:#009688,stroke-width:2px,color:#000
style CA fill:#fff9c4,stroke:#fbc02d,stroke-width:2px,color:#000
style EI fill:#ede7f6,stroke:#673ab7,stroke-width:2px,color:#000
style Start fill:#c8e6c9,stroke:#388e3c,stroke-width:2px,color:#000
style End fill:#c8e6c9,stroke:#388e3c,stroke-width:2px,color:#000