mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Report canceled orders as underpaid if necessary
This commit is contained in:
@@ -419,6 +419,8 @@ class Order(LockModel, LoggedModel):
|
||||
is_underpaid=Case(
|
||||
When(Q(status=Order.STATUS_PAID) & Q(pending_sum_t__gt=1e-8),
|
||||
then=Value(1)),
|
||||
When(Q(status=Order.STATUS_CANCELED) & Q(pending_sum_rc__gt=1e-8),
|
||||
then=Value(1)),
|
||||
default=Value(0),
|
||||
output_field=models.IntegerField()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user