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

Force price t obe decimal when creating purchased items for events

parent 15955847
No related branches found
No related tags found
No related merge requests found
Pipeline #59640 canceled
from datetime import datetime
from decimal import Decimal
from django.contrib.contenttypes.models import ContentType
from django.db import models
......@@ -310,7 +311,7 @@ class EventRegistration(ExtensibleModel):
yield PurchasedItem(
name=self.event.display_name,
quantity=1,
price=self.event.cost,
price=Decimal(self.event.cost),
currency="EUR",
sku="",
tax_rate=7,
......
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