Bank transfer: Do not show EPC-QR and GiroCode for non-EUR payments

This commit is contained in:
Raphael Michel
2022-09-28 13:37:58 +02:00
parent 6a22cb3021
commit d56e2de409
2 changed files with 36 additions and 30 deletions

View File

@@ -316,9 +316,11 @@ class BankTransfer(BasePaymentProvider):
'amount': payment.amount,
'settings': self.settings,
'swiss_qrbill': self.swiss_qrbill(payment),
'eu_barcodes': self.event.currency == 'EUR',
'pending_description': self.settings.get('pending_description', as_type=LazyI18nString),
'details': self.settings.get('bank_details', as_type=LazyI18nString),
}
ctx['any_barcodes'] = ctx['swiss_qrbill'] or ctx['eu_barcodes']
return template.render(ctx)
def payment_control_render(self, request: HttpRequest, payment: OrderPayment) -> str: