mirror of
https://github.com/pretix/pretix.git
synced 2026-08-26 13:14:40 +00:00
Fix a sign error
This commit is contained in:
@@ -276,7 +276,7 @@ class Order(LockModel, LoggedModel):
|
|||||||
output_field=models.IntegerField()
|
output_field=models.IntegerField()
|
||||||
),
|
),
|
||||||
is_pending_with_full_payment=Case(
|
is_pending_with_full_payment=Case(
|
||||||
When(Q(status__in=(Order.STATUS_EXPIRED, Order.STATUS_PENDING)) & Q(pending_sum_t__lte=-1e-8)
|
When(Q(status__in=(Order.STATUS_EXPIRED, Order.STATUS_PENDING)) & Q(pending_sum_t__lte=1e-8)
|
||||||
& Q(require_approval=False),
|
& Q(require_approval=False),
|
||||||
then=Value('1')),
|
then=Value('1')),
|
||||||
default=Value('0'),
|
default=Value('0'),
|
||||||
|
|||||||
Reference in New Issue
Block a user