mirror of
https://github.com/pretix/pretix.git
synced 2026-05-05 15:14:04 +00:00
Cancelling orders: Do not send email to organizer if the refund is in transit
This commit is contained in:
@@ -1974,7 +1974,7 @@ def _try_auto_refund(order, manual_refund=False, allow_partial=False, source=Ord
|
||||
error = True
|
||||
notify_admin = True
|
||||
else:
|
||||
if r.state != OrderRefund.REFUND_STATE_DONE:
|
||||
if r.state not in (OrderRefund.REFUND_STATE_TRANSIT, OrderRefund.REFUND_STATE_DONE):
|
||||
notify_admin = True
|
||||
|
||||
if refund_amount - can_auto_refund_sum > Decimal('0.00'):
|
||||
|
||||
Reference in New Issue
Block a user