User Guide: Famalth Lynx Enterprise SaaS Control Plane & Multi-Tenant Fleet Management
This guide is written for SaaS SuperAdmins, Resellers, Operations Managers, Relationship Managers, and Support Executives. No programming knowledge is required. It provides step-by-step instructions on managing software licenses, tenant organizations, store outlets, relationship manager assignments, support helpdesk tickets, automated subscription invoices, and database health diagnostics across the Famalth Lynxecosystem.
Table of Contents
- Overview & What is the Master Control Plane?
- Accessing the Control Plane (Web & Windows Standalone Console)
- Master IAM & Staff Roles
- Executive Fleet Dashboard (Metrics & KPI Overview)
- Tenant Lifecycle & Outlet Management (Kill-Switch & Activation)
- 30-Day Quota Guard, Grace Periods & License Renewal
- Relationship Manager (RM) Assignment & Client Help Cards
- Outlet-Wise Support Helpdesk & Live Messaging
- Automated Subscription Vector Invoices & CSV Export
- Sandboxed Data Doctor & Diagnostic Query Studio
- Frequently Asked Questions (FAQ)
1. Overview & What is the Master Control Plane?
The Enterprise Control Plane (lib/screens/settings/master_control_plane_screen.dart) is the central mission-control station for the entire software ecosystem. While individual retail stores and restaurants operate on their dedicated local databases, the Control Plane gives you a unified command center across all deployed clients.
flowchart TD
CP["Master Enterprise Control Plane (SuperAdmin / Reseller / Support)"]
CP --> T1["Client 1: Supermarket Chain (5 Outlets)"]
CP --> T2["Client 2: Fine Dine Restaurant (2 Outlets)"]
CP --> T3["Client 3: Apparel Boutique (1 Outlet)"]
T1 -.-> L1["30-Day Quota Guard & RM Card"]
T2 -.-> L2["Live Support Helpdesk"]
T3 -.-> L3["Automated PDF Invoicing"]
Key Capabilities:
- Zero-Downtime Tenant Governance: Activate, suspend, or upgrade client accounts instantly.
- 30-Day Quota Guard: Prevents unexpected software disruption while providing an automated countdown grace period.
- Dedicated RM Assignment: Directly associates a named Relationship Manager with their direct WhatsApp number and email to each tenant.
- Integrated Outlet Helpdesk: Store cashiers can file support tickets right from their POS screen, allowing your central team to troubleshoot and reply in real time.
- Data Doctor Health Studio: Run targeted diagnostic queries across store databases to repair broken sequences or inspect anomalies without raw database credentials.
2. Accessing the Control Plane (Web & Windows Standalone Console)
You can launch the Master Control Plane in two ways:
Option A: Windows Standalone Console (FamalthLynx-ControlPlane.exe)
For administrative staff, resellers, and DevOps, a standalone executable installer is provided:
- Run
FamalthLynx-ControlPlane-Setup.exe(built viainstaller/enterprise_control_plane.iss). - Launch the desktop shortcut: Famalth Lynx Enterprise Control Plane.
- The dedicated login screen appears (
lib/screens/control_plane/control_plane_login_screen.dart).
+--------------------------------------------------------------------------+
| FAMALTH LYNX ENTERPRISE CONTROL PLANE |
| Master Fleet Operations & Tenant Management |
|--------------------------------------------------------------------------|
| Server Connection: [ https://api.yourdomain.com:5000 ] [ Test Ping] |
| |
| Username / Email: [ superadmin@famalth.com ] |
| Master Password: [ ******************] |
| |
| [ ] Remember this terminal credentials |
| |
| [ SECURE ENTERPRISE LOGIN ] |
| |
| [ Forgot Password? ] [ Need Setup Bootstrap? ] |
+--------------------------------------------------------------------------+
Option B: From Within the Main POS Application
If logged in as a Master Administrator or Developer:
- Go to Settings$\rightarrow$ System Settings.
- Scroll to the Enterprise SaaS & Fleetsection.
- Click Launch Master Control Plane.
3. Master IAM & Staff Roles
The Control Plane provides strictly segregated roles so operators only see what they are authorized to handle:
| Role Name | Scope & Authority | Allowed Actions |
|---|---|---|
| SUPER_ADMIN | Complete System Authority | Full tenant lifecycle, license modification, staff creation, billing approvals, Data Doctor execution. |
| RESELLER_ADMIN | Assigned Franchise / Region | Manage tenants under their reseller code, extend trial licenses, approve incoming customer payments. |
| DEVELOPER | Engineering & Maintenance | Live DB Doctor execution, diagnostic error analyzer, schema extractor, bug triage. |
| SUPPORT_AGENT | Customer Care & Support | Manage support tickets, reply to outlet cashiers, view store status, assign tickets to RMs. |
| RELATIONSHIP_MANAGER | Client Success | Review assigned client health, monitor renewal dates, send announcements and promotional offers. |
4. Executive Fleet Dashboard (Metrics & KPI Overview)
Upon logging in, the Overview Tabgives you high-level business intelligence across your client network:
+--------------------------------------------------------------------------+
| EXECUTIVE FLEET OVERVIEW |
|--------------------------------------------------------------------------|
| [ 142 Active Tenants ] [ 380 Outlets Live ] [ 98.4% Health ]|
| [ 8 In Grace Period ] [ ₹1,24,500 MRR ] [ 4 Open Tickets] |
+--------------------------------------------------------------------------+
Dashboard Cards Explained:
- Active Tenants: Total business entities with live operating databases.
- Outlets Live: Individual store locations currently connected to the sync engine.
- In Grace Period: Stores whose standard license expired within the last 15 days, currently operating on emergency grace mode.
- Monthly Recurring Revenue (MRR): Real-time subscription revenue run rate.
- Open Support Tickets: Customer requests waiting for agent response.
5. Tenant Lifecycle & Outlet Management (Kill-Switch & Activation)
Navigate to the Tenants Tabto search, filter, and inspect any client organization.
+--------------------------------------------------------------------------+
| Search by Legal Name, Trade Name, Client Code, or Phone... |
| Filter: [ All Statuses ▼ ] [ All Tiers ▼ ] [ All Resellers ▼ ] |
|--------------------------------------------------------------------------|
| Code | Client Name | Outlets | Tier | Expiry | Status|
|----------|-------------------|---------|------------|------------|-------|
| TNT-1001 | Apex Hypermarket | 4 / 5 | Enterprise | 31-Dec-2027| Active|
| TNT-1002 | Cafe Delight | 1 / 1 | Standard | 15-Nov-2026| Active|
| TNT-1003 | Spice Garden Rest | 2 / 2 | Pro | 22-Oct-2026| Grace |
+--------------------------------------------------------------------------+
Performing Actions on a Tenant:
- Click on any Tenant Rowto open the Tenant Action Panel:
- Extend License: Fast 30-day, 90-day, or 1-year renewal with automated invoice generation.
- Toggle Status (Kill Switch): Instantly suspend a delinquent account. All connected POS terminals will transition into read-only mode or display a license suspension notice.
- Assign Relationship Manager: Select a designated manager who appears on the client's POS header.
- Export Renewals CSV: Download a spreadsheet of upcoming renewals for your sales team.
6. 30-Day Quota Guard, Grace Periods & License Renewal
The system protects both your software revenue and store operations using an automated 3-Tier Warning System:
flowchart LR
A["SAFE ZONE (More than 30 Days Left)"] --> B["WARNING ZONE (30 to 1 Days Left)"]
B --> C["GRACE PERIOD (0 to -15 Days Overdue)"]
C --> D["LOCKED OUT (Over 15 Days Overdue)"]
Warning Levels on the Client's POS Terminal:
- Safe Zone ($> 30 days$): No visible banners. POS runs seamlessly.
- Warning Zone ($30 to 1 day$): An amber banner appears at the top of the POS screen:
"Notice: Your subscription renewal is due in 18 days. Click to renew or contact your Relationship Manager."
- Grace Period (Expired, but $< 15 days$): A prominent orange notification banner allows the store to continue billing uninterrupted while urging payment:
"Alert: Subscription expired on 10-Oct-2026. Emergency grace period active (12 days remaining). Avoid service interruption by settling invoice #INV-8821."
- Locked Out ($> 15 days$ overdue): Transactions are locked until an authorized renewal or payment approval is issued via the Control Plane.
Approving a Payment:
- When a client transfers funds via UPI, Bank Wire, or Cash:
- Open Tenants Tab$\rightarrow$ Locate Client $\rightarrow$ Tap Approve Payment & Extend.
- Choose the renewal duration (e.g., 1 Year) and enter the payment reference code.
- The system immediately updates the cloud license record and emails the vector PDF invoice to the client's registered billing email.
7. Relationship Manager (RM) Assignment & Client Help Cards
Every tenant can be assigned a dedicated personal Relationship Manager.
How it Looks on the Client's POS (lib/widgets/relationship_manager_card.dart):
When a cashier or store owner clicks the support icon in their POS header:
- They see their RM's Photo, Full Name, Direct Phone Number, and Official Email.
- A **"Chat on WhatsApp"**button opens a pre-filled WhatsApp conversation directly to the RM's mobile number:
"Hello Alex, this is Cafe Delight (Client Code: TNT-1002). We need assistance with our invoice renewal."
+-------------------------------------------------------+
| Your Dedicated Relationship Manager |
|-------------------------------------------------------|
| [ Photo ] Alex Morgan |
| Senior Accounts Lead |
| +91 98765 43210 |
| alex.m@famalth.com |
| |
| [ Open WhatsApp Chat ] [ Call Direct Line ] |
+-------------------------------------------------------+
8. Outlet-Wise Support Helpdesk & Live Messaging
Store cashiers can file questions or report issues without leaving their checkout screen via the Support Helpdesk Dialog (lib/widgets/support_helpdesk_dialog.dart).
sequenceDiagram
participant POS as Store POS Terminal
participant CP as Master Control Plane
participant RM as Relationship Manager
POS->>CP: Create Support Ticket ("Printer cut delay on Table 4")
CP-->>RM: Real-Time Sound & Badge Notification
RM->>CP: Post Troubleshooting Advice
CP-->>POS: Real-Time Message Sync (WebSocket)
POS->>CP: "Fixed, thank you!"
RM->>CP: Mark Ticket as RESOLVED
Steps for Support Agents in Control Plane:
- Navigate to the Tickets Tab.
- Filter by status: Open, In-Progress, or Resolved.
- Tap on a ticket to view the conversation history and outlet hardware details.
- Type your reply in the input box and tap Send Message.
- Once resolved, tap Mark as Resolved.
9. Automated Subscription Vector Invoices & CSV Export
The Control Plane includes an automated vector PDF invoice generation service (backend/services/subscriptionInvoicePdf.service.ts).
Key Features of Generated Invoices:
- Crisp vector PDF rendering that never gets blurry when zoomed or printed.
- Legal tax invoice compliance (GSTIN / VAT IDs, SAC code 997331 for software licensing).
- Clear breakdown of base tier price, add-on terminal quotas, tax amounts, and currency formatting.
- Downloadable directly from the Control Plane or via public tokenized link.
Exporting Renewals for Financial Forecasting:
- Go to the Fleet Overviewor Tenants Tab.
- Click Export Renewals CSV.
- A spreadsheet
tenant_renewals_YYYY-MM-DD.csvis downloaded, containing:- Client Code, Trade Name, Registered Contact, Expiry Date, Assigned RM, Renewal Amount, and Current Payment Status.
10. Sandboxed Data Doctor & Diagnostic Query Studio
For technical support executives and developers, the Data Doctor Studioallows targeted SQL diagnostics without exposing database master credentials:
+--------------------------------------------------------------------------+
| DATA DOCTOR DIAGNOSTIC STUDIO |
|--------------------------------------------------------------------------|
| Target Client: [ TNT-1002: Cafe Delight ▼ ] Outlet: [ Outlet #1 ▼ ] |
| |
| Diagnostic Query: |
| SELECT item_code, item_name, current_stock FROM item_master |
| WHERE current_stock < 0; |
| |
| [ EXECUTE SANDBOXED QUERY ] [ Schema Dictionary ] |
+--------------------------------------------------------------------------+
Safety Guardrails:
- Mandatory Tenant Scoping: Every executed query automatically runs against the selected tenant's isolated database schema.
- Audit Logging: Every single query executed, its execution time, row count returned, and the staff member's user ID are logged in
diagnostic_query_audit_logs. - Pre-Built Safe Recipes: One-click diagnostic templates for common checks:
- Check Broken Stock Ledger Balances.
- Find Unsettled Tables Older Than 24 Hours.
- Reset Sequence Generator Gaps.
11. Frequently Asked Questions (FAQ)
Q1: What happens if a store's internet disconnects during the 30-day quota countdown?
**A:**The POS terminal caches its license state locally. If offline, it continues normal operations and decrements the countdown locally. Once reconnected to the internet, it syncs with the Control Plane and reflects the latest license extension instantly.
Q2: Can a store cashier change their assigned Relationship Manager?
**A:**No. Only SuperAdmins and Reseller Admins can assign or change Relationship Managers from the Control Plane.
Q3: Does the Data Doctor allow modifying client inventory or invoices?
**A:**By default, Data Doctor runs in read-only diagnostic mode for support agents. Write or update operations require explicit SuperAdmin or Developer role clearance and create an indelible audit trail.
Q4: How do I export subscription invoices for accounting audits?
**A:**In the Control Plane, go to Tenants$\rightarrow$ Click the Download Invoicebutton next to any tenant row to retrieve their official PDF invoice. You can also use Export Renewals CSVto get the aggregated financial ledger for all tenants.