CPL Real Rewards Odoo 17 — Documentation Hub¶
Document Control:
* Owner & Publisher: CPL Real Rewards Team
* Technical Maintenance: Systems Developer
* Organization: CPL Group (City Pharmacy Ltd)
* System Version: Odoo 17.0 Enterprise Loyalty Release v2.9.0
* Last Updated: October 7, 2026
* Status: Production Certified (100% Mathematical Parity & Staging UAT Verified)
Executive Summary & Platform Overview¶
The CPL Real Rewards Loyalty Platform on Odoo 17 serves as the single source of truth for customer loyalty across City Pharmacy and Stop & Shop nationwide retail networks. The system bridges in-store point-of-sale (POS) checkout terminals with centralized member profile management, dynamic reward redemptions, and strict dual-control governance.
flowchart LR
POS["In-Store POS Tills<br/>(CP & SNS Stores)"] --> Ingestion["Hardened Ingestion Engine<br/>(Auto-Validation & Quarantine)"]
Ingestion --> Golden["Golden Record Registry<br/>(138,459 Verified Members)"]
Ingestion --> Quarantine["Quarantined Queue<br/>(2,455 Unknown Cards)"]
Golden --> Ledger["Audited Loyalty Ledger<br/>(258,021 Transactions)"]
Golden --> TillRedeem["Zero-Leakage POS Redemption<br/>(5 Blocked Cards Locked at 0)"]
Quarantine --> MakerChecker["Maker-Checker Claim Flow<br/>(Push to Member with Proof)"]
MakerChecker --> Golden
Live Operational Baseline & Mathematical Proof¶
The loyalty database operates under strict mathematical equilibrium with zero orphaned points and 100% Golden Record integrity:
| System Metric | Database Entity | Verified Value | Operational Status |
|---|---|---|---|
| Total Golden Records | res.partner (is_real_reward_customer = True) |
138,459 | 100% Clean Profiles (0 Dummy Accounts) |
| Permanent Member UUIDs | res.partner.member_uuid (RFC-4122 v4) |
138,459 | 100% Unique Global Identity Anchors (0 Nulls) |
| Active Transacting Members | Members with transacted points $> 0$ | 117,214 | Fully Engaged Loyalty Cohort |
| Pronto Card Swaps Mapped | real_rewards_card_replacement_log |
15,553 | 100% Historical Lineage Preserved Across 14,533 Members |
| Audited Loyalty Ledgers | real_rewards_loyalty_ledger |
258,021 | 100% Bound to Members (null_partner = 0) |
| Total Points Issued | Cumulative lifetime points earned | 437,181,778 | Reconciled against POS Transacted Spend |
| Active Member Points Balance | Current live redeemable balance | 433,427,746 | Verified on Staging & Production Databases |
| Lifetime Redemptions | Product and voucher redemptions | 2,664 | Fully Accounted For |
| Quarantined Card Scans | real_rewards_quarantine_queue |
15,798 | 2,455 Unknown Cards (194,520 Pts / K618,127.06) |
| Blocked / Compromised Cards | Flagged in res.partner (is_card_blocked = True) |
5 | Points Locked at 0 Pts on Tills |
The 5-Pillar Documentation Architecture¶
-
:material-view-dashboard: Pillar 1: System Overview & Architecture --- Platform executive summary, live mathematical balance sheet, Golden Record baseline, and data flow architecture.
-
:material-account-group: Pillar 2: Role-Based User Manuals --- Step-by-step operating runbooks for Store Staff / Cashiers, Branch Makers, Head Office Checkers, Odoo Admins, and System Administrators.
-
:material-shield-check: Pillar 3: Governance & Standard Operating Procedures (SOPs) --- SOPs for managing the Quarantined Cards Queue, enforcing Blocked Cards Fraud Lockouts, executing Pronto Card Swaps, and processing Store Redemptions.
-
:material-server: Pillar 4: Technical Architecture & Operations --- Docker multi-container topology, Nginx SSL proxy, PostgreSQL performance indexes, daily accounting cron pipelines, and RBAC security.
-
:material-archive-check: Pillar 5: UAT & Evidence Archive --- Master production cutover reports, POS CSV day-by-day reconciliation logs, and automated Playwright E2E verification test suites.
Live Production & Staging Environments¶
- Production URL:
https://rewards.cpl.com.pg - Staging Verification URL:
https://angry-mad-smile.cpl.com.pg - Documentation Hub:
https://docs.cpl.com.pg - Owner & Publisher: CPL Real Rewards Team
- Technical Maintenance: Systems Developer