1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

Guests can pay with CB or coins, lot of other improvements

This commit is contained in:
Yohann D'ANELLO
2020-03-28 16:52:58 +01:00
parent 81cfaf12fa
commit c8b72cf1ff
10 changed files with 304 additions and 133 deletions

View File

@ -69,8 +69,6 @@ class Activity(models.Model):
'note.Note',
on_delete=models.PROTECT,
related_name='+',
null=True,
blank=True,
verbose_name=_('note'),
)
@ -152,7 +150,7 @@ class Entry(models.Model):
GuestTransaction.objects.create(
source=self.note,
source_alias=self.note.user.username,
destination=self.activity.organizer.note,
destination=self.note,
destination_alias=self.activity.organizer.name,
quantity=1,
amount=self.activity.activity_type.guest_entry_fee,