Skip to content
Snippets Groups Projects
Commit 3788d329 authored by Tom Teichler's avatar Tom Teichler :beers:
Browse files

Set due date on invoice

parent 18f6a722
No related branches found
No related tags found
No related merge requests found
Pipeline #106868 canceled
from datetime import datetime
from datetime import datetime, timedelta
from decimal import Decimal
from django.contrib.contenttypes.models import ContentType
......@@ -350,6 +350,7 @@ class EventRegistration(ExtensibleModel):
"number": f"HNF-{self.date_registered.strftime('%Y-%m')}-{self.id}",
"currency": "EUR",
"total": self._get_total_amount()[0],
"due_date": now().date() + timedelta(days=7),
"tax": self._get_total_amount()[1],
"description": _("Participation of {} in event {}").format(
self.person.addressing_name, self.event.display_name
......
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