mirror of
https://github.com/pretix/pretix.git
synced 2025-12-13 12:42:26 +00:00
Don't request a refund if there's actually no money involved
This commit is contained in:
@@ -1410,7 +1410,7 @@ def cancel_order(self, order: int, user: int=None, send_mail: bool=True, api_tok
|
|||||||
else:
|
else:
|
||||||
if r.state != OrderRefund.REFUND_STATE_DONE:
|
if r.state != OrderRefund.REFUND_STATE_DONE:
|
||||||
notify_admin = True
|
notify_admin = True
|
||||||
else:
|
elif refund_amount != Decimal('0.00'):
|
||||||
notify_admin = True
|
notify_admin = True
|
||||||
|
|
||||||
if notify_admin:
|
if notify_admin:
|
||||||
|
|||||||
Reference in New Issue
Block a user