membershipworks: Add EventExt instructor invoice fields

This commit is contained in:
Adam Goldsmith 2024-01-01 21:15:03 -05:00
parent f5688e39c3
commit f2332dbe37
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# Generated by Django 5.0 on 2024-01-01 17:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
(
"membershipworks",
"0005_event_eventcategory_eventext_event_category_and_more",
),
]
operations = [
migrations.AddField(
model_name="eventext",
name="instructor_flat_rate",
field=models.DecimalField(decimal_places=4, default=0, max_digits=13),
),
migrations.AddField(
model_name="eventext",
name="instructor_percentage",
field=models.DecimalField(decimal_places=4, default=0.5, max_digits=5),
),
]

View File

@ -435,6 +435,12 @@ class EventExt(Event):
materials_fee = models.DecimalField(
max_digits=13, decimal_places=4, null=True, blank=True
)
instructor_percentage = models.DecimalField(
max_digits=5, decimal_places=4, default=0.5
)
instructor_flat_rate = models.DecimalField(
max_digits=13, decimal_places=4, default=0
)
class Meta:
verbose_name = "event"