Bank transfer: ignore order status when manually assigning amount

This commit is contained in:
Raphael Michel
2020-03-05 17:37:54 +01:00
parent 975b6d800a
commit e9235cd433

View File

@@ -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',