Skip to content
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

Merged
merged 3 commits into from
Jun 28, 2016

Conversation

shawnadelic
Copy link
Contributor

  • Add core support for refunds
  • Add refund creator in Orders admin
  • Show log entries section or all orders

Refs SHUUP-2400, SHUUP-2821, SHUUP-2874, SHUUP-2875, SHUUP-2877

required=False,
initial=True,
label=_("Restock products")
)
Copy link
Contributor

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.

@shawnadelic shawnadelic force-pushed the refunds branch 3 times, most recently from 48f50e2 to dd6e21f Compare June 27, 2016 21:21
: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)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refunds is set twice

Shawn Her Many Horses added 2 commits June 27, 2016 18:37
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
@Pikkupomo Pikkupomo merged commit 01d4f87 into shuup:master Jun 28, 2016
@shawnadelic shawnadelic deleted the refunds branch June 28, 2016 04:57


class RefundExceedsAmountException(Exception):
pass
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants