Skip to content
Snippets Groups Projects
Verified Commit a8093b77 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Set variant to sepa or transfer

parent c72bcdfe
No related branches found
No related tags found
1 merge request!14Payments
Pipeline #58386 failed
......@@ -272,7 +272,7 @@ class EventRegistration(ExtensibleModel):
invoice, __ = Invoice.objects.get_or_create(for_content_type=ContentType.objects.get_for_model(self), for_object_id=self.pk, defaults={
"group": group,
"variant": "dummy",
"variant": "sepa" if self.accept_sepa else "transfer",
"transaction_id": f"HNF-{self.date_registered.strftime('%Y-%m')}-{self.id}",
"currency": "EUR",
"total": self._get_total_amount()[0],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment