Point deduction should be done after the purchase is done, not during checkout because customer can still edit the order

Created on 13 July 2023, over 1 year ago
Updated 23 July 2024, 5 months ago

Problem/Motivation

Steps to reproduce

- Customer had 100 points.
- Customer added a 11 EUR product 5x in the cart.
- Customer opened checkout, applied 55 points, so order total became 0 EUR.
- Then customer went back to the cart and changed quantity to 4, he told he mistyped it.
- Now the order total is negative -11 EUR.
- Can't adjust the points now. So customer removed everything from cart, and readded the 4 products to cart again.
- now the points can be used again BUT only 45 points are available, meaning that the system deducted the points already when the order wasn't even sent.

Proposed resolution

I don't think this is the proper way for the point system to work. Point deduction should be a manual adjustment that is not removed by OrderProcessors, and on every draft order entity change, it should be validated if the amount of points can be used still.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

9.0

Component

Code

Created by

🇸🇰Slovakia kaszarobert

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024