You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.
Right now, we have a status field on Order which has a few options: IN_PROGRESS, PENDING, COMPLETED, and REFUNDED.
This is okay, but we can / should do better. For example, we now fully support multiple transactions on an Order. So an order can be "completed" and still have a cart. Or it can be "refunded", in that it has a refunded transaction, but "completed" in that it has another transaction that is still valid.
I think the solution is that we should instead annotate the queryset with the payment / refund information and use that to determine what state the order is in. Ideally in a way that lets us still filter by "state", but remove the status field.
The text was updated successfully, but these errors were encountered:
Right now, we have a status field on Order which has a few options: IN_PROGRESS, PENDING, COMPLETED, and REFUNDED.
This is okay, but we can / should do better. For example, we now fully support multiple transactions on an Order. So an order can be "completed" and still have a cart. Or it can be "refunded", in that it has a refunded transaction, but "completed" in that it has another transaction that is still valid.
I think the solution is that we should instead annotate the queryset with the payment / refund information and use that to determine what state the order is in. Ideally in a way that lets us still filter by "state", but remove the status field.
The text was updated successfully, but these errors were encountered: