-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add order refunds (SHUUP-2400, SHUUP-2821, SHUUP-2874, SHUUP-2875, SHUUP-2877) #564
Conversation
required=False, | ||
initial=True, | ||
label=_("Restock products") | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these have way too many line changes. I think these can be fitted in one row, all of these fields.
48f50e2
to
dd6e21f
Compare
Refs SHUUP-2877
:rtype: shoop.utils.money.Money | ||
""" | ||
refunds = OrderLine.objects.refunds().filter(order=self.order, parent_line=self) | ||
refunds = self.order.lines.refunds().filter(parent_line=self) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
refunds is set twice
Add `create_refund`, `create_full_refund`, and other refund-related methods to ``Order``. Also add refund enum type to `OrderLineType`. Refs SHUUP-2400, SHUUP-2821, SHUUP-2874
Add refund creation view to Orders admin. Refs SHUUP-2400, SHUUP-2875
|
||
|
||
class RefundExceedsAmountException(Exception): | ||
pass |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These should probably inherit from ValueError
Refs SHUUP-2400, SHUUP-2821, SHUUP-2874, SHUUP-2875, SHUUP-2877