membershipworks: Add EventExt instructor invoice fields
This commit is contained in:
parent
f5688e39c3
commit
f2332dbe37
@ -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),
|
||||||
|
),
|
||||||
|
]
|
@ -435,6 +435,12 @@ class EventExt(Event):
|
|||||||
materials_fee = models.DecimalField(
|
materials_fee = models.DecimalField(
|
||||||
max_digits=13, decimal_places=4, null=True, blank=True
|
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:
|
class Meta:
|
||||||
verbose_name = "event"
|
verbose_name = "event"
|
||||||
|
Loading…
Reference in New Issue
Block a user