From b4c18c6ea6bd69c96b1080a3b54ed9c7fe0951e5 Mon Sep 17 00:00:00 2001
From: Raphael Michel
Date: Mon, 2 Nov 2020 17:58:44 +0100
Subject: [PATCH] Fix inverted logic
---
.../control/templates/pretixcontrol/order/refund_process.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/pretix/control/templates/pretixcontrol/order/refund_process.html b/src/pretix/control/templates/pretixcontrol/order/refund_process.html
index 7f627637f..f16802f29 100644
--- a/src/pretix/control/templates/pretixcontrol/order/refund_process.html
+++ b/src/pretix/control/templates/pretixcontrol/order/refund_process.html
@@ -25,7 +25,7 @@
{{ pending }}. The order total is {{ total }}.
{% endblocktrans %}
- {% if order.status != "c" and order.positions.count > 0 %}
+ {% if order.status == "c" or order.positions.count == 0 %}
{% blocktrans trimmed %}
Since the order is already canceled, this will not affect its state.