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

Fic decimal type for donation and discount

parent b27f3dee
No related branches found
No related tags found
No related merge requests found
......@@ -322,7 +322,7 @@ class EventRegistration(ExtensibleModel):
yield PurchasedItem(
name=_("Social Sponsoring / Extra Donation"),
quantity=1,
price=self.donation,
price=Decimal(self.donation),
currency="EUR",
sku="DONAT",
tax_rate=0,
......@@ -333,7 +333,7 @@ class EventRegistration(ExtensibleModel):
yield PurchasedItem(
name=_("Voucher / Granted discount"),
quantity=1,
price=-1 * self.voucher.discount * (self.event.cost / 1.07) / 100,
price=Decimal(-1 * self.voucher.discount * (self.event.cost / 1.07) / 100),
currency="EUR",
sku="DISCO",
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