Standard Operating Procedure (SOP-03): Pronto Card Swaps & Replacement Lineage¶
Document Control:
* SOP Code: CPL-SOP-GOV-003
* Publisher: CPL Real Rewards Team
* Technical Maintenance: Systems Developer
* Effective Date: October 2026
* Target Audience: Store Cashiers, Store Supervisors, Head Office Checkers
* Applicable Environments: Staging & Production
* Document Status: Production Approved
1. Purpose & Business Objective¶
To define the operating procedure for issuing new physical loyalty cards to existing CPL Real Rewards members when their current card is lost, damaged, or unreadable at checkout registers.
This procedure ensures that: 1. A customer's full point balance and lifetime loyalty ledgers remain 100% intact. 2. The old physical card is automatically retired and prevented from unauthorized reuse. 3. Complete historical lineage is preserved across all past card numbers.
2. Historical Baseline & Card Replacement Master¶
During the legacy migration from Pronto and Zinrelo, 15,572 historical card replacements were ingested into real_rewards_card_replacement_log across 14,541 unique members.
[!IMPORTANT] STG-TICK-028 / KB-028 Inversion Realignment (October 2026): An exhaustive audit revealed that the initial migration script inverted the replacement polarity (recording the replacement card as the old card and leaving the retired card active). Under
STG-TICK-028: 1. All 15,572 replacement records were chronologically realigned using activation timestamps. 2. Active member profiles (res_partner.rrp_card_number) were promoted to their verified latest replacement card (e.g., Francis Marai $\rightarrow$CPLR000605466, Bellindah Daniel $\rightarrow$CPLR000108017, Joe Koma $\rightarrow$CPLR000695213, Neba Kewa $\rightarrow$CPLR000721151). 3. The audit log (real_rewards_card_replacement_log) accurately tracks:old_card_number= Original Retired Card $\rightarrow$new_card_number= Replacement Card. 4. 271 legacy stub duplicate records were consolidated into the master profile with zero data loss.
graph LR
OldCard["Original Retired Card<br/>(e.g. CPLR000529827)"] -->|STG-TICK-028 Realignment| Log["real_rewards_card_replacement_log<br/>(15,572 Historical Logs)"]
Log -->|Lineage Anchoring| Golden["Active Golden Record<br/>(Promoted Replacement: CPLR000605466)"]
Golden --> Balance["100% Points & Ledgers Preserved"]
[!NOTE] Multi-Token Smart Lookup: Even after a card is retired, if a cashier enters the customer's old card number or previous barcode, Odoo automatically identifies the customer's active Golden Record profile.
3. Step-by-Step Operating Instructions¶
Step 1: Initiate Card Replacement Request (Store Maker / Store Supervisor)¶
- Open the member profile in Members > Real Rewards Members.
- Verify customer identity using photo ID and mobile phone confirmation (supervised by Store Supervisor if escalated).
- Click the Action gear menu and select Replace Card.
- In the Card Replacement Wizard:
- Old Card Number: Pre-populated with the member's current active card.
- New Card Number: Scan or enter the fresh, unassigned physical card barcode (must begin with
CPLR...). - Replacement Reason: Select Damaged Card, Lost Card, or Stolen Card.
- Replacement Notes: Note the store branch and cashier initials.
- Click Submit Replacement.
Step 2: Audit Review & Approval (Head Office Checker)¶
- Navigate to Governance & Queues > Card Replacements Log (or Members > Member Add/Change Requests).
- Locate the pending replacement entry.
- Verify that the new card is not already registered to another active member and matches supporting paperwork.
- If valid, click Approve Swap:
- The member's
rrp_card_numberis instantly updated to the new card. - The old card is archived with status
replaced. - A permanent audit entry is recorded in
real_rewards_card_replacement_log.
Step 3: Correction & Resubmission Governance (STG-TICK-043)¶
If a card swap or member service request contains typographical errors or missing verification paperwork: 1. Never create a new duplicate form: Re-submitting from scratch creates orphaned requests and scatters audit logs. 2. Send Back for Correction: Head Office Checkers click Send Back for Correction to return the request to Draft status with an explanatory chatter note. 3. Maker / Supervisor Correction: The store maker or supervisor amends the data directly on the same record and clicks Submit for Approval. 4. Checker Re-Evaluation: Head Office Checkers review the updated form and approve.
4. Immutable Member UUID & Primary Identity Architecture¶
In the CPL Real Rewards platform, physical plastic cards (rrp_card_number) are consumable and ephemeral media, while member_uuid is the canonical, immutable Primary Identifier for the customer profile:
graph TD
subgraph "Root Profile (res.partner)"
UUID["<b>member_uuid</b><br/>(RFC-4122 v4 UUID Anchor)"]
Profile["Member Profile & Demographic Matrix"]
Active["Active Card: rrp_card_number"]
end
subgraph "Appended Card Lineage (real.rewards.card.replacement.log)"
Log1["Historical Card 1 (Old Pronto Card)"]
Log2["Historical Card 2 (First Swap)"]
Log3["Historical Card 3 (Latest Replacement)"]
end
UUID --- Profile
UUID --- Active
UUID -.->|Foreign Key partner_id| Log1
UUID -.->|Foreign Key partner_id| Log2
UUID -.->|Foreign Key partner_id| Log3
Key Architectural Invariants:¶
- Permanent Global Anchor: Every member profile is anchored by a unique RFC-4122 v4 UUID (
36-character standard string, e.g.be5fb2e3-3d75-4594-a4e5-549acc9d2e57). It never changes, even across multiple card replacements or re-registrations. - Auto-Assignment on Registration: In
res.partner,create()andwrite()automatically generate and assign an RFC-4122 v4 UUID for any newly created Real Rewards customer. - Card Lineage Inheritance: All 15,553 legacy replacement records and future card swaps are permanently appended to the member profile via foreign key
partner_id. - Zero-Leakage Ingestion Resolution: When daily POS checkout files arrive, the importer checks
member_uuid,rrp_card_number, and the historical replacement ledger. Transactions swiped on retired cards seamlessly resolve to the active profile with zero points loss and zero orphan guest accounts.
5. Staging Helpdesk Ticket & Playwright UAT Evidence¶
This architecture has been verified end-to-end on Staging (https://angry-mad-smile.cpl.com.pg) and certified under:
- Staging Ticket:
STG-TICK-021— [UAT-VERIFY-021] End-to-End Audit & Lineage Verification: Pronto Replacement Cards (15,553 Swaps Mapped) - Knowledge Base Article:
KB-021— Standard Operating Procedure (SOP-03): Pronto Card Replacements, Card Swaps & Lineage Preservation
Playwright Visual Proof Artifacts:¶
- Card Replacements Log Tree View:
site/archive/images/uat_card_replacements_01_tree_view.png - Card Replacement Form Detail:
site/archive/images/uat_card_replacements_02_form_detail.png - Member Profile Lineage Table:
site/archive/images/uat_card_replacements_03_member_profile_lineage_scrolled.png - Staging Ticket Verification:
site/archive/images/uat_card_replacements_04_ticket_021_evidence.png - Knowledge Base SOP:
site/archive/images/uat_card_replacements_05_kb_021_evidence.png