Project

General

Profile

Edit Copy Actions

Feature #10181

open

Coupon Details Page - Incorrect Order Data(production issue)

Added by Pavan Kumar Murala about 18 hours ago. Updated about 10 hours ago.

Status:
In Progress
Priority:
Normal
Target version:
-
Start date:
08/03/2026
Due date:
08/03/2026 (Due in 0 days)
% Done:

100%

Estimated time:
3:00 h
Spent time:

Description

On the Coupon Details page, some orders are displaying incorrect information:

Discount amount shows as 0.00.
Total amount is incorrect.
Customer name is missing or not displayed.

Action Required:

Investigate the root cause in production.
Verify coupon-order mapping and data retrieval.
Fix the issue so the correct discount, total amount, and customer name are displayed.

When a coupon is used in POS, we save a usage record on the coupon. Later, the page tries to match that record to the actual sale to show customer name, discount, and amount.

For some older POS sales, the ID saved on the coupon didn’t match the ID used to look up the sale (one used Mongo _id, the other used sale uId). So the system couldn’t find the sale and showed empty / zero values — even though the coupon was really used.


Add

Subtasks


Add

Related issues

Edit Copy Actions

Also available in: Atom PDF