Project

General

Profile

Edit Copy Actions

Feature #10254

open

Fix E-Commerce Loyalty Points Redemption, Stripe Total Sync, API Performance, and Admin Reward Statistics for PreOrders

Added by Ajit A about 2 months ago. Updated about 1 month ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
08/06/2026
Due date:
08/07/2026 (45 days late)
% Done:

100%

Estimated time:
12:00 h
Spent time:

Add

Subtasks


Add

Related issues

Actions #1

Updated by Ajit A about 2 months ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 70

Updated by Ajit A about 2 months ago

Issue:

Stripe payment total for preorders was not reflecting the applied Loyalty Reward Points discount.
The Reward Points Ledger was capturing Preorder transactions as ECOM_REGULAR instead of ECOM_PREORDER.
Loyalty points balance was missing from the Profile Information section on the frontend.
Resolution / Changes Made:

Stripe Preorder Discount Fix (Backend): Updated handleStripeCheckout in the payment service to include both the coupon discount and the loyalty discount (totalStripeDiscount = effectiveCouponDisc + effectiveLoyaltyDisc) for Preorders, ensuring Stripe charges the correct subtotal.
Loyalty Ledger Channel Fix (Backend): Modified processLoyaltyEcomCheckout and processLoyaltyEcomEarning in the sale service to dynamically evaluate orderDoc.preOrder. It now accurately logs the transaction channel as ECOM_PREORDER instead of hardcoding ECOM_REGULAR.
Profile Loyalty Mapping (Frontend): Added a new "Loyalty Points" display card under the Profile Information tab. It maps the user's current points balance from their loyaltySummary and includes a "View Ledger" button to navigate directly to their detailed reward history.

Actions #3

Updated by Ajit A about 1 month ago

  • % Done changed from 70 to 100
Actions #4

Updated by Ajit A about 1 month ago

  • Status changed from In Progress to Resolved
Edit Copy Actions

Also available in: Atom PDF