Do not send paid email for free orders

This commit is contained in:
Raphael Michel
2018-08-21 11:03:04 +02:00
parent 8183648902
commit b5cd3bf0af
2 changed files with 3 additions and 3 deletions

View File

@@ -532,7 +532,7 @@ def _create_order(event: Event, email: str, positions: List[CartPosition], now_d
if payment_provider:
order.payments.create(
state=OrderPayment.PAYMENT_STATE_CREATED,
provider=payment_provider,
provider=payment_provider.identifier,
amount=total,
fee=pf
)