Standard Operating Procedure (SOP-04): Store Redemptions & POS Reconciliation¶
Document Control:
* SOP Code: CPL-SOP-GOV-004
* Linked Ticket: STG-TICK-040 | Knowledge Base: KB-040
* Publisher: CPL Real Rewards Team
* Technical Maintenance: Systems Developer
* Effective Date: October 2026
* Target Audience: Store Cashiers, Store Supervisors, Retail Store Managers, Inventory Accountants
* Applicable Environments: Staging & Production
* Document Status: Production Approved
1. Purpose & Business Objective¶
To define the end-to-end operational and technical procedure for processing retail store member point redemptions in Odoo, capturing and validating Pronto POS sales order numbers (supporting 9-digit legacy and 10-digit modern register sequences up to 9,999,999,999), updating customer loyalty balances atomically, and reconciling inventory and point debits with Pronto ERP.
2. Operational Baseline & Catalog Scope¶
- Active Rewards Catalog: 93 verified items across grocery vouchers, pharmaceutical items, and promotional merchandise.
- Redemption Sequence: Automatically assigned serial
RED/YYYY/XXXXX(e.g.RED/2026/00016). - Pronto SO Range Baseline: Extended from 32-bit
999,999,999ceiling to 64-bit9,999,999,999across all 24 retail locations to support 10-digit POS sales orders (1065180689). - State Lifecycle:
draft(Draft / Maker Entry)pending_so(Points Deducted / Awaiting Pronto POS Sales Order #)redeemed(Redemption Completed / Inventory Relieved)cancelled(Cancelled & Refunded)
flowchart TD
Customer["Customer at Store Till"] --> Lookup["Cashier Enters Customer Card & Selects Reward Item"]
Lookup --> CheckBalance{"Points Available >= Cost?"}
CheckBalance -- "NO" --> Decline["Decline Redemption<br/>(Insufficient Points)"]
CheckBalance -- "YES" --> Deduct["Click 'Deduct & Confirm'<br/>(Order moves to Pending SO; Points debited)"]
Deduct --> POSRing["Cashier Rings Sale on Pronto POS Till"]
POSRing --> SOIssued["Pronto POS Generates 9- or 10-Digit Sales Order<br/>(e.g. 1065180689 or 337965539)"]
SOIssued --> EnterSO["Cashier Inputs Pronto Sales Order # in Odoo"]
EnterSO --> ValidateSO{"SO Valid Numeric & Within Shop Range<br/>(1 to 9,999,999,999)?"}
ValidateSO -- "NO" --> SOError["Prompt Store Cashier / IT Alert"]
ValidateSO -- "YES" --> Complete["Click 'Complete'<br/>(State moves to 'Redemption Completed')"]
Complete --> Audit["Ledger Entry & Delivery Order Logged"]
3. Step-by-Step Operating Instructions¶
Step 1: Processing In-Store Redemption (Cashier / Maker)¶
- At the POS register, scan the customer's physical loyalty card or enter card number (e.g.
CPLR000688883). - Verify customer profile and available points balance.
- Open Redemptions > Store Redemptions and click New.
- Select the Customer, choose the Reward Product, and verify the Store Branch (e.g.
CP North Waigani). - Click Deduct & Confirm:
- Atomically debits required points from member balance on
real_rewards_loyalty_ledger. - Assigns sequence number (e.g.
RED/2026/0016). - Transitions status to Points Deducted / Pending SO.
Step 2: Ringing in Pronto POS and Capturing SO Number¶
- Cashier rings the reward redemption item on the Pronto POS till register at zero price (loyalty discount).
- The Pronto POS register prints a receipt containing the Pronto Sales Order Number (e.g.
1065180689or337965539). - Return to the Odoo redemption screen.
- Input the Pronto Sales Order number into the Pronto Sales Order # field.
- Click the green Complete button:
- System verifies that the number is digits-only.
- System validates that the number falls within the shop's configured
range_startandrange_end(1to9,999,999,999). - System verifies uniqueness against all previously redeemed orders.
- Status transitions to Redemption Completed.
- Automatic stock delivery picking is generated.
Step 3: Processing Return & Refund (Admin / Store Manager)¶
When a customer returns a redeemed item (damaged, incorrect item, or store exchange) or when an operational keying error occurs:
1. Contact a designated Real Rewards Administrator or Store Manager with Admin privileges (group_real_rewards_admin).
2. Navigate to Redemptions > Store Redemptions and locate the order in Redemption Completed status.
3. Open the redemption record.
4. In the Cancellation Reason field, enter a detailed justification (e.g., Customer returned item in original condition at CP North Waigani — Manager approved points refund.).
5. Click the red Cancel / Return & Refund button in the header.
6. A confirmation modal will appear: Are you sure you want to cancel or return this redemption and refund the customer points?
7. Click Ok:
* Order transitions to Cancelled & Refunded (state = 'cancelled').
* The Pronto SO number is updated with a -REFUNDED suffix (e.g. 1065180695-REFUNDED) preserving audit history while freeing the original sequence if re-keying is required.
* A compensatory loyalty ledger entry (transaction_type = 'earn') is posted immediately with +Points, exempt from clearance delay, restoring the member's available points balance.
* An audit note is logged to the customer's profile chatter recording the refund, timestamp, and authorizing administrator.
8. If an exchange was intended, the cashier can now create a fresh redemption order for the correct item using the customer's restored balance.
4. Technical Architecture & Database Schema¶
Table: real_rewards_shop_so_range¶
| Column | Type | Constraints | Description |
|---|---|---|---|
id |
INTEGER |
Primary Key | Record identifier |
shop_location_id |
INTEGER |
Foreign Key (stock_location) |
Retail branch location |
range_start |
BIGINT |
NOT NULL, DEFAULT 1 |
Lower inclusive sequence bound |
range_end |
BIGINT |
NOT NULL, DEFAULT 9999999999 |
Upper inclusive sequence bound (10-digit safe) |
active |
BOOLEAN |
DEFAULT TRUE |
Active configuration indicator |
Range Validation Logic¶
domain = [
('shop_location_id', '=', order.location_id.id),
('active', '=', True),
('range_start', '<=', so_number),
('range_end', '>=', so_number)
]
valid_range = self.env['real.rewards.shop.so.range'].search(domain, limit=1)
if not valid_range:
raise UserError(_("SO %s is outside the configured range for shop %s.") % (order.pronto_sales_order_no, order.location_id.name))
5. Best Practices & Operational Handling of Returns & Errors¶
- Never Delete Operational Records:
- Deleting completed redemptions destroys POS financial reconciliation linkages and disrupts store audit reports.
- Always utilize the audited Cancel / Return & Refund workflow.
- Immediate Point Restoration:
- Compensatory refund ledger credits bypass the standard 7-day earn clearance window, ensuring returned points are immediately spendable by the customer at the till.
- Decoupled POS SO Tracking:
- Appending
-REFUNDEDto the Pronto SO prevents accidental duplicate reuse while maintaining exact receipt traceability for external auditors. - Segregation of Duties:
- Cashiers (Makers) can create and complete redemptions, but only authorized Admins / Store Managers can execute point refunds, preventing unauthorized inventory or balance tampering.
6. Audit & Compliance Checklist¶
- Zero SO Data Loss: Pronto Sales Order number is strictly preserved with audit trail.
- 64-bit Integer Parity: Both Staging and Production databases utilize
BIGINTfor range boundaries to eliminate integer overflow risks. - Store Attribution Integrity: Every ledger debit line explicitly records the originating retail location.
- Automated Regression UAT: All schema, validation, and refund changes verified with end-to-end Playwright UI automation (Exit Code 0).