From e9235cd4339cece256864cbc5d9609c63057afa0 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Thu, 5 Mar 2020 17:37:54 +0100 Subject: [PATCH] Bank transfer: ignore order status when manually assigning amount --- src/pretix/plugins/banktransfer/views.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/pretix/plugins/banktransfer/views.py b/src/pretix/plugins/banktransfer/views.py index 8fdc3c8e2..1e85d064e 100644 --- a/src/pretix/plugins/banktransfer/views.py +++ b/src/pretix/plugins/banktransfer/views.py @@ -84,17 +84,6 @@ class ActionView(View): 'message': _('Negative amount but refund can\'t be logged, please create manual refund first.') }) - if trans.order.status == Order.STATUS_PAID: - return JsonResponse({ - 'status': 'error', - 'message': _('The order is already marked as paid.') - }) - elif trans.order.status == Order.STATUS_CANCELED: - return JsonResponse({ - 'status': 'error', - 'message': _('The order has already been canceled.') - }) - p = trans.order.payments.get_or_create( amount=trans.amount, provider='banktransfer',