Fix #999 -- Clarify definition of overpaid

This commit is contained in:
Raphael Michel
2018-09-03 16:30:23 +02:00
parent 7c72ca089b
commit 678a936897
6 changed files with 29 additions and 10 deletions

View File

@@ -1018,7 +1018,8 @@ class OrderTestCase(BaseQuotaTestCase):
assert self.order.pending_sum == Decimal('0.00')
o = Order.annotate_overpayments(Order.objects.all()).first()
assert not o.is_underpaid
assert o.is_overpaid
assert not o.is_overpaid
assert not o.is_pending_with_full_payment
assert not o.has_pending_refund
assert not o.has_external_refund