Feature #10181
openCoupon Details Page - Incorrect Order Data(production issue)
100%
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.
Subtasks
Related issues
Updated by Pavan Kumar Murala about 18 hours ago
- Status changed from New to In Progress