--- title: "Financial & Sales Analytics Documentation" description: "Documentation for Executive Sales Reporting, Cash Flow Ledger Analytics, and Customer Accounts Receivables Aging in Ring2All BSS" --- ## 🎯 User Roles & Key Capabilities | Role | Primary Use Case | Key Capabilities | | :--- | :--- | :--- | | **Chief Financial Officer (CFO)** | Revenue analytics & financial reporting. | Review recurring revenue (MRR/ARR), margin trends, and aggregate accounting ledgers. | | **Billing Operations Specialist** | Invoice generation & payment collections. | Generate monthly billing runs, review unpaid balances, and reconcile gateway payouts. | | **Telecom Audit Specialist** | CDR & transaction reconciliation. | Audit high-precision Call Detail Records (CDRs) and Message Detail Records (MDRs) against billing debits. | --- ## Table of Contents 1. [Module Overview (Technical)](#1-module-overview-technical) 2. [Module Overview (Commercial & Business Value)](#2-module-overview-commercial--business-value) 3. [Visual Interface & 3-Tab Architecture](#3-visual-interface--3-tab-architecture) 4. [Tab 1: Sales & Revenue Analytics](#4-tab-1-sales--revenue-analytics) 5. [Tab 2: Payments & Financial Ledger](#5-tab-2-payments--financial-ledger) 6. [Tab 3: Customer Accounts & Aging (AR)](#6-tab-3-customer-accounts--aging-ar) 7. [Data Filtering, Grouping & Export Engine](#7-data-filtering-grouping--export-engine) 8. [Metric Definitions & Calculations](#8-metric-definitions--calculations) 9. [Troubleshooting & FAQs](#9-troubleshooting--faqs) 10. [Glossary](#10-glossary) --- ## 1. Module Overview (Technical) The **Financial & Sales Analytics** module provides an executive reporting suite within **Ring2All BSS**. Operating across three dedicated analytics tabs, it computes real-time business intelligence from raw billing events, rated telecommunications records, prepaid ledger transactions, and invoice balances. It offers high-performance aggregation by customer tier, product category, date range, and debt aging buckets without locking transactional database tables. ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Ring2All BSS Financial & Sales Analytics Suite β”‚ β”‚ Route: /financial-reports β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β–Ό β–Ό β–Ό β–Ό β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Sales & Revenue β”‚ β”‚ Payments & Ledger β”‚ β”‚ Customer Accounts (AR) β”‚ β”‚ β€’ Gross & Net Revenue β”‚ β”‚ β€’ Total Recharges / Cash β”‚ β”‚ β€’ Outstanding Receivables β”‚ β”‚ β€’ Category Breakdown: β”‚ β”‚ β€’ Ledger Debits & Usage β”‚ β”‚ β€’ Aging Buckets: β”‚ β”‚ - Voice Calls β”‚ β”‚ β€’ Promotional Credits β”‚ β”‚ - Current (0-30 days) β”‚ β”‚ - SMS & Messaging β”‚ β”‚ β€’ Refunds & Adjustments β”‚ β”‚ - 31-60 days β”‚ β”‚ - Subscriptions & DIDs β”‚ β”‚ β€’ Payment Gateway Split β”‚ β”‚ - 61-90 days β”‚ β”‚ - AI Sessions & Hardwareβ”‚ β”‚ β€’ Net Cash Flow Velocity β”‚ β”‚ - 90+ days (Delinquent) β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` * **Non-Blocking Analytical Queries:** Leverages optimized PostgreSQL indexing, date-partitioned CTEs, and aggregation pipelines to render platform-wide financial figures in milliseconds. * **Double-Entry Reconciliation:** Cross-verifies gateway transaction records with subscriber wallet balance states to ensure zero discrepancies between collected funds and rated services. * **Standardized Presentation:** Conforms strictly to Ring2All design standards, featuring a fixed 56px header without back buttons, high-density metric cards, and text-only tab triggers. --- ## 2. Module Overview (Commercial & Business Value) * **360-Degree Financial Visibility:** Empower telecom CFOs, operators, and finance executives with immediate answers regarding top-line revenue, gross margins, and customer acquisition costs. * **Product-Line Profitability Analysis:** Identify high-margin services (e.g., AI Voice Agents, DID monthly rentals) versus low-margin wholesale voice terminations to guide pricing and packaging strategy. * **Proactive Cash Flow & Debt Management:** Surface overdue accounts receivable before debt becomes uncollectible, utilizing automated aging buckets to prioritize collections outreach. * **Simplified Tax & Regulatory Reporting:** Isolate gross sales, applied coupon discounts, and collected municipal/emergency surcharges for regional tax filings and carrier financial audits. --- ## 3. Visual Interface & 3-Tab Architecture The Financial Reports module is built upon a standardized Level 1 architecture featuring three specialized operational tabs: ![Financial Analytics Overview](/screenshots/billing/reports/financial/analytics/financial-analytics-overview.png) ### Architectural Components * **Fixed Header (56px):** Persistent navigation bar displaying module icon and title without back button. * **Text-Only Navigation Tabs:** 1. `Sales & Revenue`: Product category analysis and sales metrics. 2. `Payments & Ledger`: Real-time cash inflows, debits, and net cash flow. 3. `Customer Accounts & Aging`: Accounts receivable aging analysis and customer debt summaries. * **Date Range Controls:** Quick selectors for Today, This Week, This Month, Last Month, Quarter-to-Date, Year-to-Date, and Custom Range. --- ## 4. Tab 1: Sales & Revenue Analytics The **Sales & Revenue** tab provides detailed visibility into billable commercial activity across all subscriber accounts. ### Executive KPI Summary Cards * **Gross Sales:** Total invoiced and rated service volume before discounts or refunds. * **Discount Deductions:** Total value of applied promotional coupons and customer tier volume discounts. * **Net Revenue:** Gross sales minus promotional discounts (`Net = Gross - Discounts`). * **Tax & Surcharge Collections:** Total regulatory fees, sales taxes, and E911 surcharges collected. ### Revenue Breakdown by Category Visual breakdown and data table classifying revenue across telecommunications verticals: * **Voice Telephony:** Outbound international, national, and toll-free per-minute voice usage. * **Phone Numbers (DIDs):** Monthly recurring charges for local, mobile, and national phone numbers. * **Recurring Subscriptions:** Base monthly fees for PBX user seats, call center queues, and SIP trunks. * **SMS & Messaging:** Outbound transactional messaging and carrier campaign fees. * **AI Telephony Services:** Usage-based charges for AI Voice Agents, Speech-to-Text, and AI Translations. * **Hardware & Equipment:** One-time device purchases and monthly physical phone rentals. --- ## 5. Tab 2: Payments & Financial Ledger The **Payments & Ledger** tab monitors platform-wide cash velocity, gateway collections, and balance movements across subscriber wallets. ### Real-Time Cash Flow Metrics * **Total Inflow (Cash Collected):** Aggregate customer top-ups processed via Stripe, PayPal, Authorize.Net, and manual bank wires. * **Total Outflow (Service Consumption):** Value of rated CDRs, MDRs, and subscription renewals deducted from prepaid wallets. * **Net Balance Change:** Net cash delta (`Inflows - Outflows`) indicating whether the carrier's prepaid liability pool is expanding or contracting. * **Refunds & Adjustments:** Total manual balance credits or chargeback reversals issued during the period. ### Gateway Settlement Breakdown Displays transaction volume, processing fees, and net settlement amounts grouped by payment processor: * Stripe (Credit Cards & Apple Pay) * PayPal Express Checkout * Authorize.Net * Manual Bank Transfer / Wire Reconciliation --- ## 6. Tab 3: Customer Accounts & Aging (AR) The **Customer Accounts & Aging** tab manages accounts receivable health, delinquency tracking, and credit risk across enterprise clients. ### Accounts Receivable Aging Buckets Categorizes outstanding debt based on invoice age past due date: ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Current (0) β”‚ β”‚ 31 - 60 Days β”‚ β”‚ 61 - 90 Days β”‚ β”‚ 90+ Days β”‚ β”‚ 0 - 30 Days β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ Delinquent β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ Healthy β”‚ β”‚ Grace Period β”‚ β”‚ Dunning β”‚ β”‚ Risk of Loss β”‚ β”‚ Active Bills β”‚ β”‚ Warning Sent β”‚ β”‚ Suspended β”‚ β”‚ Collections β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` ### Customer Statements Table Searchable account table detailing: * **Customer Name & Account Code:** Subscriber corporate identity and tier assignment. * **Current Balance:** Real-time prepaid wallet state or postpaid balance owed. * **Unpaid Invoices:** Count and total value of open invoices. * **Oldest Open Invoice:** Age in days of the earliest unpaid billing record. * **Account Status:** Active, In Dunning, Suspended, or Collections. * **Quick Statement:** Generate an on-demand PDF Statement of Account for customer billing review. --- ## 7. Data Filtering, Grouping & Export Engine * **Customer Tier Filtering:** Segment financial metrics by customer tier (e.g., Enterprise, Wholesale Carrier, Retail SME). * **Multi-Format Exporting:** Export any report table with one click to: * **CSV / Excel:** High-density raw data for external spreadsheet analysis and custom pivot tables. * **JSON:** Machine-readable datasets for automated ERP ingestion (e.g., QuickBooks, NetSuite, SAP). --- ## 8. Metric Definitions & Calculations | Metric Name | Calculation Formula | Business Significance | | :--- | :--- | :--- | | **Gross Sales** | `βˆ‘(Invoice Subtotals + Billed Usage)` | Total unadjusted commercial activity. | | **Net Revenue** | `Gross Sales - Discounts` | Real top-line earnings retained by the platform. | | **AR Aging** | `Current Date - Invoice Due Date` | Measures risk of customer non-payment. | | **Prepaid Pool** | `βˆ‘(Active Customer Wallet Balances)` | Total unearned revenue held on account. | | **Effective Rate** | `Billed Voice Revenue / Total Minutes` | Realized average revenue per minute (ARPM). | --- ## 9. Troubleshooting & FAQs ### Q: Why do total payments in the Ledger tab differ from Net Revenue? * **Answer:** Ring2All BSS operates a hybrid prepaid/postpaid architecture. Inflows in the Ledger represent cash deposited into customer wallets (recharges), whereas Net Revenue reflects actual usage debits and finalized invoices. Prepaid funds only become recognized revenue as services (minutes, DIDs, subscriptions) are consumed. ### Q: How frequently are financial metrics updated? * **Answer:** In real-time. Because analytics queries aggregate transaction and invoice ledger tables dynamically, metrics reflect live payments and rated records immediately upon page load or filter selection. ### Q: Can an administrator manually adjust an aged customer balance? * **Answer:** Yes. From the Customer Accounts tab, administrators can navigate directly to the customer's wallet or invoice record to issue a credit memo, write off uncollectible debt, or record manual offline payments. --- ## 10. Glossary * **AR (Accounts Receivable):** Funds owed to the telecommunications carrier by customers for services rendered. * **Aging Buckets:** Time intervals (0-30, 31-60, 61-90, 90+ days) used to classify overdue debt. * **Prepaid Pool:** Aggregate monetary value currently stored across customer wallets awaiting service consumption. * **Credit Memo:** Accounting document issued to reduce the amount owed on an invoice. * **Net Cash Flow:** Difference between total customer cash deposits and total refunds issued over a given time period.