Skip to content
This repository has been archived by the owner on Aug 26, 2023. It is now read-only.

Switch Order table to provide more annotated information #385

Closed
melinath opened this issue Mar 2, 2015 · 1 comment · Fixed by #445
Closed

Switch Order table to provide more annotated information #385

melinath opened this issue Mar 2, 2015 · 1 comment · Fixed by #445
Assignees
Milestone

Comments

@melinath
Copy link
Contributor

melinath commented Mar 2, 2015

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.

@melinath melinath added this to the Mar 2015 milestone Mar 2, 2015
@melinath melinath modified the milestones: Mar 2015, This week Mar 11, 2015
@melinath
Copy link
Contributor Author

(this is waiting on the merge of #409 changes.)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
2 participants