📍 Page Location
URL: /dashboard/authenticated
📸 Visual Representation of the Page
Step 5: Act as Supplier - Confirm Contract
TRADER🔔 Notifications
My Contracts (Dual Role)
| Contract ID | My Role | Product | Status | Actions |
|---|---|---|---|---|
| contract-001 | BUYER | Wheat | PENDING DEPOSIT | |
| contract-002 | SUPPLIER | Rice | PENDING CONFIRMATION |
🎨 Detailed Visual Description
Contracts with trader as supplier show "Confirm as Supplier" button. Same supplier workflow applies.
Key Visual Elements:
- Supplier actions
- Contract confirmation
- Status updates
⚙️ Backend Process
API Endpoint: POST /api/contracts/:contractId/confirm
Process Flow:
1. Validates trader is supplierEmail
2. Confirms contract
3. Updates status to pending_depositDatabase Operations:
- Table:
database.contracts - Action: Confirm contract as supplier
➡️ Next Action
Contract confirmed, waiting for buyer deposit