Don't request a refund if there's actually no money involved

This commit is contained in:
Raphael Michel
2019-02-08 11:26:42 +01:00
parent ca9e4823e2
commit bf36ad009f

View File

@@ -1410,7 +1410,7 @@ def cancel_order(self, order: int, user: int=None, send_mail: bool=True, api_tok
else:
if r.state != OrderRefund.REFUND_STATE_DONE:
notify_admin = True
else:
elif refund_amount != Decimal('0.00'):
notify_admin = True
if notify_admin: